[2025-03-24 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 21:00:07 [end_date_ymd] => 2025-03-24 00:00:07 [RateCDR] => 1 ) [2025-03-24 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-03-23 21:00:07' and `end` < '2025-03-24 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-03-24 00:00:19] Production.INFO: count ==1166 [2025-03-24 00:00:20] Production.ERROR: pbx CDR StartTime 2025-03-23 21:00:07 - End Time 2025-03-24 00:00:07 [2025-03-24 00:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748378', 'tblTempUsageDetail_20' ) start [2025-03-24 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748378', 'tblTempUsageDetail_20' ) end [2025-03-24 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748378', 'tblTempVendorCDR_20' ) start [2025-03-24 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748378', 'tblTempVendorCDR_20' ) end [2025-03-24 00:00:20] Production.INFO: ProcessCDR(1,14748378,1,1,2) [2025-03-24 00:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 00:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 00:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 00:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 00:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748378', 'tblTempUsageDetail_20' ) start [2025-03-24 00:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748378', 'tblTempUsageDetail_20' ) end [2025-03-24 00:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 00:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 00:00:24] Production.INFO: ==17821== Releasing lock... [2025-03-24 00:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 00:00:24] Production.INFO: 38.25 MB #Memory Used# [2025-03-24 00:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 21:01:04 [end_date_ymd] => 2025-03-24 00:01:04 [RateCDR] => 1 ) [2025-03-24 00:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-23 21:01:04' and `end` < '2025-03-24 00:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 21:41:05 [end_date_ymd] => 2025-03-24 00:41:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 21:41:05' and `end` < '2025-03-24 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-03-24 00:41:18] Production.INFO: count ==1364 [2025-03-24 00:41:18] Production.ERROR: pbx CDR StartTime 2025-03-23 21:41:05 - End Time 2025-03-24 00:41:05 [2025-03-24 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748548', 'tblTempUsageDetail_20' ) start [2025-03-24 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748548', 'tblTempUsageDetail_20' ) end [2025-03-24 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748548', 'tblTempVendorCDR_20' ) start [2025-03-24 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748548', 'tblTempVendorCDR_20' ) end [2025-03-24 00:41:18] Production.INFO: ProcessCDR(1,14748548,1,1,2) [2025-03-24 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 00:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 00:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 00:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 00:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748548', 'tblTempUsageDetail_20' ) start [2025-03-24 00:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748548', 'tblTempUsageDetail_20' ) end [2025-03-24 00:41:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 00:41:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 00:41:24] Production.INFO: ==22322== Releasing lock... [2025-03-24 00:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 00:41:24] Production.INFO: 38.25 MB #Memory Used# [2025-03-24 00:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 21:42:06 [end_date_ymd] => 2025-03-24 00:42:06 [RateCDR] => 1 ) [2025-03-24 00:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-23 21:42:06' and `end` < '2025-03-24 00:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 00:42:18] Production.INFO: count ==1369 [2025-03-24 00:42:19] Production.ERROR: pbx CDR StartTime 2025-03-23 21:42:06 - End Time 2025-03-24 00:42:06 [2025-03-24 00:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748553', 'tblTempUsageDetail_20' ) start [2025-03-24 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748553', 'tblTempUsageDetail_20' ) end [2025-03-24 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748553', 'tblTempVendorCDR_20' ) start [2025-03-24 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748553', 'tblTempVendorCDR_20' ) end [2025-03-24 00:42:19] Production.INFO: ProcessCDR(1,14748553,1,1,2) [2025-03-24 00:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 00:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 00:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 00:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748553', 'tblTempUsageDetail_20' ) start [2025-03-24 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748553', 'tblTempUsageDetail_20' ) end [2025-03-24 00:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 00:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 00:42:22] Production.INFO: ==22426== Releasing lock... [2025-03-24 00:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 00:42:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-24 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 21:43:05 [end_date_ymd] => 2025-03-24 00:43:05 [RateCDR] => 1 ) [2025-03-24 00:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-23 21:43:05' and `end` < '2025-03-24 00:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 00:43:17] Production.INFO: count ==1367 [2025-03-24 00:43:18] Production.ERROR: pbx CDR StartTime 2025-03-23 21:43:05 - End Time 2025-03-24 00:43:05 [2025-03-24 00:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748558', 'tblTempUsageDetail_20' ) start [2025-03-24 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748558', 'tblTempUsageDetail_20' ) end [2025-03-24 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748558', 'tblTempVendorCDR_20' ) start [2025-03-24 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748558', 'tblTempVendorCDR_20' ) end [2025-03-24 00:43:18] Production.INFO: ProcessCDR(1,14748558,1,1,2) [2025-03-24 00:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 00:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 00:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 00:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748558', 'tblTempUsageDetail_20' ) start [2025-03-24 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748558', 'tblTempUsageDetail_20' ) end [2025-03-24 00:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 00:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 00:43:21] Production.INFO: ==22525== Releasing lock... [2025-03-24 00:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 00:43:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-24 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 21:44:05 [end_date_ymd] => 2025-03-24 00:44:05 [RateCDR] => 1 ) [2025-03-24 00:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-23 21:44:05' and `end` < '2025-03-24 00:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 00:44:17] Production.INFO: count ==1367 [2025-03-24 00:44:18] Production.ERROR: pbx CDR StartTime 2025-03-23 21:44:05 - End Time 2025-03-24 00:44:05 [2025-03-24 00:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748563', 'tblTempUsageDetail_20' ) start [2025-03-24 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748563', 'tblTempUsageDetail_20' ) end [2025-03-24 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748563', 'tblTempVendorCDR_20' ) start [2025-03-24 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748563', 'tblTempVendorCDR_20' ) end [2025-03-24 00:44:18] Production.INFO: ProcessCDR(1,14748563,1,1,2) [2025-03-24 00:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 00:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 00:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 00:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748563', 'tblTempUsageDetail_20' ) start [2025-03-24 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748563', 'tblTempUsageDetail_20' ) end [2025-03-24 00:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 00:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 00:44:21] Production.INFO: ==22624== Releasing lock... [2025-03-24 00:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 00:44:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-24 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 21:45:05 [end_date_ymd] => 2025-03-24 00:45:05 [RateCDR] => 1 ) [2025-03-24 00:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-23 21:45:05' and `end` < '2025-03-24 00:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 00:45:17] Production.INFO: count ==1362 [2025-03-24 00:45:18] Production.ERROR: pbx CDR StartTime 2025-03-23 21:45:05 - End Time 2025-03-24 00:45:05 [2025-03-24 00:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748568', 'tblTempUsageDetail_20' ) start [2025-03-24 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748568', 'tblTempUsageDetail_20' ) end [2025-03-24 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748568', 'tblTempVendorCDR_20' ) start [2025-03-24 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748568', 'tblTempVendorCDR_20' ) end [2025-03-24 00:45:18] Production.INFO: ProcessCDR(1,14748568,1,1,2) [2025-03-24 00:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 00:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 00:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 00:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748568', 'tblTempUsageDetail_20' ) start [2025-03-24 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748568', 'tblTempUsageDetail_20' ) end [2025-03-24 00:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 00:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 00:45:21] Production.INFO: ==22726== Releasing lock... [2025-03-24 00:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 00:45:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-24 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 21:46:05 [end_date_ymd] => 2025-03-24 00:46:05 [RateCDR] => 1 ) [2025-03-24 00:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-23 21:46:05' and `end` < '2025-03-24 00:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 00:46:17] Production.INFO: count ==1358 [2025-03-24 00:46:18] Production.ERROR: pbx CDR StartTime 2025-03-23 21:46:05 - End Time 2025-03-24 00:46:05 [2025-03-24 00:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748573', 'tblTempUsageDetail_20' ) start [2025-03-24 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748573', 'tblTempUsageDetail_20' ) end [2025-03-24 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748573', 'tblTempVendorCDR_20' ) start [2025-03-24 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748573', 'tblTempVendorCDR_20' ) end [2025-03-24 00:46:18] Production.INFO: ProcessCDR(1,14748573,1,1,2) [2025-03-24 00:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 00:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 00:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 00:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748573', 'tblTempUsageDetail_20' ) start [2025-03-24 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748573', 'tblTempUsageDetail_20' ) end [2025-03-24 00:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 00:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 00:46:21] Production.INFO: ==22823== Releasing lock... [2025-03-24 00:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 00:46:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-24 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 21:47:05 [end_date_ymd] => 2025-03-24 00:47:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 21:47:05' and `end` < '2025-03-24 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-03-24 00:47:17] Production.INFO: count ==1357 [2025-03-24 00:47:18] Production.ERROR: pbx CDR StartTime 2025-03-23 21:47:05 - End Time 2025-03-24 00:47:05 [2025-03-24 00:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748578', 'tblTempUsageDetail_20' ) start [2025-03-24 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748578', 'tblTempUsageDetail_20' ) end [2025-03-24 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748578', 'tblTempVendorCDR_20' ) start [2025-03-24 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748578', 'tblTempVendorCDR_20' ) end [2025-03-24 00:47:18] Production.INFO: ProcessCDR(1,14748578,1,1,2) [2025-03-24 00:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 00:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 00:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 00:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748578', 'tblTempUsageDetail_20' ) start [2025-03-24 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748578', 'tblTempUsageDetail_20' ) end [2025-03-24 00:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 00:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 00:47:22] Production.INFO: ==22922== Releasing lock... [2025-03-24 00:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 00:47:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-24 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 21:48:05 [end_date_ymd] => 2025-03-24 00:48:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 21:48:05' and `end` < '2025-03-24 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-03-24 00:48:17] Production.INFO: count ==1361 [2025-03-24 00:48:18] Production.ERROR: pbx CDR StartTime 2025-03-23 21:48:05 - End Time 2025-03-24 00:48:05 [2025-03-24 00:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748583', 'tblTempUsageDetail_20' ) start [2025-03-24 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748583', 'tblTempUsageDetail_20' ) end [2025-03-24 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748583', 'tblTempVendorCDR_20' ) start [2025-03-24 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748583', 'tblTempVendorCDR_20' ) end [2025-03-24 00:48:18] Production.INFO: ProcessCDR(1,14748583,1,1,2) [2025-03-24 00:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 00:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 00:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 00:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748583', 'tblTempUsageDetail_20' ) start [2025-03-24 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748583', 'tblTempUsageDetail_20' ) end [2025-03-24 00:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 00:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 00:48:21] Production.INFO: ==23062== Releasing lock... [2025-03-24 00:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 00:48:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-24 00:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 21:49:06 [end_date_ymd] => 2025-03-24 00:49:06 [RateCDR] => 1 ) [2025-03-24 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-03-23 21:49:06' and `end` < '2025-03-24 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-03-24 00:49:18] Production.INFO: count ==1497 [2025-03-24 00:49:19] Production.ERROR: pbx CDR StartTime 2025-03-23 21:49:06 - End Time 2025-03-24 00:49:06 [2025-03-24 00:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 00:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748588', 'tblTempUsageDetail_20' ) start [2025-03-24 00:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748588', 'tblTempUsageDetail_20' ) end [2025-03-24 00:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748588', 'tblTempVendorCDR_20' ) start [2025-03-24 00:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748588', 'tblTempVendorCDR_20' ) end [2025-03-24 00:49:19] Production.INFO: ProcessCDR(1,14748588,1,1,2) [2025-03-24 00:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 00:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 00:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 00:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748588', 'tblTempUsageDetail_20' ) start [2025-03-24 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748588', 'tblTempUsageDetail_20' ) end [2025-03-24 00:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 00:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 00:49:22] Production.INFO: ==23165== Releasing lock... [2025-03-24 00:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 00:49:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-24 00:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 21:50:05 [end_date_ymd] => 2025-03-24 00:50:05 [RateCDR] => 1 ) [2025-03-24 00:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-23 21:50:05' and `end` < '2025-03-24 00:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 00:50:18] Production.INFO: count ==1504 [2025-03-24 00:50:18] Production.ERROR: pbx CDR StartTime 2025-03-23 21:50:05 - End Time 2025-03-24 00:50:05 [2025-03-24 00:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748593', 'tblTempUsageDetail_20' ) start [2025-03-24 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748593', 'tblTempUsageDetail_20' ) end [2025-03-24 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748593', 'tblTempVendorCDR_20' ) start [2025-03-24 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748593', 'tblTempVendorCDR_20' ) end [2025-03-24 00:50:18] Production.INFO: ProcessCDR(1,14748593,1,1,2) [2025-03-24 00:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 00:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 00:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 00:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748593', 'tblTempUsageDetail_20' ) start [2025-03-24 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748593', 'tblTempUsageDetail_20' ) end [2025-03-24 00:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 00:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 00:50:22] Production.INFO: ==23281== Releasing lock... [2025-03-24 00:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 00:50:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 00:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 21:51:06 [end_date_ymd] => 2025-03-24 00:51:06 [RateCDR] => 1 ) [2025-03-24 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-03-23 21:51:06' and `end` < '2025-03-24 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-03-24 00:51:18] Production.INFO: count ==1504 [2025-03-24 00:51:18] Production.ERROR: pbx CDR StartTime 2025-03-23 21:51:06 - End Time 2025-03-24 00:51:06 [2025-03-24 00:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748599', 'tblTempUsageDetail_20' ) start [2025-03-24 00:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748599', 'tblTempUsageDetail_20' ) end [2025-03-24 00:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748599', 'tblTempVendorCDR_20' ) start [2025-03-24 00:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748599', 'tblTempVendorCDR_20' ) end [2025-03-24 00:51:19] Production.INFO: ProcessCDR(1,14748599,1,1,2) [2025-03-24 00:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 00:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 00:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 00:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748599', 'tblTempUsageDetail_20' ) start [2025-03-24 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748599', 'tblTempUsageDetail_20' ) end [2025-03-24 00:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 00:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 00:51:22] Production.INFO: ==23386== Releasing lock... [2025-03-24 00:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 00:51:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-24 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 21:52:05 [end_date_ymd] => 2025-03-24 00:52:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 21:52:05' and `end` < '2025-03-24 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-03-24 00:52:17] Production.INFO: count ==1497 [2025-03-24 00:52:18] Production.ERROR: pbx CDR StartTime 2025-03-23 21:52:05 - End Time 2025-03-24 00:52:05 [2025-03-24 00:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748604', 'tblTempUsageDetail_20' ) start [2025-03-24 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748604', 'tblTempUsageDetail_20' ) end [2025-03-24 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748604', 'tblTempVendorCDR_20' ) start [2025-03-24 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748604', 'tblTempVendorCDR_20' ) end [2025-03-24 00:52:18] Production.INFO: ProcessCDR(1,14748604,1,1,2) [2025-03-24 00:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 00:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 00:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 00:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748604', 'tblTempUsageDetail_20' ) start [2025-03-24 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748604', 'tblTempUsageDetail_20' ) end [2025-03-24 00:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 00:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 00:52:22] Production.INFO: ==23484== Releasing lock... [2025-03-24 00:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 00:52:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-24 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 21:53:05 [end_date_ymd] => 2025-03-24 00:53:05 [RateCDR] => 1 ) [2025-03-24 00:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-23 21:53:05' and `end` < '2025-03-24 00:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 00:53:18] Production.INFO: count ==1493 [2025-03-24 00:53:19] Production.ERROR: pbx CDR StartTime 2025-03-23 21:53:05 - End Time 2025-03-24 00:53:05 [2025-03-24 00:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 00:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748609', 'tblTempUsageDetail_20' ) start [2025-03-24 00:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748609', 'tblTempUsageDetail_20' ) end [2025-03-24 00:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748609', 'tblTempVendorCDR_20' ) start [2025-03-24 00:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748609', 'tblTempVendorCDR_20' ) end [2025-03-24 00:53:19] Production.INFO: ProcessCDR(1,14748609,1,1,2) [2025-03-24 00:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 00:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 00:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 00:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 00:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748609', 'tblTempUsageDetail_20' ) start [2025-03-24 00:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748609', 'tblTempUsageDetail_20' ) end [2025-03-24 00:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 00:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 00:53:22] Production.INFO: ==23581== Releasing lock... [2025-03-24 00:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 00:53:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-24 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 21:54:05 [end_date_ymd] => 2025-03-24 00:54:05 [RateCDR] => 1 ) [2025-03-24 00:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-23 21:54:05' and `end` < '2025-03-24 00:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 00:54:17] Production.INFO: count ==1497 [2025-03-24 00:54:18] Production.ERROR: pbx CDR StartTime 2025-03-23 21:54:05 - End Time 2025-03-24 00:54:05 [2025-03-24 00:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748614', 'tblTempUsageDetail_20' ) start [2025-03-24 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748614', 'tblTempUsageDetail_20' ) end [2025-03-24 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748614', 'tblTempVendorCDR_20' ) start [2025-03-24 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748614', 'tblTempVendorCDR_20' ) end [2025-03-24 00:54:18] Production.INFO: ProcessCDR(1,14748614,1,1,2) [2025-03-24 00:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 00:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 00:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 00:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748614', 'tblTempUsageDetail_20' ) start [2025-03-24 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748614', 'tblTempUsageDetail_20' ) end [2025-03-24 00:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 00:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 00:54:21] Production.INFO: ==23686== Releasing lock... [2025-03-24 00:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 00:54:21] Production.INFO: 39.25 MB #Memory Used# [2025-03-24 00:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 21:55:06 [end_date_ymd] => 2025-03-24 00:55:06 [RateCDR] => 1 ) [2025-03-24 00: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-03-23 21:55:06' and `end` < '2025-03-24 00: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-03-24 00:55:18] Production.INFO: count ==1498 [2025-03-24 00:55:19] Production.ERROR: pbx CDR StartTime 2025-03-23 21:55:06 - End Time 2025-03-24 00:55:06 [2025-03-24 00:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748619', 'tblTempUsageDetail_20' ) start [2025-03-24 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748619', 'tblTempUsageDetail_20' ) end [2025-03-24 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748619', 'tblTempVendorCDR_20' ) start [2025-03-24 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748619', 'tblTempVendorCDR_20' ) end [2025-03-24 00:55:19] Production.INFO: ProcessCDR(1,14748619,1,1,2) [2025-03-24 00:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 00:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 00:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 00:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 00:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748619', 'tblTempUsageDetail_20' ) start [2025-03-24 00:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748619', 'tblTempUsageDetail_20' ) end [2025-03-24 00:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 00:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 00:55:22] Production.INFO: ==23784== Releasing lock... [2025-03-24 00:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 00:55:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-24 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 21:56:05 [end_date_ymd] => 2025-03-24 00:56:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 21:56:05' and `end` < '2025-03-24 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-03-24 00:56:17] Production.INFO: count ==1502 [2025-03-24 00:56:18] Production.ERROR: pbx CDR StartTime 2025-03-23 21:56:05 - End Time 2025-03-24 00:56:05 [2025-03-24 00:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748624', 'tblTempUsageDetail_20' ) start [2025-03-24 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748624', 'tblTempUsageDetail_20' ) end [2025-03-24 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748624', 'tblTempVendorCDR_20' ) start [2025-03-24 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748624', 'tblTempVendorCDR_20' ) end [2025-03-24 00:56:18] Production.INFO: ProcessCDR(1,14748624,1,1,2) [2025-03-24 00:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 00:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 00:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 00:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748624', 'tblTempUsageDetail_20' ) start [2025-03-24 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748624', 'tblTempUsageDetail_20' ) end [2025-03-24 00:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 00:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 00:56:22] Production.INFO: ==23889== Releasing lock... [2025-03-24 00:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 00:56:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-24 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 21:57:05 [end_date_ymd] => 2025-03-24 00:57:05 [RateCDR] => 1 ) [2025-03-24 00:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-23 21:57:05' and `end` < '2025-03-24 00:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 00:57:18] Production.INFO: count ==1505 [2025-03-24 00:57:18] Production.ERROR: pbx CDR StartTime 2025-03-23 21:57:05 - End Time 2025-03-24 00:57:05 [2025-03-24 00:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748629', 'tblTempUsageDetail_20' ) start [2025-03-24 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748629', 'tblTempUsageDetail_20' ) end [2025-03-24 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748629', 'tblTempVendorCDR_20' ) start [2025-03-24 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748629', 'tblTempVendorCDR_20' ) end [2025-03-24 00:57:18] Production.INFO: ProcessCDR(1,14748629,1,1,2) [2025-03-24 00:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 00:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 00:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 00:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748629', 'tblTempUsageDetail_20' ) start [2025-03-24 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748629', 'tblTempUsageDetail_20' ) end [2025-03-24 00:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 00:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 00:57:22] Production.INFO: ==23993== Releasing lock... [2025-03-24 00:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 00:57:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 00:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 21:58:04 [end_date_ymd] => 2025-03-24 00:58:04 [RateCDR] => 1 ) [2025-03-24 00:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-23 21:58:04' and `end` < '2025-03-24 00:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 00:58:17] Production.INFO: count ==1505 [2025-03-24 00:58:17] Production.ERROR: pbx CDR StartTime 2025-03-23 21:58:04 - End Time 2025-03-24 00:58:04 [2025-03-24 00:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748634', 'tblTempUsageDetail_20' ) start [2025-03-24 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748634', 'tblTempUsageDetail_20' ) end [2025-03-24 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748634', 'tblTempVendorCDR_20' ) start [2025-03-24 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748634', 'tblTempVendorCDR_20' ) end [2025-03-24 00:58:17] Production.INFO: ProcessCDR(1,14748634,1,1,2) [2025-03-24 00:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 00:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 00:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 00:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748634', 'tblTempUsageDetail_20' ) start [2025-03-24 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748634', 'tblTempUsageDetail_20' ) end [2025-03-24 00:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 00:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 00:58:21] Production.INFO: ==24104== Releasing lock... [2025-03-24 00:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 00:58:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 21:59:05 [end_date_ymd] => 2025-03-24 00:59:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 21:59:05' and `end` < '2025-03-24 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-03-24 00:59:17] Production.INFO: count ==1501 [2025-03-24 00:59:18] Production.ERROR: pbx CDR StartTime 2025-03-23 21:59:05 - End Time 2025-03-24 00:59:05 [2025-03-24 00:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748639', 'tblTempUsageDetail_20' ) start [2025-03-24 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748639', 'tblTempUsageDetail_20' ) end [2025-03-24 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748639', 'tblTempVendorCDR_20' ) start [2025-03-24 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748639', 'tblTempVendorCDR_20' ) end [2025-03-24 00:59:18] Production.INFO: ProcessCDR(1,14748639,1,1,2) [2025-03-24 00:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 00:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 00:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 00:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748639', 'tblTempUsageDetail_20' ) start [2025-03-24 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748639', 'tblTempUsageDetail_20' ) end [2025-03-24 00:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 00:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 00:59:21] Production.INFO: ==24202== Releasing lock... [2025-03-24 00:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 00:59:21] Production.INFO: 39 MB #Memory Used# [2025-03-24 01:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 22:00:05 [end_date_ymd] => 2025-03-24 01:00:05 [RateCDR] => 1 ) [2025-03-24 01:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-23 22:00:05' and `end` < '2025-03-24 01:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 01:00:17] Production.INFO: count ==1510 [2025-03-24 01:00:18] Production.ERROR: pbx CDR StartTime 2025-03-23 22:00:05 - End Time 2025-03-24 01:00:05 [2025-03-24 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748644', 'tblTempUsageDetail_20' ) start [2025-03-24 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748644', 'tblTempUsageDetail_20' ) end [2025-03-24 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748644', 'tblTempVendorCDR_20' ) start [2025-03-24 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748644', 'tblTempVendorCDR_20' ) end [2025-03-24 01:00:18] Production.INFO: ProcessCDR(1,14748644,1,1,2) [2025-03-24 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748644', 'tblTempUsageDetail_20' ) start [2025-03-24 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748644', 'tblTempUsageDetail_20' ) end [2025-03-24 01:00:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 01:00:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 01:00:21] Production.INFO: ==24304== Releasing lock... [2025-03-24 01:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 01:00:21] Production.INFO: 39.25 MB #Memory Used# [2025-03-24 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 22:01:05 [end_date_ymd] => 2025-03-24 01:01:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 22:01:05' and `end` < '2025-03-24 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-03-24 01:01:17] Production.INFO: count ==1521 [2025-03-24 01:01:18] Production.ERROR: pbx CDR StartTime 2025-03-23 22:01:05 - End Time 2025-03-24 01:01:05 [2025-03-24 01:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748650', 'tblTempUsageDetail_20' ) start [2025-03-24 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748650', 'tblTempUsageDetail_20' ) end [2025-03-24 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748650', 'tblTempVendorCDR_20' ) start [2025-03-24 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748650', 'tblTempVendorCDR_20' ) end [2025-03-24 01:01:18] Production.INFO: ProcessCDR(1,14748650,1,1,2) [2025-03-24 01:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748650', 'tblTempUsageDetail_20' ) start [2025-03-24 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748650', 'tblTempUsageDetail_20' ) end [2025-03-24 01:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 01:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 01:01:21] Production.INFO: ==24418== Releasing lock... [2025-03-24 01:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 01:01:21] Production.INFO: 39.75 MB #Memory Used# [2025-03-24 01:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 22:02:06 [end_date_ymd] => 2025-03-24 01:02:06 [RateCDR] => 1 ) [2025-03-24 01: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-03-23 22:02:06' and `end` < '2025-03-24 01: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-03-24 01:02:18] Production.INFO: count ==1522 [2025-03-24 01:02:19] Production.ERROR: pbx CDR StartTime 2025-03-23 22:02:06 - End Time 2025-03-24 01:02:06 [2025-03-24 01:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748655', 'tblTempUsageDetail_20' ) start [2025-03-24 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748655', 'tblTempUsageDetail_20' ) end [2025-03-24 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748655', 'tblTempVendorCDR_20' ) start [2025-03-24 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748655', 'tblTempVendorCDR_20' ) end [2025-03-24 01:02:19] Production.INFO: ProcessCDR(1,14748655,1,1,2) [2025-03-24 01:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748655', 'tblTempUsageDetail_20' ) start [2025-03-24 01:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748655', 'tblTempUsageDetail_20' ) end [2025-03-24 01:02:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 01:02:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 01:02:24] Production.INFO: ==24521== Releasing lock... [2025-03-24 01:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 01:02:24] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 22:03:05 [end_date_ymd] => 2025-03-24 01:03:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 22:03:05' and `end` < '2025-03-24 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-03-24 01:03:17] Production.INFO: count ==1524 [2025-03-24 01:03:18] Production.ERROR: pbx CDR StartTime 2025-03-23 22:03:05 - End Time 2025-03-24 01:03:05 [2025-03-24 01:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748660', 'tblTempUsageDetail_20' ) start [2025-03-24 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748660', 'tblTempUsageDetail_20' ) end [2025-03-24 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748660', 'tblTempVendorCDR_20' ) start [2025-03-24 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748660', 'tblTempVendorCDR_20' ) end [2025-03-24 01:03:18] Production.INFO: ProcessCDR(1,14748660,1,1,2) [2025-03-24 01:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748660', 'tblTempUsageDetail_20' ) start [2025-03-24 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748660', 'tblTempUsageDetail_20' ) end [2025-03-24 01:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 01:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 01:03:21] Production.INFO: ==24621== Releasing lock... [2025-03-24 01:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 01:03:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 22:04:05 [end_date_ymd] => 2025-03-24 01:04:05 [RateCDR] => 1 ) [2025-03-24 01:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-23 22:04:05' and `end` < '2025-03-24 01:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 01:04:18] Production.INFO: count ==1523 [2025-03-24 01:04:19] Production.ERROR: pbx CDR StartTime 2025-03-23 22:04:05 - End Time 2025-03-24 01:04:05 [2025-03-24 01:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748665', 'tblTempUsageDetail_20' ) start [2025-03-24 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748665', 'tblTempUsageDetail_20' ) end [2025-03-24 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748665', 'tblTempVendorCDR_20' ) start [2025-03-24 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748665', 'tblTempVendorCDR_20' ) end [2025-03-24 01:04:19] Production.INFO: ProcessCDR(1,14748665,1,1,2) [2025-03-24 01:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748665', 'tblTempUsageDetail_20' ) start [2025-03-24 01:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748665', 'tblTempUsageDetail_20' ) end [2025-03-24 01:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 01:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 01:04:22] Production.INFO: ==24761== Releasing lock... [2025-03-24 01:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 01:04:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 22:05:05 [end_date_ymd] => 2025-03-24 01:05:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 22:05:05' and `end` < '2025-03-24 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-03-24 01:05:17] Production.INFO: count ==1520 [2025-03-24 01:05:18] Production.ERROR: pbx CDR StartTime 2025-03-23 22:05:05 - End Time 2025-03-24 01:05:05 [2025-03-24 01:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748670', 'tblTempUsageDetail_20' ) start [2025-03-24 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748670', 'tblTempUsageDetail_20' ) end [2025-03-24 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748670', 'tblTempVendorCDR_20' ) start [2025-03-24 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748670', 'tblTempVendorCDR_20' ) end [2025-03-24 01:05:18] Production.INFO: ProcessCDR(1,14748670,1,1,2) [2025-03-24 01:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748670', 'tblTempUsageDetail_20' ) start [2025-03-24 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748670', 'tblTempUsageDetail_20' ) end [2025-03-24 01:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 01:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 01:05:21] Production.INFO: ==24856== Releasing lock... [2025-03-24 01:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 01:05:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 01:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 22:06:06 [end_date_ymd] => 2025-03-24 01:06:06 [RateCDR] => 1 ) [2025-03-24 01: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-03-23 22:06:06' and `end` < '2025-03-24 01: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-03-24 01:06:18] Production.INFO: count ==1516 [2025-03-24 01:06:19] Production.ERROR: pbx CDR StartTime 2025-03-23 22:06:06 - End Time 2025-03-24 01:06:06 [2025-03-24 01:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748675', 'tblTempUsageDetail_20' ) start [2025-03-24 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748675', 'tblTempUsageDetail_20' ) end [2025-03-24 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748675', 'tblTempVendorCDR_20' ) start [2025-03-24 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748675', 'tblTempVendorCDR_20' ) end [2025-03-24 01:06:19] Production.INFO: ProcessCDR(1,14748675,1,1,2) [2025-03-24 01:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748675', 'tblTempUsageDetail_20' ) start [2025-03-24 01:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748675', 'tblTempUsageDetail_20' ) end [2025-03-24 01:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 01:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 01:06:22] Production.INFO: ==24955== Releasing lock... [2025-03-24 01:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 01:06:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 22:07:05 [end_date_ymd] => 2025-03-24 01:07:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 22:07:05' and `end` < '2025-03-24 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-03-24 01:07:17] Production.INFO: count ==1515 [2025-03-24 01:07:18] Production.ERROR: pbx CDR StartTime 2025-03-23 22:07:05 - End Time 2025-03-24 01:07:05 [2025-03-24 01:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748680', 'tblTempUsageDetail_20' ) start [2025-03-24 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748680', 'tblTempUsageDetail_20' ) end [2025-03-24 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748680', 'tblTempVendorCDR_20' ) start [2025-03-24 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748680', 'tblTempVendorCDR_20' ) end [2025-03-24 01:07:18] Production.INFO: ProcessCDR(1,14748680,1,1,2) [2025-03-24 01:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748680', 'tblTempUsageDetail_20' ) start [2025-03-24 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748680', 'tblTempUsageDetail_20' ) end [2025-03-24 01:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 01:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 01:07:21] Production.INFO: ==25057== Releasing lock... [2025-03-24 01:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 01:07:21] Production.INFO: 39.75 MB #Memory Used# [2025-03-24 01:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 22:08:06 [end_date_ymd] => 2025-03-24 01:08:06 [RateCDR] => 1 ) [2025-03-24 01: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-03-23 22:08:06' and `end` < '2025-03-24 01: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-03-24 01:08:18] Production.INFO: count ==1515 [2025-03-24 01:08:19] Production.ERROR: pbx CDR StartTime 2025-03-23 22:08:06 - End Time 2025-03-24 01:08:06 [2025-03-24 01:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748685', 'tblTempUsageDetail_20' ) start [2025-03-24 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748685', 'tblTempUsageDetail_20' ) end [2025-03-24 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748685', 'tblTempVendorCDR_20' ) start [2025-03-24 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748685', 'tblTempVendorCDR_20' ) end [2025-03-24 01:08:19] Production.INFO: ProcessCDR(1,14748685,1,1,2) [2025-03-24 01:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748685', 'tblTempUsageDetail_20' ) start [2025-03-24 01:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748685', 'tblTempUsageDetail_20' ) end [2025-03-24 01:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 01:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 01:08:22] Production.INFO: ==25165== Releasing lock... [2025-03-24 01:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 01:08:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-24 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 22:09:05 [end_date_ymd] => 2025-03-24 01:09:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 22:09:05' and `end` < '2025-03-24 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-03-24 01:09:17] Production.INFO: count ==1514 [2025-03-24 01:09:17] Production.ERROR: pbx CDR StartTime 2025-03-23 22:09:05 - End Time 2025-03-24 01:09:05 [2025-03-24 01:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748690', 'tblTempUsageDetail_20' ) start [2025-03-24 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748690', 'tblTempUsageDetail_20' ) end [2025-03-24 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748690', 'tblTempVendorCDR_20' ) start [2025-03-24 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748690', 'tblTempVendorCDR_20' ) end [2025-03-24 01:09:17] Production.INFO: ProcessCDR(1,14748690,1,1,2) [2025-03-24 01:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748690', 'tblTempUsageDetail_20' ) start [2025-03-24 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748690', 'tblTempUsageDetail_20' ) end [2025-03-24 01:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 01:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 01:09:21] Production.INFO: ==25263== Releasing lock... [2025-03-24 01:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 01:09:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 22:10:06 [end_date_ymd] => 2025-03-24 01:10:06 [RateCDR] => 1 ) [2025-03-24 01:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-23 22:10:06' and `end` < '2025-03-24 01:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 01:10:19] Production.INFO: count ==1524 [2025-03-24 01:10:19] Production.ERROR: pbx CDR StartTime 2025-03-23 22:10:06 - End Time 2025-03-24 01:10:06 [2025-03-24 01:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748696', 'tblTempUsageDetail_20' ) start [2025-03-24 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748696', 'tblTempUsageDetail_20' ) end [2025-03-24 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748696', 'tblTempVendorCDR_20' ) start [2025-03-24 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748696', 'tblTempVendorCDR_20' ) end [2025-03-24 01:10:19] Production.INFO: ProcessCDR(1,14748696,1,1,2) [2025-03-24 01:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748696', 'tblTempUsageDetail_20' ) start [2025-03-24 01:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748696', 'tblTempUsageDetail_20' ) end [2025-03-24 01:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 01:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 01:10:23] Production.INFO: ==25383== Releasing lock... [2025-03-24 01:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 01:10:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 22:11:05 [end_date_ymd] => 2025-03-24 01:11:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 22:11:05' and `end` < '2025-03-24 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-03-24 01:11:17] Production.INFO: count ==1526 [2025-03-24 01:11:18] Production.ERROR: pbx CDR StartTime 2025-03-23 22:11:05 - End Time 2025-03-24 01:11:05 [2025-03-24 01:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748701', 'tblTempUsageDetail_20' ) start [2025-03-24 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748701', 'tblTempUsageDetail_20' ) end [2025-03-24 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748701', 'tblTempVendorCDR_20' ) start [2025-03-24 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748701', 'tblTempVendorCDR_20' ) end [2025-03-24 01:11:18] Production.INFO: ProcessCDR(1,14748701,1,1,2) [2025-03-24 01:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748701', 'tblTempUsageDetail_20' ) start [2025-03-24 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748701', 'tblTempUsageDetail_20' ) end [2025-03-24 01:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 01:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 01:11:21] Production.INFO: ==25484== Releasing lock... [2025-03-24 01:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 01:11:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 22:12:05 [end_date_ymd] => 2025-03-24 01:12:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 22:12:05' and `end` < '2025-03-24 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-03-24 01:12:18] Production.INFO: count ==1525 [2025-03-24 01:12:19] Production.ERROR: pbx CDR StartTime 2025-03-23 22:12:05 - End Time 2025-03-24 01:12:05 [2025-03-24 01:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748706', 'tblTempUsageDetail_20' ) start [2025-03-24 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748706', 'tblTempUsageDetail_20' ) end [2025-03-24 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748706', 'tblTempVendorCDR_20' ) start [2025-03-24 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748706', 'tblTempVendorCDR_20' ) end [2025-03-24 01:12:19] Production.INFO: ProcessCDR(1,14748706,1,1,2) [2025-03-24 01:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748706', 'tblTempUsageDetail_20' ) start [2025-03-24 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748706', 'tblTempUsageDetail_20' ) end [2025-03-24 01:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 01:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 01:12:22] Production.INFO: ==25581== Releasing lock... [2025-03-24 01:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 01:12:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 01:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 22:13:06 [end_date_ymd] => 2025-03-24 01:13:06 [RateCDR] => 1 ) [2025-03-24 01:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-23 22:13:06' and `end` < '2025-03-24 01:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 01:13:18] Production.INFO: count ==1524 [2025-03-24 01:13:19] Production.ERROR: pbx CDR StartTime 2025-03-23 22:13:06 - End Time 2025-03-24 01:13:06 [2025-03-24 01:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748711', 'tblTempUsageDetail_20' ) start [2025-03-24 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748711', 'tblTempUsageDetail_20' ) end [2025-03-24 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748711', 'tblTempVendorCDR_20' ) start [2025-03-24 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748711', 'tblTempVendorCDR_20' ) end [2025-03-24 01:13:19] Production.INFO: ProcessCDR(1,14748711,1,1,2) [2025-03-24 01:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748711', 'tblTempUsageDetail_20' ) start [2025-03-24 01:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748711', 'tblTempUsageDetail_20' ) end [2025-03-24 01:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 01:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 01:13:23] Production.INFO: ==25682== Releasing lock... [2025-03-24 01:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 01:13:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 01:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 22:14:06 [end_date_ymd] => 2025-03-24 01:14:06 [RateCDR] => 1 ) [2025-03-24 01: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-03-23 22:14:06' and `end` < '2025-03-24 01: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-03-24 01:14:18] Production.INFO: count ==1524 [2025-03-24 01:14:19] Production.ERROR: pbx CDR StartTime 2025-03-23 22:14:06 - End Time 2025-03-24 01:14:06 [2025-03-24 01:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748716', 'tblTempUsageDetail_20' ) start [2025-03-24 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748716', 'tblTempUsageDetail_20' ) end [2025-03-24 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748716', 'tblTempVendorCDR_20' ) start [2025-03-24 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748716', 'tblTempVendorCDR_20' ) end [2025-03-24 01:14:19] Production.INFO: ProcessCDR(1,14748716,1,1,2) [2025-03-24 01:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748716', 'tblTempUsageDetail_20' ) start [2025-03-24 01:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748716', 'tblTempUsageDetail_20' ) end [2025-03-24 01:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 01:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 01:14:22] Production.INFO: ==25784== Releasing lock... [2025-03-24 01:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 01:14:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 01:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 22:15:06 [end_date_ymd] => 2025-03-24 01:15:06 [RateCDR] => 1 ) [2025-03-24 01: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-03-23 22:15:06' and `end` < '2025-03-24 01: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-03-24 01:15:18] Production.INFO: count ==1524 [2025-03-24 01:15:19] Production.ERROR: pbx CDR StartTime 2025-03-23 22:15:06 - End Time 2025-03-24 01:15:06 [2025-03-24 01:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 01:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748721', 'tblTempUsageDetail_20' ) start [2025-03-24 01:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748721', 'tblTempUsageDetail_20' ) end [2025-03-24 01:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748721', 'tblTempVendorCDR_20' ) start [2025-03-24 01:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748721', 'tblTempVendorCDR_20' ) end [2025-03-24 01:15:19] Production.INFO: ProcessCDR(1,14748721,1,1,2) [2025-03-24 01:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748721', 'tblTempUsageDetail_20' ) start [2025-03-24 01:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748721', 'tblTempUsageDetail_20' ) end [2025-03-24 01:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 01:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 01:15:22] Production.INFO: ==25890== Releasing lock... [2025-03-24 01:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 01:15:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 22:16:05 [end_date_ymd] => 2025-03-24 01:16:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 22:16:05' and `end` < '2025-03-24 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-03-24 01:16:18] Production.INFO: count ==1524 [2025-03-24 01:16:18] Production.ERROR: pbx CDR StartTime 2025-03-23 22:16:05 - End Time 2025-03-24 01:16:05 [2025-03-24 01:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748726', 'tblTempUsageDetail_20' ) start [2025-03-24 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748726', 'tblTempUsageDetail_20' ) end [2025-03-24 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748726', 'tblTempVendorCDR_20' ) start [2025-03-24 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748726', 'tblTempVendorCDR_20' ) end [2025-03-24 01:16:18] Production.INFO: ProcessCDR(1,14748726,1,1,2) [2025-03-24 01:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748726', 'tblTempUsageDetail_20' ) start [2025-03-24 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748726', 'tblTempUsageDetail_20' ) end [2025-03-24 01:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 01:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 01:16:22] Production.INFO: ==25987== Releasing lock... [2025-03-24 01:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 01:16:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 22:17:05 [end_date_ymd] => 2025-03-24 01:17:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 22:17:05' and `end` < '2025-03-24 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-03-24 01:17:18] Production.INFO: count ==1523 [2025-03-24 01:17:18] Production.ERROR: pbx CDR StartTime 2025-03-23 22:17:05 - End Time 2025-03-24 01:17:05 [2025-03-24 01:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748731', 'tblTempUsageDetail_20' ) start [2025-03-24 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748731', 'tblTempUsageDetail_20' ) end [2025-03-24 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748731', 'tblTempVendorCDR_20' ) start [2025-03-24 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748731', 'tblTempVendorCDR_20' ) end [2025-03-24 01:17:18] Production.INFO: ProcessCDR(1,14748731,1,1,2) [2025-03-24 01:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748731', 'tblTempUsageDetail_20' ) start [2025-03-24 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748731', 'tblTempUsageDetail_20' ) end [2025-03-24 01:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 01:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 01:17:22] Production.INFO: ==26105== Releasing lock... [2025-03-24 01:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 01:17:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 22:18:05 [end_date_ymd] => 2025-03-24 01:18:05 [RateCDR] => 1 ) [2025-03-24 01:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-23 22:18:05' and `end` < '2025-03-24 01:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 01:18:17] Production.INFO: count ==1523 [2025-03-24 01:18:18] Production.ERROR: pbx CDR StartTime 2025-03-23 22:18:05 - End Time 2025-03-24 01:18:05 [2025-03-24 01:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748736', 'tblTempUsageDetail_20' ) start [2025-03-24 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748736', 'tblTempUsageDetail_20' ) end [2025-03-24 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748736', 'tblTempVendorCDR_20' ) start [2025-03-24 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748736', 'tblTempVendorCDR_20' ) end [2025-03-24 01:18:18] Production.INFO: ProcessCDR(1,14748736,1,1,2) [2025-03-24 01:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748736', 'tblTempUsageDetail_20' ) start [2025-03-24 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748736', 'tblTempUsageDetail_20' ) end [2025-03-24 01:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 01:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 01:18:21] Production.INFO: ==26217== Releasing lock... [2025-03-24 01:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 01:18:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 22:19:05 [end_date_ymd] => 2025-03-24 01:19:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 22:19:05' and `end` < '2025-03-24 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-03-24 01:19:17] Production.INFO: count ==1521 [2025-03-24 01:19:18] Production.ERROR: pbx CDR StartTime 2025-03-23 22:19:05 - End Time 2025-03-24 01:19:05 [2025-03-24 01:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748741', 'tblTempUsageDetail_20' ) start [2025-03-24 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748741', 'tblTempUsageDetail_20' ) end [2025-03-24 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748741', 'tblTempVendorCDR_20' ) start [2025-03-24 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748741', 'tblTempVendorCDR_20' ) end [2025-03-24 01:19:18] Production.INFO: ProcessCDR(1,14748741,1,1,2) [2025-03-24 01:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748741', 'tblTempUsageDetail_20' ) start [2025-03-24 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748741', 'tblTempUsageDetail_20' ) end [2025-03-24 01:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 01:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 01:19:21] Production.INFO: ==26358== Releasing lock... [2025-03-24 01:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 01:19:21] Production.INFO: 39.75 MB #Memory Used# [2025-03-24 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 22:20:06 [end_date_ymd] => 2025-03-24 01:20:06 [RateCDR] => 1 ) [2025-03-24 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-03-23 22:20:06' and `end` < '2025-03-24 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-03-24 01:20:18] Production.INFO: count ==1535 [2025-03-24 01:20:19] Production.ERROR: pbx CDR StartTime 2025-03-23 22:20:06 - End Time 2025-03-24 01:20:06 [2025-03-24 01:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748747', 'tblTempUsageDetail_20' ) start [2025-03-24 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748747', 'tblTempUsageDetail_20' ) end [2025-03-24 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748747', 'tblTempVendorCDR_20' ) start [2025-03-24 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748747', 'tblTempVendorCDR_20' ) end [2025-03-24 01:20:19] Production.INFO: ProcessCDR(1,14748747,1,1,2) [2025-03-24 01:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748747', 'tblTempUsageDetail_20' ) start [2025-03-24 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748747', 'tblTempUsageDetail_20' ) end [2025-03-24 01:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 01:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 01:20:22] Production.INFO: ==26467== Releasing lock... [2025-03-24 01:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 01:20:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 01:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 22:21:06 [end_date_ymd] => 2025-03-24 01:21:06 [RateCDR] => 1 ) [2025-03-24 01: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-03-23 22:21:06' and `end` < '2025-03-24 01: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-03-24 01:21:18] Production.INFO: count ==1535 [2025-03-24 01:21:19] Production.ERROR: pbx CDR StartTime 2025-03-23 22:21:06 - End Time 2025-03-24 01:21:06 [2025-03-24 01:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748752', 'tblTempUsageDetail_20' ) start [2025-03-24 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748752', 'tblTempUsageDetail_20' ) end [2025-03-24 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748752', 'tblTempVendorCDR_20' ) start [2025-03-24 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748752', 'tblTempVendorCDR_20' ) end [2025-03-24 01:21:19] Production.INFO: ProcessCDR(1,14748752,1,1,2) [2025-03-24 01:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748752', 'tblTempUsageDetail_20' ) start [2025-03-24 01:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748752', 'tblTempUsageDetail_20' ) end [2025-03-24 01:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 01:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 01:21:22] Production.INFO: ==26574== Releasing lock... [2025-03-24 01:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 01:21:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 22:22:05 [end_date_ymd] => 2025-03-24 01:22:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 22:22:05' and `end` < '2025-03-24 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-03-24 01:22:17] Production.INFO: count ==1534 [2025-03-24 01:22:18] Production.ERROR: pbx CDR StartTime 2025-03-23 22:22:05 - End Time 2025-03-24 01:22:05 [2025-03-24 01:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748757', 'tblTempUsageDetail_20' ) start [2025-03-24 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748757', 'tblTempUsageDetail_20' ) end [2025-03-24 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748757', 'tblTempVendorCDR_20' ) start [2025-03-24 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748757', 'tblTempVendorCDR_20' ) end [2025-03-24 01:22:18] Production.INFO: ProcessCDR(1,14748757,1,1,2) [2025-03-24 01:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748757', 'tblTempUsageDetail_20' ) start [2025-03-24 01:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748757', 'tblTempUsageDetail_20' ) end [2025-03-24 01:22:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 01:22:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 01:22:23] Production.INFO: ==26671== Releasing lock... [2025-03-24 01:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 01:22:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 22:23:05 [end_date_ymd] => 2025-03-24 01:23:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 22:23:05' and `end` < '2025-03-24 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-03-24 01:23:18] Production.INFO: count ==1531 [2025-03-24 01:23:18] Production.ERROR: pbx CDR StartTime 2025-03-23 22:23:05 - End Time 2025-03-24 01:23:05 [2025-03-24 01:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748762', 'tblTempUsageDetail_20' ) start [2025-03-24 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748762', 'tblTempUsageDetail_20' ) end [2025-03-24 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748762', 'tblTempVendorCDR_20' ) start [2025-03-24 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748762', 'tblTempVendorCDR_20' ) end [2025-03-24 01:23:18] Production.INFO: ProcessCDR(1,14748762,1,1,2) [2025-03-24 01:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748762', 'tblTempUsageDetail_20' ) start [2025-03-24 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748762', 'tblTempUsageDetail_20' ) end [2025-03-24 01:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 01:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 01:23:22] Production.INFO: ==26781== Releasing lock... [2025-03-24 01:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 01:23:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 22:24:05 [end_date_ymd] => 2025-03-24 01:24:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 22:24:05' and `end` < '2025-03-24 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-03-24 01:24:17] Production.INFO: count ==1533 [2025-03-24 01:24:18] Production.ERROR: pbx CDR StartTime 2025-03-23 22:24:05 - End Time 2025-03-24 01:24:05 [2025-03-24 01:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748767', 'tblTempUsageDetail_20' ) start [2025-03-24 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748767', 'tblTempUsageDetail_20' ) end [2025-03-24 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748767', 'tblTempVendorCDR_20' ) start [2025-03-24 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748767', 'tblTempVendorCDR_20' ) end [2025-03-24 01:24:18] Production.INFO: ProcessCDR(1,14748767,1,1,2) [2025-03-24 01:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748767', 'tblTempUsageDetail_20' ) start [2025-03-24 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748767', 'tblTempUsageDetail_20' ) end [2025-03-24 01:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 01:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 01:24:21] Production.INFO: ==26898== Releasing lock... [2025-03-24 01:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 01:24:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 22:25:05 [end_date_ymd] => 2025-03-24 01:25:05 [RateCDR] => 1 ) [2025-03-24 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-23 22:25:05' and `end` < '2025-03-24 01:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 01:25:17] Production.INFO: count ==1534 [2025-03-24 01:25:18] Production.ERROR: pbx CDR StartTime 2025-03-23 22:25:05 - End Time 2025-03-24 01:25:05 [2025-03-24 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748772', 'tblTempUsageDetail_20' ) start [2025-03-24 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748772', 'tblTempUsageDetail_20' ) end [2025-03-24 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748772', 'tblTempVendorCDR_20' ) start [2025-03-24 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748772', 'tblTempVendorCDR_20' ) end [2025-03-24 01:25:18] Production.INFO: ProcessCDR(1,14748772,1,1,2) [2025-03-24 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748772', 'tblTempUsageDetail_20' ) start [2025-03-24 01:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748772', 'tblTempUsageDetail_20' ) end [2025-03-24 01:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 01:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 01:25:23] Production.INFO: ==26999== Releasing lock... [2025-03-24 01:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 01:25:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 22:26:05 [end_date_ymd] => 2025-03-24 01:26:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 22:26:05' and `end` < '2025-03-24 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-03-24 01:26:17] Production.INFO: count ==1533 [2025-03-24 01:26:18] Production.ERROR: pbx CDR StartTime 2025-03-23 22:26:05 - End Time 2025-03-24 01:26:05 [2025-03-24 01:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748777', 'tblTempUsageDetail_20' ) start [2025-03-24 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748777', 'tblTempUsageDetail_20' ) end [2025-03-24 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748777', 'tblTempVendorCDR_20' ) start [2025-03-24 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748777', 'tblTempVendorCDR_20' ) end [2025-03-24 01:26:18] Production.INFO: ProcessCDR(1,14748777,1,1,2) [2025-03-24 01:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748777', 'tblTempUsageDetail_20' ) start [2025-03-24 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748777', 'tblTempUsageDetail_20' ) end [2025-03-24 01:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 01:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 01:26:21] Production.INFO: ==27103== Releasing lock... [2025-03-24 01:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 01:26:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 22:27:05 [end_date_ymd] => 2025-03-24 01:27:05 [RateCDR] => 1 ) [2025-03-24 01:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-23 22:27:05' and `end` < '2025-03-24 01:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 01:27:18] Production.INFO: count ==1523 [2025-03-24 01:27:18] Production.ERROR: pbx CDR StartTime 2025-03-23 22:27:05 - End Time 2025-03-24 01:27:05 [2025-03-24 01:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748782', 'tblTempUsageDetail_20' ) start [2025-03-24 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748782', 'tblTempUsageDetail_20' ) end [2025-03-24 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748782', 'tblTempVendorCDR_20' ) start [2025-03-24 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748782', 'tblTempVendorCDR_20' ) end [2025-03-24 01:27:18] Production.INFO: ProcessCDR(1,14748782,1,1,2) [2025-03-24 01:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748782', 'tblTempUsageDetail_20' ) start [2025-03-24 01:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748782', 'tblTempUsageDetail_20' ) end [2025-03-24 01:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 01:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 01:27:22] Production.INFO: ==27208== Releasing lock... [2025-03-24 01:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 01:27:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 22:28:05 [end_date_ymd] => 2025-03-24 01:28:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 22:28:05' and `end` < '2025-03-24 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-03-24 01:28:17] Production.INFO: count ==1522 [2025-03-24 01:28:18] Production.ERROR: pbx CDR StartTime 2025-03-23 22:28:05 - End Time 2025-03-24 01:28:05 [2025-03-24 01:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748787', 'tblTempUsageDetail_20' ) start [2025-03-24 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748787', 'tblTempUsageDetail_20' ) end [2025-03-24 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748787', 'tblTempVendorCDR_20' ) start [2025-03-24 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748787', 'tblTempVendorCDR_20' ) end [2025-03-24 01:28:18] Production.INFO: ProcessCDR(1,14748787,1,1,2) [2025-03-24 01:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748787', 'tblTempUsageDetail_20' ) start [2025-03-24 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748787', 'tblTempUsageDetail_20' ) end [2025-03-24 01:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 01:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 01:28:21] Production.INFO: ==27308== Releasing lock... [2025-03-24 01:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 01:28:21] Production.INFO: 39.75 MB #Memory Used# [2025-03-24 01:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 22:29:04 [end_date_ymd] => 2025-03-24 01:29:04 [RateCDR] => 1 ) [2025-03-24 01:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-23 22:29:04' and `end` < '2025-03-24 01:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 01:29:17] Production.INFO: count ==1523 [2025-03-24 01:29:17] Production.ERROR: pbx CDR StartTime 2025-03-23 22:29:04 - End Time 2025-03-24 01:29:04 [2025-03-24 01:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748792', 'tblTempUsageDetail_20' ) start [2025-03-24 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748792', 'tblTempUsageDetail_20' ) end [2025-03-24 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748792', 'tblTempVendorCDR_20' ) start [2025-03-24 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748792', 'tblTempVendorCDR_20' ) end [2025-03-24 01:29:18] Production.INFO: ProcessCDR(1,14748792,1,1,2) [2025-03-24 01:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748792', 'tblTempUsageDetail_20' ) start [2025-03-24 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748792', 'tblTempUsageDetail_20' ) end [2025-03-24 01:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 01:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 01:29:21] Production.INFO: ==27410== Releasing lock... [2025-03-24 01:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 01:29:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 22:30:06 [end_date_ymd] => 2025-03-24 01:30:06 [RateCDR] => 1 ) [2025-03-24 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-03-23 22:30:06' and `end` < '2025-03-24 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-03-24 01:30:18] Production.INFO: count ==1532 [2025-03-24 01:30:19] Production.ERROR: pbx CDR StartTime 2025-03-23 22:30:06 - End Time 2025-03-24 01:30:06 [2025-03-24 01:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748798', 'tblTempUsageDetail_20' ) start [2025-03-24 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748798', 'tblTempUsageDetail_20' ) end [2025-03-24 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748798', 'tblTempVendorCDR_20' ) start [2025-03-24 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748798', 'tblTempVendorCDR_20' ) end [2025-03-24 01:30:19] Production.INFO: ProcessCDR(1,14748798,1,1,2) [2025-03-24 01:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748798', 'tblTempUsageDetail_20' ) start [2025-03-24 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748798', 'tblTempUsageDetail_20' ) end [2025-03-24 01:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 01:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 01:30:22] Production.INFO: ==27532== Releasing lock... [2025-03-24 01:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 01:30:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 22:31:05 [end_date_ymd] => 2025-03-24 01:31:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 22:31:05' and `end` < '2025-03-24 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-03-24 01:31:18] Production.INFO: count ==1547 [2025-03-24 01:31:18] Production.ERROR: pbx CDR StartTime 2025-03-23 22:31:05 - End Time 2025-03-24 01:31:05 [2025-03-24 01:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748803', 'tblTempUsageDetail_20' ) start [2025-03-24 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748803', 'tblTempUsageDetail_20' ) end [2025-03-24 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748803', 'tblTempVendorCDR_20' ) start [2025-03-24 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748803', 'tblTempVendorCDR_20' ) end [2025-03-24 01:31:18] Production.INFO: ProcessCDR(1,14748803,1,1,2) [2025-03-24 01:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748803', 'tblTempUsageDetail_20' ) start [2025-03-24 01:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748803', 'tblTempUsageDetail_20' ) end [2025-03-24 01:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 01:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 01:31:22] Production.INFO: ==27635== Releasing lock... [2025-03-24 01:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 01:31:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-24 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 22:32:05 [end_date_ymd] => 2025-03-24 01:32:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 22:32:05' and `end` < '2025-03-24 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-03-24 01:32:18] Production.INFO: count ==1545 [2025-03-24 01:32:18] Production.ERROR: pbx CDR StartTime 2025-03-23 22:32:05 - End Time 2025-03-24 01:32:05 [2025-03-24 01:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748808', 'tblTempUsageDetail_20' ) start [2025-03-24 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748808', 'tblTempUsageDetail_20' ) end [2025-03-24 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748808', 'tblTempVendorCDR_20' ) start [2025-03-24 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748808', 'tblTempVendorCDR_20' ) end [2025-03-24 01:32:18] Production.INFO: ProcessCDR(1,14748808,1,1,2) [2025-03-24 01:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748808', 'tblTempUsageDetail_20' ) start [2025-03-24 01:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748808', 'tblTempUsageDetail_20' ) end [2025-03-24 01:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 01:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 01:32:22] Production.INFO: ==27737== Releasing lock... [2025-03-24 01:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 01:32:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 22:33:05 [end_date_ymd] => 2025-03-24 01:33:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 22:33:05' and `end` < '2025-03-24 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-03-24 01:33:17] Production.INFO: count ==1543 [2025-03-24 01:33:18] Production.ERROR: pbx CDR StartTime 2025-03-23 22:33:05 - End Time 2025-03-24 01:33:05 [2025-03-24 01:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748813', 'tblTempUsageDetail_20' ) start [2025-03-24 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748813', 'tblTempUsageDetail_20' ) end [2025-03-24 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748813', 'tblTempVendorCDR_20' ) start [2025-03-24 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748813', 'tblTempVendorCDR_20' ) end [2025-03-24 01:33:18] Production.INFO: ProcessCDR(1,14748813,1,1,2) [2025-03-24 01:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748813', 'tblTempUsageDetail_20' ) start [2025-03-24 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748813', 'tblTempUsageDetail_20' ) end [2025-03-24 01:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 01:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 01:33:21] Production.INFO: ==27833== Releasing lock... [2025-03-24 01:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 01:33:21] Production.INFO: 39.75 MB #Memory Used# [2025-03-24 01:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 22:34:06 [end_date_ymd] => 2025-03-24 01:34:06 [RateCDR] => 1 ) [2025-03-24 01: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-03-23 22:34:06' and `end` < '2025-03-24 01: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-03-24 01:34:18] Production.INFO: count ==1544 [2025-03-24 01:34:19] Production.ERROR: pbx CDR StartTime 2025-03-23 22:34:06 - End Time 2025-03-24 01:34:06 [2025-03-24 01:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748818', 'tblTempUsageDetail_20' ) start [2025-03-24 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748818', 'tblTempUsageDetail_20' ) end [2025-03-24 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748818', 'tblTempVendorCDR_20' ) start [2025-03-24 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748818', 'tblTempVendorCDR_20' ) end [2025-03-24 01:34:19] Production.INFO: ProcessCDR(1,14748818,1,1,2) [2025-03-24 01:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748818', 'tblTempUsageDetail_20' ) start [2025-03-24 01:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748818', 'tblTempUsageDetail_20' ) end [2025-03-24 01:34:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 01:34:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 01:34:24] Production.INFO: ==27944== Releasing lock... [2025-03-24 01:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 01:34:24] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 22:35:05 [end_date_ymd] => 2025-03-24 01:35:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 22:35:05' and `end` < '2025-03-24 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-03-24 01:35:17] Production.INFO: count ==1544 [2025-03-24 01:35:18] Production.ERROR: pbx CDR StartTime 2025-03-23 22:35:05 - End Time 2025-03-24 01:35:05 [2025-03-24 01:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748823', 'tblTempUsageDetail_20' ) start [2025-03-24 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748823', 'tblTempUsageDetail_20' ) end [2025-03-24 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748823', 'tblTempVendorCDR_20' ) start [2025-03-24 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748823', 'tblTempVendorCDR_20' ) end [2025-03-24 01:35:18] Production.INFO: ProcessCDR(1,14748823,1,1,2) [2025-03-24 01:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748823', 'tblTempUsageDetail_20' ) start [2025-03-24 01:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748823', 'tblTempUsageDetail_20' ) end [2025-03-24 01:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 01:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 01:35:22] Production.INFO: ==28091== Releasing lock... [2025-03-24 01:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 01:35:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 22:36:05 [end_date_ymd] => 2025-03-24 01:36:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 22:36:05' and `end` < '2025-03-24 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-03-24 01:36:18] Production.INFO: count ==1540 [2025-03-24 01:36:18] Production.ERROR: pbx CDR StartTime 2025-03-23 22:36:05 - End Time 2025-03-24 01:36:05 [2025-03-24 01:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748828', 'tblTempUsageDetail_20' ) start [2025-03-24 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748828', 'tblTempUsageDetail_20' ) end [2025-03-24 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748828', 'tblTempVendorCDR_20' ) start [2025-03-24 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748828', 'tblTempVendorCDR_20' ) end [2025-03-24 01:36:18] Production.INFO: ProcessCDR(1,14748828,1,1,2) [2025-03-24 01:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748828', 'tblTempUsageDetail_20' ) start [2025-03-24 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748828', 'tblTempUsageDetail_20' ) end [2025-03-24 01:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 01:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 01:36:22] Production.INFO: ==28192== Releasing lock... [2025-03-24 01:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 01:36:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 22:37:05 [end_date_ymd] => 2025-03-24 01:37:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 22:37:05' and `end` < '2025-03-24 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-03-24 01:37:17] Production.INFO: count ==1538 [2025-03-24 01:37:18] Production.ERROR: pbx CDR StartTime 2025-03-23 22:37:05 - End Time 2025-03-24 01:37:05 [2025-03-24 01:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748833', 'tblTempUsageDetail_20' ) start [2025-03-24 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748833', 'tblTempUsageDetail_20' ) end [2025-03-24 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748833', 'tblTempVendorCDR_20' ) start [2025-03-24 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748833', 'tblTempVendorCDR_20' ) end [2025-03-24 01:37:18] Production.INFO: ProcessCDR(1,14748833,1,1,2) [2025-03-24 01:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748833', 'tblTempUsageDetail_20' ) start [2025-03-24 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748833', 'tblTempUsageDetail_20' ) end [2025-03-24 01:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 01:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 01:37:21] Production.INFO: ==28296== Releasing lock... [2025-03-24 01:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 01:37:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 22:38:05 [end_date_ymd] => 2025-03-24 01:38:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 22:38:05' and `end` < '2025-03-24 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-03-24 01:38:18] Production.INFO: count ==1537 [2025-03-24 01:38:18] Production.ERROR: pbx CDR StartTime 2025-03-23 22:38:05 - End Time 2025-03-24 01:38:05 [2025-03-24 01:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748838', 'tblTempUsageDetail_20' ) start [2025-03-24 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748838', 'tblTempUsageDetail_20' ) end [2025-03-24 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748838', 'tblTempVendorCDR_20' ) start [2025-03-24 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748838', 'tblTempVendorCDR_20' ) end [2025-03-24 01:38:19] Production.INFO: ProcessCDR(1,14748838,1,1,2) [2025-03-24 01:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748838', 'tblTempUsageDetail_20' ) start [2025-03-24 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748838', 'tblTempUsageDetail_20' ) end [2025-03-24 01:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 01:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 01:38:22] Production.INFO: ==28394== Releasing lock... [2025-03-24 01:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 01:38:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 22:39:05 [end_date_ymd] => 2025-03-24 01:39:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 22:39:05' and `end` < '2025-03-24 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-03-24 01:39:17] Production.INFO: count ==1535 [2025-03-24 01:39:18] Production.ERROR: pbx CDR StartTime 2025-03-23 22:39:05 - End Time 2025-03-24 01:39:05 [2025-03-24 01:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748843', 'tblTempUsageDetail_20' ) start [2025-03-24 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748843', 'tblTempUsageDetail_20' ) end [2025-03-24 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748843', 'tblTempVendorCDR_20' ) start [2025-03-24 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748843', 'tblTempVendorCDR_20' ) end [2025-03-24 01:39:18] Production.INFO: ProcessCDR(1,14748843,1,1,2) [2025-03-24 01:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748843', 'tblTempUsageDetail_20' ) start [2025-03-24 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748843', 'tblTempUsageDetail_20' ) end [2025-03-24 01:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 01:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 01:39:21] Production.INFO: ==28494== Releasing lock... [2025-03-24 01:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 01:39:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 22:40:06 [end_date_ymd] => 2025-03-24 01:40:06 [RateCDR] => 1 ) [2025-03-24 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-03-23 22:40:06' and `end` < '2025-03-24 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-03-24 01:40:19] Production.INFO: count ==1535 [2025-03-24 01:40:20] Production.ERROR: pbx CDR StartTime 2025-03-23 22:40:06 - End Time 2025-03-24 01:40:06 [2025-03-24 01:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 01:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748849', 'tblTempUsageDetail_20' ) start [2025-03-24 01:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748849', 'tblTempUsageDetail_20' ) end [2025-03-24 01:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748849', 'tblTempVendorCDR_20' ) start [2025-03-24 01:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748849', 'tblTempVendorCDR_20' ) end [2025-03-24 01:40:20] Production.INFO: ProcessCDR(1,14748849,1,1,2) [2025-03-24 01:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748849', 'tblTempUsageDetail_20' ) start [2025-03-24 01:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748849', 'tblTempUsageDetail_20' ) end [2025-03-24 01:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 01:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 01:40:23] Production.INFO: ==28596== Releasing lock... [2025-03-24 01:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 01:40:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 22:41:05 [end_date_ymd] => 2025-03-24 01:41:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 22:41:05' and `end` < '2025-03-24 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-03-24 01:41:17] Production.INFO: count ==1535 [2025-03-24 01:41:18] Production.ERROR: pbx CDR StartTime 2025-03-23 22:41:05 - End Time 2025-03-24 01:41:05 [2025-03-24 01:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748854', 'tblTempUsageDetail_20' ) start [2025-03-24 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748854', 'tblTempUsageDetail_20' ) end [2025-03-24 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748854', 'tblTempVendorCDR_20' ) start [2025-03-24 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748854', 'tblTempVendorCDR_20' ) end [2025-03-24 01:41:18] Production.INFO: ProcessCDR(1,14748854,1,1,2) [2025-03-24 01:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748854', 'tblTempUsageDetail_20' ) start [2025-03-24 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748854', 'tblTempUsageDetail_20' ) end [2025-03-24 01:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 01:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 01:41:21] Production.INFO: ==28697== Releasing lock... [2025-03-24 01:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 01:41:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 22:42:05 [end_date_ymd] => 2025-03-24 01:42:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 22:42:05' and `end` < '2025-03-24 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-03-24 01:42:17] Production.INFO: count ==1530 [2025-03-24 01:42:18] Production.ERROR: pbx CDR StartTime 2025-03-23 22:42:05 - End Time 2025-03-24 01:42:05 [2025-03-24 01:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748859', 'tblTempUsageDetail_20' ) start [2025-03-24 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748859', 'tblTempUsageDetail_20' ) end [2025-03-24 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748859', 'tblTempVendorCDR_20' ) start [2025-03-24 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748859', 'tblTempVendorCDR_20' ) end [2025-03-24 01:42:18] Production.INFO: ProcessCDR(1,14748859,1,1,2) [2025-03-24 01:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748859', 'tblTempUsageDetail_20' ) start [2025-03-24 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748859', 'tblTempUsageDetail_20' ) end [2025-03-24 01:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 01:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 01:42:21] Production.INFO: ==28800== Releasing lock... [2025-03-24 01:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 01:42:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 22:43:05 [end_date_ymd] => 2025-03-24 01:43:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 22:43:05' and `end` < '2025-03-24 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-03-24 01:43:18] Production.INFO: count ==1530 [2025-03-24 01:43:19] Production.ERROR: pbx CDR StartTime 2025-03-23 22:43:05 - End Time 2025-03-24 01:43:05 [2025-03-24 01:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748864', 'tblTempUsageDetail_20' ) start [2025-03-24 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748864', 'tblTempUsageDetail_20' ) end [2025-03-24 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748864', 'tblTempVendorCDR_20' ) start [2025-03-24 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748864', 'tblTempVendorCDR_20' ) end [2025-03-24 01:43:19] Production.INFO: ProcessCDR(1,14748864,1,1,2) [2025-03-24 01:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748864', 'tblTempUsageDetail_20' ) start [2025-03-24 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748864', 'tblTempUsageDetail_20' ) end [2025-03-24 01:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 01:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 01:43:22] Production.INFO: ==28907== Releasing lock... [2025-03-24 01:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 01:43:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 22:44:05 [end_date_ymd] => 2025-03-24 01:44:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 22:44:05' and `end` < '2025-03-24 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-03-24 01:44:18] Production.INFO: count ==1528 [2025-03-24 01:44:18] Production.ERROR: pbx CDR StartTime 2025-03-23 22:44:05 - End Time 2025-03-24 01:44:05 [2025-03-24 01:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748869', 'tblTempUsageDetail_20' ) start [2025-03-24 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748869', 'tblTempUsageDetail_20' ) end [2025-03-24 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748869', 'tblTempVendorCDR_20' ) start [2025-03-24 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748869', 'tblTempVendorCDR_20' ) end [2025-03-24 01:44:18] Production.INFO: ProcessCDR(1,14748869,1,1,2) [2025-03-24 01:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748869', 'tblTempUsageDetail_20' ) start [2025-03-24 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748869', 'tblTempUsageDetail_20' ) end [2025-03-24 01:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 01:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 01:44:22] Production.INFO: ==29003== Releasing lock... [2025-03-24 01:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 01:44:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 01:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 22:45:06 [end_date_ymd] => 2025-03-24 01:45:06 [RateCDR] => 1 ) [2025-03-24 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-03-23 22:45:06' and `end` < '2025-03-24 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-03-24 01:45:18] Production.INFO: count ==1530 [2025-03-24 01:45:19] Production.ERROR: pbx CDR StartTime 2025-03-23 22:45:06 - End Time 2025-03-24 01:45:06 [2025-03-24 01:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 01:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748874', 'tblTempUsageDetail_20' ) start [2025-03-24 01:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748874', 'tblTempUsageDetail_20' ) end [2025-03-24 01:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748874', 'tblTempVendorCDR_20' ) start [2025-03-24 01:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748874', 'tblTempVendorCDR_20' ) end [2025-03-24 01:45:19] Production.INFO: ProcessCDR(1,14748874,1,1,2) [2025-03-24 01:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748874', 'tblTempUsageDetail_20' ) start [2025-03-24 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748874', 'tblTempUsageDetail_20' ) end [2025-03-24 01:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 01:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 01:45:22] Production.INFO: ==29101== Releasing lock... [2025-03-24 01:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 01:45:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-24 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 22:46:05 [end_date_ymd] => 2025-03-24 01:46:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 22:46:05' and `end` < '2025-03-24 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-03-24 01:46:17] Production.INFO: count ==1527 [2025-03-24 01:46:18] Production.ERROR: pbx CDR StartTime 2025-03-23 22:46:05 - End Time 2025-03-24 01:46:05 [2025-03-24 01:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748879', 'tblTempUsageDetail_20' ) start [2025-03-24 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748879', 'tblTempUsageDetail_20' ) end [2025-03-24 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748879', 'tblTempVendorCDR_20' ) start [2025-03-24 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748879', 'tblTempVendorCDR_20' ) end [2025-03-24 01:46:18] Production.INFO: ProcessCDR(1,14748879,1,1,2) [2025-03-24 01:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748879', 'tblTempUsageDetail_20' ) start [2025-03-24 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748879', 'tblTempUsageDetail_20' ) end [2025-03-24 01:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 01:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 01:46:21] Production.INFO: ==29203== Releasing lock... [2025-03-24 01:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 01:46:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 22:47:05 [end_date_ymd] => 2025-03-24 01:47:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 22:47:05' and `end` < '2025-03-24 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-03-24 01:47:18] Production.INFO: count ==1527 [2025-03-24 01:47:18] Production.ERROR: pbx CDR StartTime 2025-03-23 22:47:05 - End Time 2025-03-24 01:47:05 [2025-03-24 01:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748884', 'tblTempUsageDetail_20' ) start [2025-03-24 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748884', 'tblTempUsageDetail_20' ) end [2025-03-24 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748884', 'tblTempVendorCDR_20' ) start [2025-03-24 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748884', 'tblTempVendorCDR_20' ) end [2025-03-24 01:47:18] Production.INFO: ProcessCDR(1,14748884,1,1,2) [2025-03-24 01:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748884', 'tblTempUsageDetail_20' ) start [2025-03-24 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748884', 'tblTempUsageDetail_20' ) end [2025-03-24 01:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 01:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 01:47:22] Production.INFO: ==29313== Releasing lock... [2025-03-24 01:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 01:47:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 22:48:05 [end_date_ymd] => 2025-03-24 01:48:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 22:48:05' and `end` < '2025-03-24 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-03-24 01:48:17] Production.INFO: count ==1523 [2025-03-24 01:48:18] Production.ERROR: pbx CDR StartTime 2025-03-23 22:48:05 - End Time 2025-03-24 01:48:05 [2025-03-24 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748889', 'tblTempUsageDetail_20' ) start [2025-03-24 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748889', 'tblTempUsageDetail_20' ) end [2025-03-24 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748889', 'tblTempVendorCDR_20' ) start [2025-03-24 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748889', 'tblTempVendorCDR_20' ) end [2025-03-24 01:48:18] Production.INFO: ProcessCDR(1,14748889,1,1,2) [2025-03-24 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748889', 'tblTempUsageDetail_20' ) start [2025-03-24 01:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748889', 'tblTempUsageDetail_20' ) end [2025-03-24 01:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 01:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 01:48:22] Production.INFO: ==29414== Releasing lock... [2025-03-24 01:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 01:48:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 22:49:05 [end_date_ymd] => 2025-03-24 01:49:05 [RateCDR] => 1 ) [2025-03-24 01:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-23 22:49:05' and `end` < '2025-03-24 01:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 01:49:17] Production.INFO: count ==1523 [2025-03-24 01:49:18] Production.ERROR: pbx CDR StartTime 2025-03-23 22:49:05 - End Time 2025-03-24 01:49:05 [2025-03-24 01:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748894', 'tblTempUsageDetail_20' ) start [2025-03-24 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748894', 'tblTempUsageDetail_20' ) end [2025-03-24 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748894', 'tblTempVendorCDR_20' ) start [2025-03-24 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748894', 'tblTempVendorCDR_20' ) end [2025-03-24 01:49:18] Production.INFO: ProcessCDR(1,14748894,1,1,2) [2025-03-24 01:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748894', 'tblTempUsageDetail_20' ) start [2025-03-24 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748894', 'tblTempUsageDetail_20' ) end [2025-03-24 01:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 01:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 01:49:22] Production.INFO: ==29517== Releasing lock... [2025-03-24 01:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 01:49:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 22:50:06 [end_date_ymd] => 2025-03-24 01:50:06 [RateCDR] => 1 ) [2025-03-24 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-03-23 22:50:06' and `end` < '2025-03-24 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-03-24 01:50:18] Production.INFO: count ==1531 [2025-03-24 01:50:19] Production.ERROR: pbx CDR StartTime 2025-03-23 22:50:06 - End Time 2025-03-24 01:50:06 [2025-03-24 01:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748900', 'tblTempUsageDetail_20' ) start [2025-03-24 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748900', 'tblTempUsageDetail_20' ) end [2025-03-24 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748900', 'tblTempVendorCDR_20' ) start [2025-03-24 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748900', 'tblTempVendorCDR_20' ) end [2025-03-24 01:50:19] Production.INFO: ProcessCDR(1,14748900,1,1,2) [2025-03-24 01:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748900', 'tblTempUsageDetail_20' ) start [2025-03-24 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748900', 'tblTempUsageDetail_20' ) end [2025-03-24 01:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 01:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 01:50:22] Production.INFO: ==29654== Releasing lock... [2025-03-24 01:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 01:50:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 22:51:05 [end_date_ymd] => 2025-03-24 01:51:05 [RateCDR] => 1 ) [2025-03-24 01:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-23 22:51:05' and `end` < '2025-03-24 01:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 01:51:18] Production.INFO: count ==1531 [2025-03-24 01:51:18] Production.ERROR: pbx CDR StartTime 2025-03-23 22:51:05 - End Time 2025-03-24 01:51:05 [2025-03-24 01:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748905', 'tblTempUsageDetail_20' ) start [2025-03-24 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748905', 'tblTempUsageDetail_20' ) end [2025-03-24 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748905', 'tblTempVendorCDR_20' ) start [2025-03-24 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748905', 'tblTempVendorCDR_20' ) end [2025-03-24 01:51:18] Production.INFO: ProcessCDR(1,14748905,1,1,2) [2025-03-24 01:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748905', 'tblTempUsageDetail_20' ) start [2025-03-24 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748905', 'tblTempUsageDetail_20' ) end [2025-03-24 01:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 01:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 01:51:22] Production.INFO: ==29757== Releasing lock... [2025-03-24 01:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 01:51:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 22:52:05 [end_date_ymd] => 2025-03-24 01:52:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 22:52:05' and `end` < '2025-03-24 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-03-24 01:52:18] Production.INFO: count ==1527 [2025-03-24 01:52:18] Production.ERROR: pbx CDR StartTime 2025-03-23 22:52:05 - End Time 2025-03-24 01:52:05 [2025-03-24 01:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748910', 'tblTempUsageDetail_20' ) start [2025-03-24 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748910', 'tblTempUsageDetail_20' ) end [2025-03-24 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748910', 'tblTempVendorCDR_20' ) start [2025-03-24 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748910', 'tblTempVendorCDR_20' ) end [2025-03-24 01:52:18] Production.INFO: ProcessCDR(1,14748910,1,1,2) [2025-03-24 01:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748910', 'tblTempUsageDetail_20' ) start [2025-03-24 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748910', 'tblTempUsageDetail_20' ) end [2025-03-24 01:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 01:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 01:52:22] Production.INFO: ==29853== Releasing lock... [2025-03-24 01:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 01:52:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-24 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 22:53:05 [end_date_ymd] => 2025-03-24 01:53:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 22:53:05' and `end` < '2025-03-24 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-03-24 01:53:17] Production.INFO: count ==1525 [2025-03-24 01:53:18] Production.ERROR: pbx CDR StartTime 2025-03-23 22:53:05 - End Time 2025-03-24 01:53:05 [2025-03-24 01:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748915', 'tblTempUsageDetail_20' ) start [2025-03-24 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748915', 'tblTempUsageDetail_20' ) end [2025-03-24 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748915', 'tblTempVendorCDR_20' ) start [2025-03-24 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748915', 'tblTempVendorCDR_20' ) end [2025-03-24 01:53:18] Production.INFO: ProcessCDR(1,14748915,1,1,2) [2025-03-24 01:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748915', 'tblTempUsageDetail_20' ) start [2025-03-24 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748915', 'tblTempUsageDetail_20' ) end [2025-03-24 01:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 01:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 01:53:21] Production.INFO: ==29959== Releasing lock... [2025-03-24 01:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 01:53:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 22:54:05 [end_date_ymd] => 2025-03-24 01:54:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 22:54:05' and `end` < '2025-03-24 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-03-24 01:54:18] Production.INFO: count ==1528 [2025-03-24 01:54:18] Production.ERROR: pbx CDR StartTime 2025-03-23 22:54:05 - End Time 2025-03-24 01:54:05 [2025-03-24 01:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748920', 'tblTempUsageDetail_20' ) start [2025-03-24 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748920', 'tblTempUsageDetail_20' ) end [2025-03-24 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748920', 'tblTempVendorCDR_20' ) start [2025-03-24 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748920', 'tblTempVendorCDR_20' ) end [2025-03-24 01:54:19] Production.INFO: ProcessCDR(1,14748920,1,1,2) [2025-03-24 01:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748920', 'tblTempUsageDetail_20' ) start [2025-03-24 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748920', 'tblTempUsageDetail_20' ) end [2025-03-24 01:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 01:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 01:54:22] Production.INFO: ==30060== Releasing lock... [2025-03-24 01:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 01:54:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-24 01:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 22:55:06 [end_date_ymd] => 2025-03-24 01:55:06 [RateCDR] => 1 ) [2025-03-24 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-03-23 22:55:06' and `end` < '2025-03-24 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-03-24 01:55:18] Production.INFO: count ==1528 [2025-03-24 01:55:19] Production.ERROR: pbx CDR StartTime 2025-03-23 22:55:06 - End Time 2025-03-24 01:55:06 [2025-03-24 01:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748925', 'tblTempUsageDetail_20' ) start [2025-03-24 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748925', 'tblTempUsageDetail_20' ) end [2025-03-24 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748925', 'tblTempVendorCDR_20' ) start [2025-03-24 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748925', 'tblTempVendorCDR_20' ) end [2025-03-24 01:55:19] Production.INFO: ProcessCDR(1,14748925,1,1,2) [2025-03-24 01:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748925', 'tblTempUsageDetail_20' ) start [2025-03-24 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748925', 'tblTempUsageDetail_20' ) end [2025-03-24 01:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 01:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 01:55:22] Production.INFO: ==30159== Releasing lock... [2025-03-24 01:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 01:55:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-24 01:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 22:56:06 [end_date_ymd] => 2025-03-24 01:56:06 [RateCDR] => 1 ) [2025-03-24 01: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-03-23 22:56:06' and `end` < '2025-03-24 01: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-03-24 01:56:18] Production.INFO: count ==1528 [2025-03-24 01:56:19] Production.ERROR: pbx CDR StartTime 2025-03-23 22:56:06 - End Time 2025-03-24 01:56:06 [2025-03-24 01:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748930', 'tblTempUsageDetail_20' ) start [2025-03-24 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748930', 'tblTempUsageDetail_20' ) end [2025-03-24 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748930', 'tblTempVendorCDR_20' ) start [2025-03-24 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748930', 'tblTempVendorCDR_20' ) end [2025-03-24 01:56:19] Production.INFO: ProcessCDR(1,14748930,1,1,2) [2025-03-24 01:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748930', 'tblTempUsageDetail_20' ) start [2025-03-24 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748930', 'tblTempUsageDetail_20' ) end [2025-03-24 01:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 01:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 01:56:22] Production.INFO: ==30260== Releasing lock... [2025-03-24 01:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 01:56:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 22:57:05 [end_date_ymd] => 2025-03-24 01:57:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 22:57:05' and `end` < '2025-03-24 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-03-24 01:57:17] Production.INFO: count ==1524 [2025-03-24 01:57:18] Production.ERROR: pbx CDR StartTime 2025-03-23 22:57:05 - End Time 2025-03-24 01:57:05 [2025-03-24 01:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748935', 'tblTempUsageDetail_20' ) start [2025-03-24 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748935', 'tblTempUsageDetail_20' ) end [2025-03-24 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748935', 'tblTempVendorCDR_20' ) start [2025-03-24 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748935', 'tblTempVendorCDR_20' ) end [2025-03-24 01:57:18] Production.INFO: ProcessCDR(1,14748935,1,1,2) [2025-03-24 01:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748935', 'tblTempUsageDetail_20' ) start [2025-03-24 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748935', 'tblTempUsageDetail_20' ) end [2025-03-24 01:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 01:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 01:57:21] Production.INFO: ==30360== Releasing lock... [2025-03-24 01:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 01:57:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 22:58:05 [end_date_ymd] => 2025-03-24 01:58:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 22:58:05' and `end` < '2025-03-24 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-03-24 01:58:18] Production.INFO: count ==1522 [2025-03-24 01:58:18] Production.ERROR: pbx CDR StartTime 2025-03-23 22:58:05 - End Time 2025-03-24 01:58:05 [2025-03-24 01:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748940', 'tblTempUsageDetail_20' ) start [2025-03-24 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748940', 'tblTempUsageDetail_20' ) end [2025-03-24 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748940', 'tblTempVendorCDR_20' ) start [2025-03-24 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748940', 'tblTempVendorCDR_20' ) end [2025-03-24 01:58:18] Production.INFO: ProcessCDR(1,14748940,1,1,2) [2025-03-24 01:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748940', 'tblTempUsageDetail_20' ) start [2025-03-24 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748940', 'tblTempUsageDetail_20' ) end [2025-03-24 01:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 01:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 01:58:22] Production.INFO: ==30462== Releasing lock... [2025-03-24 01:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 01:58:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 22:59:05 [end_date_ymd] => 2025-03-24 01:59:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 22:59:05' and `end` < '2025-03-24 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-03-24 01:59:17] Production.INFO: count ==1518 [2025-03-24 01:59:18] Production.ERROR: pbx CDR StartTime 2025-03-23 22:59:05 - End Time 2025-03-24 01:59:05 [2025-03-24 01:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748945', 'tblTempUsageDetail_20' ) start [2025-03-24 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748945', 'tblTempUsageDetail_20' ) end [2025-03-24 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748945', 'tblTempVendorCDR_20' ) start [2025-03-24 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748945', 'tblTempVendorCDR_20' ) end [2025-03-24 01:59:18] Production.INFO: ProcessCDR(1,14748945,1,1,2) [2025-03-24 01:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 01:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748945', 'tblTempUsageDetail_20' ) start [2025-03-24 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748945', 'tblTempUsageDetail_20' ) end [2025-03-24 01:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 01:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 01:59:21] Production.INFO: ==30561== Releasing lock... [2025-03-24 01:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 01:59:21] Production.INFO: 39.75 MB #Memory Used# [2025-03-24 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 23:00:06 [end_date_ymd] => 2025-03-24 02:00:06 [RateCDR] => 1 ) [2025-03-24 02:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-23 23:00:06' and `end` < '2025-03-24 02:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 02:00:18] Production.INFO: count ==1528 [2025-03-24 02:00:19] Production.ERROR: pbx CDR StartTime 2025-03-23 23:00:06 - End Time 2025-03-24 02:00:06 [2025-03-24 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748951', 'tblTempUsageDetail_20' ) start [2025-03-24 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748951', 'tblTempUsageDetail_20' ) end [2025-03-24 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748951', 'tblTempVendorCDR_20' ) start [2025-03-24 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748951', 'tblTempVendorCDR_20' ) end [2025-03-24 02:00:19] Production.INFO: ProcessCDR(1,14748951,1,1,2) [2025-03-24 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748951', 'tblTempUsageDetail_20' ) start [2025-03-24 02:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748951', 'tblTempUsageDetail_20' ) end [2025-03-24 02:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 02:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 02:00:23] Production.INFO: ==30665== Releasing lock... [2025-03-24 02:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 02:00:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 02:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 23:01:06 [end_date_ymd] => 2025-03-24 02:01:06 [RateCDR] => 1 ) [2025-03-24 02:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-23 23:01:06' and `end` < '2025-03-24 02:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 02:01:18] Production.INFO: count ==1528 [2025-03-24 02:01:19] Production.ERROR: pbx CDR StartTime 2025-03-23 23:01:06 - End Time 2025-03-24 02:01:06 [2025-03-24 02:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748956', 'tblTempUsageDetail_20' ) start [2025-03-24 02:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748956', 'tblTempUsageDetail_20' ) end [2025-03-24 02:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748956', 'tblTempVendorCDR_20' ) start [2025-03-24 02:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748956', 'tblTempVendorCDR_20' ) end [2025-03-24 02:01:20] Production.INFO: ProcessCDR(1,14748956,1,1,2) [2025-03-24 02:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748956', 'tblTempUsageDetail_20' ) start [2025-03-24 02:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748956', 'tblTempUsageDetail_20' ) end [2025-03-24 02:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 02:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 02:01:23] Production.INFO: ==30792== Releasing lock... [2025-03-24 02:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 02:01:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 23:02:05 [end_date_ymd] => 2025-03-24 02:02:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 23:02:05' and `end` < '2025-03-24 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-03-24 02:02:18] Production.INFO: count ==1525 [2025-03-24 02:02:18] Production.ERROR: pbx CDR StartTime 2025-03-23 23:02:05 - End Time 2025-03-24 02:02:05 [2025-03-24 02:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748961', 'tblTempUsageDetail_20' ) start [2025-03-24 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748961', 'tblTempUsageDetail_20' ) end [2025-03-24 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748961', 'tblTempVendorCDR_20' ) start [2025-03-24 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748961', 'tblTempVendorCDR_20' ) end [2025-03-24 02:02:19] Production.INFO: ProcessCDR(1,14748961,1,1,2) [2025-03-24 02:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748961', 'tblTempUsageDetail_20' ) start [2025-03-24 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748961', 'tblTempUsageDetail_20' ) end [2025-03-24 02:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 02:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 02:02:22] Production.INFO: ==30974== Releasing lock... [2025-03-24 02:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 02:02:22] Production.INFO: 40 MB #Memory Used# [2025-03-24 02:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 23:03:06 [end_date_ymd] => 2025-03-24 02:03:06 [RateCDR] => 1 ) [2025-03-24 02:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-23 23:03:06' and `end` < '2025-03-24 02:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 02:03:18] Production.INFO: count ==1525 [2025-03-24 02:03:19] Production.ERROR: pbx CDR StartTime 2025-03-23 23:03:06 - End Time 2025-03-24 02:03:06 [2025-03-24 02:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748966', 'tblTempUsageDetail_20' ) start [2025-03-24 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748966', 'tblTempUsageDetail_20' ) end [2025-03-24 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748966', 'tblTempVendorCDR_20' ) start [2025-03-24 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748966', 'tblTempVendorCDR_20' ) end [2025-03-24 02:03:19] Production.INFO: ProcessCDR(1,14748966,1,1,2) [2025-03-24 02:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748966', 'tblTempUsageDetail_20' ) start [2025-03-24 02:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748966', 'tblTempUsageDetail_20' ) end [2025-03-24 02:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 02:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 02:03:23] Production.INFO: ==31069== Releasing lock... [2025-03-24 02:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 02:03:23] Production.INFO: 40 MB #Memory Used# [2025-03-24 02:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 23:04:06 [end_date_ymd] => 2025-03-24 02:04:06 [RateCDR] => 1 ) [2025-03-24 02:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-23 23:04:06' and `end` < '2025-03-24 02:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 02:04:18] Production.INFO: count ==1525 [2025-03-24 02:04:19] Production.ERROR: pbx CDR StartTime 2025-03-23 23:04:06 - End Time 2025-03-24 02:04:06 [2025-03-24 02:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748971', 'tblTempUsageDetail_20' ) start [2025-03-24 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748971', 'tblTempUsageDetail_20' ) end [2025-03-24 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748971', 'tblTempVendorCDR_20' ) start [2025-03-24 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748971', 'tblTempVendorCDR_20' ) end [2025-03-24 02:04:19] Production.INFO: ProcessCDR(1,14748971,1,1,2) [2025-03-24 02:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748971', 'tblTempUsageDetail_20' ) start [2025-03-24 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748971', 'tblTempUsageDetail_20' ) end [2025-03-24 02:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 02:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 02:04:22] Production.INFO: ==31167== Releasing lock... [2025-03-24 02:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 02:04:22] Production.INFO: 40 MB #Memory Used# [2025-03-24 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 23:05:05 [end_date_ymd] => 2025-03-24 02:05:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 23:05:05' and `end` < '2025-03-24 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-03-24 02:05:17] Production.INFO: count ==1525 [2025-03-24 02:05:18] Production.ERROR: pbx CDR StartTime 2025-03-23 23:05:05 - End Time 2025-03-24 02:05:05 [2025-03-24 02:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748976', 'tblTempUsageDetail_20' ) start [2025-03-24 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748976', 'tblTempUsageDetail_20' ) end [2025-03-24 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748976', 'tblTempVendorCDR_20' ) start [2025-03-24 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748976', 'tblTempVendorCDR_20' ) end [2025-03-24 02:05:18] Production.INFO: ProcessCDR(1,14748976,1,1,2) [2025-03-24 02:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748976', 'tblTempUsageDetail_20' ) start [2025-03-24 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748976', 'tblTempUsageDetail_20' ) end [2025-03-24 02:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 02:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 02:05:21] Production.INFO: ==31300== Releasing lock... [2025-03-24 02:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 02:05:21] Production.INFO: 40 MB #Memory Used# [2025-03-24 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 23:06:05 [end_date_ymd] => 2025-03-24 02:06:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 23:06:05' and `end` < '2025-03-24 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-03-24 02:06:18] Production.INFO: count ==1524 [2025-03-24 02:06:18] Production.ERROR: pbx CDR StartTime 2025-03-23 23:06:05 - End Time 2025-03-24 02:06:05 [2025-03-24 02:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748981', 'tblTempUsageDetail_20' ) start [2025-03-24 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748981', 'tblTempUsageDetail_20' ) end [2025-03-24 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748981', 'tblTempVendorCDR_20' ) start [2025-03-24 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748981', 'tblTempVendorCDR_20' ) end [2025-03-24 02:06:18] Production.INFO: ProcessCDR(1,14748981,1,1,2) [2025-03-24 02:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748981', 'tblTempUsageDetail_20' ) start [2025-03-24 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748981', 'tblTempUsageDetail_20' ) end [2025-03-24 02:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 02:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 02:06:22] Production.INFO: ==31398== Releasing lock... [2025-03-24 02:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 02:06:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-24 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 23:07:05 [end_date_ymd] => 2025-03-24 02:07:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 23:07:05' and `end` < '2025-03-24 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-03-24 02:07:17] Production.INFO: count ==1521 [2025-03-24 02:07:18] Production.ERROR: pbx CDR StartTime 2025-03-23 23:07:05 - End Time 2025-03-24 02:07:05 [2025-03-24 02:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748986', 'tblTempUsageDetail_20' ) start [2025-03-24 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748986', 'tblTempUsageDetail_20' ) end [2025-03-24 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748986', 'tblTempVendorCDR_20' ) start [2025-03-24 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748986', 'tblTempVendorCDR_20' ) end [2025-03-24 02:07:18] Production.INFO: ProcessCDR(1,14748986,1,1,2) [2025-03-24 02:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748986', 'tblTempUsageDetail_20' ) start [2025-03-24 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748986', 'tblTempUsageDetail_20' ) end [2025-03-24 02:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 02:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 02:07:21] Production.INFO: ==31497== Releasing lock... [2025-03-24 02:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 02:07:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 23:08:05 [end_date_ymd] => 2025-03-24 02:08:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 23:08:05' and `end` < '2025-03-24 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-03-24 02:08:17] Production.INFO: count ==1520 [2025-03-24 02:08:18] Production.ERROR: pbx CDR StartTime 2025-03-23 23:08:05 - End Time 2025-03-24 02:08:05 [2025-03-24 02:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748991', 'tblTempUsageDetail_20' ) start [2025-03-24 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748991', 'tblTempUsageDetail_20' ) end [2025-03-24 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748991', 'tblTempVendorCDR_20' ) start [2025-03-24 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748991', 'tblTempVendorCDR_20' ) end [2025-03-24 02:08:18] Production.INFO: ProcessCDR(1,14748991,1,1,2) [2025-03-24 02:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748991', 'tblTempUsageDetail_20' ) start [2025-03-24 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748991', 'tblTempUsageDetail_20' ) end [2025-03-24 02:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 02:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 02:08:21] Production.INFO: ==31599== Releasing lock... [2025-03-24 02:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 02:08:21] Production.INFO: 39.75 MB #Memory Used# [2025-03-24 02:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 23:09:06 [end_date_ymd] => 2025-03-24 02:09:06 [RateCDR] => 1 ) [2025-03-24 02:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-23 23:09:06' and `end` < '2025-03-24 02:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 02:09:18] Production.INFO: count ==1520 [2025-03-24 02:09:19] Production.ERROR: pbx CDR StartTime 2025-03-23 23:09:06 - End Time 2025-03-24 02:09:06 [2025-03-24 02:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748996', 'tblTempUsageDetail_20' ) start [2025-03-24 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14748996', 'tblTempUsageDetail_20' ) end [2025-03-24 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748996', 'tblTempVendorCDR_20' ) start [2025-03-24 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14748996', 'tblTempVendorCDR_20' ) end [2025-03-24 02:09:19] Production.INFO: ProcessCDR(1,14748996,1,1,2) [2025-03-24 02:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14748996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14748996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14748996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14748996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748996', 'tblTempUsageDetail_20' ) start [2025-03-24 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14748996', 'tblTempUsageDetail_20' ) end [2025-03-24 02:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 02:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 02:09:22] Production.INFO: ==31701== Releasing lock... [2025-03-24 02:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 02:09:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-24 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 23:10:06 [end_date_ymd] => 2025-03-24 02:10:06 [RateCDR] => 1 ) [2025-03-24 02:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-23 23:10:06' and `end` < '2025-03-24 02:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 02:10:18] Production.INFO: count ==1528 [2025-03-24 02:10:19] Production.ERROR: pbx CDR StartTime 2025-03-23 23:10:06 - End Time 2025-03-24 02:10:06 [2025-03-24 02:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749002', 'tblTempUsageDetail_20' ) start [2025-03-24 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749002', 'tblTempUsageDetail_20' ) end [2025-03-24 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749002', 'tblTempVendorCDR_20' ) start [2025-03-24 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749002', 'tblTempVendorCDR_20' ) end [2025-03-24 02:10:19] Production.INFO: ProcessCDR(1,14749002,1,1,2) [2025-03-24 02:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749002', 'tblTempUsageDetail_20' ) start [2025-03-24 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749002', 'tblTempUsageDetail_20' ) end [2025-03-24 02:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 02:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 02:10:22] Production.INFO: ==31800== Releasing lock... [2025-03-24 02:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 02:10:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-24 02:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 23:11:06 [end_date_ymd] => 2025-03-24 02:11:06 [RateCDR] => 1 ) [2025-03-24 02: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-03-23 23:11:06' and `end` < '2025-03-24 02: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-03-24 02:11:18] Production.INFO: count ==1520 [2025-03-24 02:11:19] Production.ERROR: pbx CDR StartTime 2025-03-23 23:11:06 - End Time 2025-03-24 02:11:06 [2025-03-24 02:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749007', 'tblTempUsageDetail_20' ) start [2025-03-24 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749007', 'tblTempUsageDetail_20' ) end [2025-03-24 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749007', 'tblTempVendorCDR_20' ) start [2025-03-24 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749007', 'tblTempVendorCDR_20' ) end [2025-03-24 02:11:19] Production.INFO: ProcessCDR(1,14749007,1,1,2) [2025-03-24 02:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749007', 'tblTempUsageDetail_20' ) start [2025-03-24 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749007', 'tblTempUsageDetail_20' ) end [2025-03-24 02:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 02:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 02:11:22] Production.INFO: ==31907== Releasing lock... [2025-03-24 02:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 02:11:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 23:12:05 [end_date_ymd] => 2025-03-24 02:12:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 23:12:05' and `end` < '2025-03-24 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-03-24 02:12:18] Production.INFO: count ==1514 [2025-03-24 02:12:18] Production.ERROR: pbx CDR StartTime 2025-03-23 23:12:05 - End Time 2025-03-24 02:12:05 [2025-03-24 02:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749012', 'tblTempUsageDetail_20' ) start [2025-03-24 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749012', 'tblTempUsageDetail_20' ) end [2025-03-24 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749012', 'tblTempVendorCDR_20' ) start [2025-03-24 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749012', 'tblTempVendorCDR_20' ) end [2025-03-24 02:12:18] Production.INFO: ProcessCDR(1,14749012,1,1,2) [2025-03-24 02:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749012', 'tblTempUsageDetail_20' ) start [2025-03-24 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749012', 'tblTempUsageDetail_20' ) end [2025-03-24 02:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 02:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 02:12:22] Production.INFO: ==32012== Releasing lock... [2025-03-24 02:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 02:12:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 02:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 23:13:06 [end_date_ymd] => 2025-03-24 02:13:06 [RateCDR] => 1 ) [2025-03-24 02: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-03-23 23:13:06' and `end` < '2025-03-24 02: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-03-24 02:13:18] Production.INFO: count ==1514 [2025-03-24 02:13:19] Production.ERROR: pbx CDR StartTime 2025-03-23 23:13:06 - End Time 2025-03-24 02:13:06 [2025-03-24 02:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749017', 'tblTempUsageDetail_20' ) start [2025-03-24 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749017', 'tblTempUsageDetail_20' ) end [2025-03-24 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749017', 'tblTempVendorCDR_20' ) start [2025-03-24 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749017', 'tblTempVendorCDR_20' ) end [2025-03-24 02:13:19] Production.INFO: ProcessCDR(1,14749017,1,1,2) [2025-03-24 02:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749017', 'tblTempUsageDetail_20' ) start [2025-03-24 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749017', 'tblTempUsageDetail_20' ) end [2025-03-24 02:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 02:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 02:13:22] Production.INFO: ==32113== Releasing lock... [2025-03-24 02:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 02:13:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 23:14:05 [end_date_ymd] => 2025-03-24 02:14:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 23:14:05' and `end` < '2025-03-24 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-03-24 02:14:17] Production.INFO: count ==1513 [2025-03-24 02:14:18] Production.ERROR: pbx CDR StartTime 2025-03-23 23:14:05 - End Time 2025-03-24 02:14:05 [2025-03-24 02:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749022', 'tblTempUsageDetail_20' ) start [2025-03-24 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749022', 'tblTempUsageDetail_20' ) end [2025-03-24 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749022', 'tblTempVendorCDR_20' ) start [2025-03-24 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749022', 'tblTempVendorCDR_20' ) end [2025-03-24 02:14:18] Production.INFO: ProcessCDR(1,14749022,1,1,2) [2025-03-24 02:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749022', 'tblTempUsageDetail_20' ) start [2025-03-24 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749022', 'tblTempUsageDetail_20' ) end [2025-03-24 02:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 02:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 02:14:21] Production.INFO: ==32203== Releasing lock... [2025-03-24 02:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 02:14:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 23:15:05 [end_date_ymd] => 2025-03-24 02:15:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 23:15:05' and `end` < '2025-03-24 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-03-24 02:15:17] Production.INFO: count ==1509 [2025-03-24 02:15:18] Production.ERROR: pbx CDR StartTime 2025-03-23 23:15:05 - End Time 2025-03-24 02:15:05 [2025-03-24 02:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749027', 'tblTempUsageDetail_20' ) start [2025-03-24 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749027', 'tblTempUsageDetail_20' ) end [2025-03-24 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749027', 'tblTempVendorCDR_20' ) start [2025-03-24 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749027', 'tblTempVendorCDR_20' ) end [2025-03-24 02:15:18] Production.INFO: ProcessCDR(1,14749027,1,1,2) [2025-03-24 02:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749027', 'tblTempUsageDetail_20' ) start [2025-03-24 02:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749027', 'tblTempUsageDetail_20' ) end [2025-03-24 02:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 02:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 02:15:22] Production.INFO: ==32293== Releasing lock... [2025-03-24 02:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 02:15:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 23:16:05 [end_date_ymd] => 2025-03-24 02:16:05 [RateCDR] => 1 ) [2025-03-24 02:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-23 23:16:05' and `end` < '2025-03-24 02:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 02:16:17] Production.INFO: count ==1509 [2025-03-24 02:16:18] Production.ERROR: pbx CDR StartTime 2025-03-23 23:16:05 - End Time 2025-03-24 02:16:05 [2025-03-24 02:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749032', 'tblTempUsageDetail_20' ) start [2025-03-24 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749032', 'tblTempUsageDetail_20' ) end [2025-03-24 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749032', 'tblTempVendorCDR_20' ) start [2025-03-24 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749032', 'tblTempVendorCDR_20' ) end [2025-03-24 02:16:18] Production.INFO: ProcessCDR(1,14749032,1,1,2) [2025-03-24 02:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749032', 'tblTempUsageDetail_20' ) start [2025-03-24 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749032', 'tblTempUsageDetail_20' ) end [2025-03-24 02:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 02:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 02:16:21] Production.INFO: ==32385== Releasing lock... [2025-03-24 02:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 02:16:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 02:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 23:17:06 [end_date_ymd] => 2025-03-24 02:17:06 [RateCDR] => 1 ) [2025-03-24 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-03-23 23:17:06' and `end` < '2025-03-24 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-03-24 02:17:18] Production.INFO: count ==1495 [2025-03-24 02:17:19] Production.ERROR: pbx CDR StartTime 2025-03-23 23:17:06 - End Time 2025-03-24 02:17:06 [2025-03-24 02:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749037', 'tblTempUsageDetail_20' ) start [2025-03-24 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749037', 'tblTempUsageDetail_20' ) end [2025-03-24 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749037', 'tblTempVendorCDR_20' ) start [2025-03-24 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749037', 'tblTempVendorCDR_20' ) end [2025-03-24 02:17:19] Production.INFO: ProcessCDR(1,14749037,1,1,2) [2025-03-24 02:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749037', 'tblTempUsageDetail_20' ) start [2025-03-24 02:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749037', 'tblTempUsageDetail_20' ) end [2025-03-24 02:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 02:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 02:17:22] Production.INFO: ==32479== Releasing lock... [2025-03-24 02:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 02:17:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 23:18:05 [end_date_ymd] => 2025-03-24 02:18:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 23:18:05' and `end` < '2025-03-24 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-03-24 02:18:18] Production.INFO: count ==1486 [2025-03-24 02:18:18] Production.ERROR: pbx CDR StartTime 2025-03-23 23:18:05 - End Time 2025-03-24 02:18:05 [2025-03-24 02:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749042', 'tblTempUsageDetail_20' ) start [2025-03-24 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749042', 'tblTempUsageDetail_20' ) end [2025-03-24 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749042', 'tblTempVendorCDR_20' ) start [2025-03-24 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749042', 'tblTempVendorCDR_20' ) end [2025-03-24 02:18:18] Production.INFO: ProcessCDR(1,14749042,1,1,2) [2025-03-24 02:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749042', 'tblTempUsageDetail_20' ) start [2025-03-24 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749042', 'tblTempUsageDetail_20' ) end [2025-03-24 02:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 02:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 02:18:22] Production.INFO: ==32572== Releasing lock... [2025-03-24 02:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 02:18:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-24 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 23:19:05 [end_date_ymd] => 2025-03-24 02:19:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 23:19:05' and `end` < '2025-03-24 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-03-24 02:19:18] Production.INFO: count ==1485 [2025-03-24 02:19:18] Production.ERROR: pbx CDR StartTime 2025-03-23 23:19:05 - End Time 2025-03-24 02:19:05 [2025-03-24 02:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749047', 'tblTempUsageDetail_20' ) start [2025-03-24 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749047', 'tblTempUsageDetail_20' ) end [2025-03-24 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749047', 'tblTempVendorCDR_20' ) start [2025-03-24 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749047', 'tblTempVendorCDR_20' ) end [2025-03-24 02:19:19] Production.INFO: ProcessCDR(1,14749047,1,1,2) [2025-03-24 02:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749047', 'tblTempUsageDetail_20' ) start [2025-03-24 02:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749047', 'tblTempUsageDetail_20' ) end [2025-03-24 02:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 02:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 02:19:22] Production.INFO: ==32666== Releasing lock... [2025-03-24 02:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 02:19:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-24 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 23:20:06 [end_date_ymd] => 2025-03-24 02:20:06 [RateCDR] => 1 ) [2025-03-24 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-03-23 23:20:06' and `end` < '2025-03-24 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-03-24 02:20:18] Production.INFO: count ==1482 [2025-03-24 02:20:18] Production.ERROR: pbx CDR StartTime 2025-03-23 23:20:06 - End Time 2025-03-24 02:20:06 [2025-03-24 02:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749053', 'tblTempUsageDetail_20' ) start [2025-03-24 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749053', 'tblTempUsageDetail_20' ) end [2025-03-24 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749053', 'tblTempVendorCDR_20' ) start [2025-03-24 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749053', 'tblTempVendorCDR_20' ) end [2025-03-24 02:20:19] Production.INFO: ProcessCDR(1,14749053,1,1,2) [2025-03-24 02:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749053', 'tblTempUsageDetail_20' ) start [2025-03-24 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749053', 'tblTempUsageDetail_20' ) end [2025-03-24 02:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 02:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 02:20:22] Production.INFO: ==32767== Releasing lock... [2025-03-24 02:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 02:20:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-24 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 23:21:05 [end_date_ymd] => 2025-03-24 02:21:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 23:21:05' and `end` < '2025-03-24 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-03-24 02:21:17] Production.INFO: count ==1482 [2025-03-24 02:21:18] Production.ERROR: pbx CDR StartTime 2025-03-23 23:21:05 - End Time 2025-03-24 02:21:05 [2025-03-24 02:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749058', 'tblTempUsageDetail_20' ) start [2025-03-24 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749058', 'tblTempUsageDetail_20' ) end [2025-03-24 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749058', 'tblTempVendorCDR_20' ) start [2025-03-24 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749058', 'tblTempVendorCDR_20' ) end [2025-03-24 02:21:18] Production.INFO: ProcessCDR(1,14749058,1,1,2) [2025-03-24 02:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749058', 'tblTempUsageDetail_20' ) start [2025-03-24 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749058', 'tblTempUsageDetail_20' ) end [2025-03-24 02:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 02:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 02:21:21] Production.INFO: ==456== Releasing lock... [2025-03-24 02:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 02:21:21] Production.INFO: 39.25 MB #Memory Used# [2025-03-24 02:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 23:22:06 [end_date_ymd] => 2025-03-24 02:22:06 [RateCDR] => 1 ) [2025-03-24 02: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-03-23 23:22:06' and `end` < '2025-03-24 02: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-03-24 02:22:18] Production.INFO: count ==1486 [2025-03-24 02:22:19] Production.ERROR: pbx CDR StartTime 2025-03-23 23:22:06 - End Time 2025-03-24 02:22:06 [2025-03-24 02:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749063', 'tblTempUsageDetail_20' ) start [2025-03-24 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749063', 'tblTempUsageDetail_20' ) end [2025-03-24 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749063', 'tblTempVendorCDR_20' ) start [2025-03-24 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749063', 'tblTempVendorCDR_20' ) end [2025-03-24 02:22:19] Production.INFO: ProcessCDR(1,14749063,1,1,2) [2025-03-24 02:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749063', 'tblTempUsageDetail_20' ) start [2025-03-24 02:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749063', 'tblTempUsageDetail_20' ) end [2025-03-24 02:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 02:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 02:22:22] Production.INFO: ==553== Releasing lock... [2025-03-24 02:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 02:22:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-24 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 23:23:05 [end_date_ymd] => 2025-03-24 02:23:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 23:23:05' and `end` < '2025-03-24 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-03-24 02:23:17] Production.INFO: count ==1483 [2025-03-24 02:23:18] Production.ERROR: pbx CDR StartTime 2025-03-23 23:23:05 - End Time 2025-03-24 02:23:05 [2025-03-24 02:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749068', 'tblTempUsageDetail_20' ) start [2025-03-24 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749068', 'tblTempUsageDetail_20' ) end [2025-03-24 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749068', 'tblTempVendorCDR_20' ) start [2025-03-24 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749068', 'tblTempVendorCDR_20' ) end [2025-03-24 02:23:18] Production.INFO: ProcessCDR(1,14749068,1,1,2) [2025-03-24 02:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749068', 'tblTempUsageDetail_20' ) start [2025-03-24 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749068', 'tblTempUsageDetail_20' ) end [2025-03-24 02:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 02:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 02:23:21] Production.INFO: ==656== Releasing lock... [2025-03-24 02:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 02:23:21] Production.INFO: 39.25 MB #Memory Used# [2025-03-24 02:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 23:24:06 [end_date_ymd] => 2025-03-24 02:24:06 [RateCDR] => 1 ) [2025-03-24 02:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-23 23:24:06' and `end` < '2025-03-24 02:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 02:24:18] Production.INFO: count ==1466 [2025-03-24 02:24:19] Production.ERROR: pbx CDR StartTime 2025-03-23 23:24:06 - End Time 2025-03-24 02:24:06 [2025-03-24 02:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749073', 'tblTempUsageDetail_20' ) start [2025-03-24 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749073', 'tblTempUsageDetail_20' ) end [2025-03-24 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749073', 'tblTempVendorCDR_20' ) start [2025-03-24 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749073', 'tblTempVendorCDR_20' ) end [2025-03-24 02:24:19] Production.INFO: ProcessCDR(1,14749073,1,1,2) [2025-03-24 02:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749073', 'tblTempUsageDetail_20' ) start [2025-03-24 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749073', 'tblTempUsageDetail_20' ) end [2025-03-24 02:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 02:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 02:24:22] Production.INFO: ==776== Releasing lock... [2025-03-24 02:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 02:24:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-24 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 23:25:05 [end_date_ymd] => 2025-03-24 02:25:05 [RateCDR] => 1 ) [2025-03-24 02:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-23 23:25:05' and `end` < '2025-03-24 02:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 02:25:17] Production.INFO: count ==1458 [2025-03-24 02:25:18] Production.ERROR: pbx CDR StartTime 2025-03-23 23:25:05 - End Time 2025-03-24 02:25:05 [2025-03-24 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749078', 'tblTempUsageDetail_20' ) start [2025-03-24 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749078', 'tblTempUsageDetail_20' ) end [2025-03-24 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749078', 'tblTempVendorCDR_20' ) start [2025-03-24 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749078', 'tblTempVendorCDR_20' ) end [2025-03-24 02:25:18] Production.INFO: ProcessCDR(1,14749078,1,1,2) [2025-03-24 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749078', 'tblTempUsageDetail_20' ) start [2025-03-24 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749078', 'tblTempUsageDetail_20' ) end [2025-03-24 02:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 02:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 02:25:21] Production.INFO: ==871== Releasing lock... [2025-03-24 02:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 02:25:21] Production.INFO: 39 MB #Memory Used# [2025-03-24 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 23:26:05 [end_date_ymd] => 2025-03-24 02:26:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 23:26:05' and `end` < '2025-03-24 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-03-24 02:26:17] Production.INFO: count ==1454 [2025-03-24 02:26:18] Production.ERROR: pbx CDR StartTime 2025-03-23 23:26:05 - End Time 2025-03-24 02:26:05 [2025-03-24 02:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749083', 'tblTempUsageDetail_20' ) start [2025-03-24 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749083', 'tblTempUsageDetail_20' ) end [2025-03-24 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749083', 'tblTempVendorCDR_20' ) start [2025-03-24 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749083', 'tblTempVendorCDR_20' ) end [2025-03-24 02:26:18] Production.INFO: ProcessCDR(1,14749083,1,1,2) [2025-03-24 02:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749083', 'tblTempUsageDetail_20' ) start [2025-03-24 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749083', 'tblTempUsageDetail_20' ) end [2025-03-24 02:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 02:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 02:26:21] Production.INFO: ==967== Releasing lock... [2025-03-24 02:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 02:26:21] Production.INFO: 39.25 MB #Memory Used# [2025-03-24 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 23:27:05 [end_date_ymd] => 2025-03-24 02:27:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 23:27:05' and `end` < '2025-03-24 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-03-24 02:27:17] Production.INFO: count ==1448 [2025-03-24 02:27:18] Production.ERROR: pbx CDR StartTime 2025-03-23 23:27:05 - End Time 2025-03-24 02:27:05 [2025-03-24 02:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749088', 'tblTempUsageDetail_20' ) start [2025-03-24 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749088', 'tblTempUsageDetail_20' ) end [2025-03-24 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749088', 'tblTempVendorCDR_20' ) start [2025-03-24 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749088', 'tblTempVendorCDR_20' ) end [2025-03-24 02:27:18] Production.INFO: ProcessCDR(1,14749088,1,1,2) [2025-03-24 02:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749088', 'tblTempUsageDetail_20' ) start [2025-03-24 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749088', 'tblTempUsageDetail_20' ) end [2025-03-24 02:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 02:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 02:27:21] Production.INFO: ==1060== Releasing lock... [2025-03-24 02:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 02:27:21] Production.INFO: 39 MB #Memory Used# [2025-03-24 02:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 23:28:06 [end_date_ymd] => 2025-03-24 02:28:06 [RateCDR] => 1 ) [2025-03-24 02: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-03-23 23:28:06' and `end` < '2025-03-24 02: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-03-24 02:28:18] Production.INFO: count ==1434 [2025-03-24 02:28:19] Production.ERROR: pbx CDR StartTime 2025-03-23 23:28:06 - End Time 2025-03-24 02:28:06 [2025-03-24 02:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749093', 'tblTempUsageDetail_20' ) start [2025-03-24 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749093', 'tblTempUsageDetail_20' ) end [2025-03-24 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749093', 'tblTempVendorCDR_20' ) start [2025-03-24 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749093', 'tblTempVendorCDR_20' ) end [2025-03-24 02:28:19] Production.INFO: ProcessCDR(1,14749093,1,1,2) [2025-03-24 02:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749093', 'tblTempUsageDetail_20' ) start [2025-03-24 02:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749093', 'tblTempUsageDetail_20' ) end [2025-03-24 02:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 02:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 02:28:22] Production.INFO: ==1160== Releasing lock... [2025-03-24 02:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 02:28:22] Production.INFO: 39 MB #Memory Used# [2025-03-24 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 23:29:05 [end_date_ymd] => 2025-03-24 02:29:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 23:29:05' and `end` < '2025-03-24 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-03-24 02:29:17] Production.INFO: count ==1432 [2025-03-24 02:29:18] Production.ERROR: pbx CDR StartTime 2025-03-23 23:29:05 - End Time 2025-03-24 02:29:05 [2025-03-24 02:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749098', 'tblTempUsageDetail_20' ) start [2025-03-24 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749098', 'tblTempUsageDetail_20' ) end [2025-03-24 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749098', 'tblTempVendorCDR_20' ) start [2025-03-24 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749098', 'tblTempVendorCDR_20' ) end [2025-03-24 02:29:18] Production.INFO: ProcessCDR(1,14749098,1,1,2) [2025-03-24 02:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749098', 'tblTempUsageDetail_20' ) start [2025-03-24 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749098', 'tblTempUsageDetail_20' ) end [2025-03-24 02:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 02:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 02:29:21] Production.INFO: ==1267== Releasing lock... [2025-03-24 02:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 02:29:21] Production.INFO: 39 MB #Memory Used# [2025-03-24 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 23:30:06 [end_date_ymd] => 2025-03-24 02:30:06 [RateCDR] => 1 ) [2025-03-24 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-03-23 23:30:06' and `end` < '2025-03-24 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-03-24 02:30:18] Production.INFO: count ==1440 [2025-03-24 02:30:19] Production.ERROR: pbx CDR StartTime 2025-03-23 23:30:06 - End Time 2025-03-24 02:30:06 [2025-03-24 02:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749104', 'tblTempUsageDetail_20' ) start [2025-03-24 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749104', 'tblTempUsageDetail_20' ) end [2025-03-24 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749104', 'tblTempVendorCDR_20' ) start [2025-03-24 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749104', 'tblTempVendorCDR_20' ) end [2025-03-24 02:30:19] Production.INFO: ProcessCDR(1,14749104,1,1,2) [2025-03-24 02:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749104', 'tblTempUsageDetail_20' ) start [2025-03-24 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749104', 'tblTempUsageDetail_20' ) end [2025-03-24 02:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 02:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 02:30:22] Production.INFO: ==1364== Releasing lock... [2025-03-24 02:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 02:30:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-24 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 23:31:05 [end_date_ymd] => 2025-03-24 02:31:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 23:31:05' and `end` < '2025-03-24 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-03-24 02:31:18] Production.INFO: count ==1440 [2025-03-24 02:31:18] Production.ERROR: pbx CDR StartTime 2025-03-23 23:31:05 - End Time 2025-03-24 02:31:05 [2025-03-24 02:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749109', 'tblTempUsageDetail_20' ) start [2025-03-24 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749109', 'tblTempUsageDetail_20' ) end [2025-03-24 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749109', 'tblTempVendorCDR_20' ) start [2025-03-24 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749109', 'tblTempVendorCDR_20' ) end [2025-03-24 02:31:18] Production.INFO: ProcessCDR(1,14749109,1,1,2) [2025-03-24 02:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749109', 'tblTempUsageDetail_20' ) start [2025-03-24 02:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749109', 'tblTempUsageDetail_20' ) end [2025-03-24 02:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 02:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 02:31:22] Production.INFO: ==1465== Releasing lock... [2025-03-24 02:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 02:31:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-24 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 23:32:05 [end_date_ymd] => 2025-03-24 02:32:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 23:32:05' and `end` < '2025-03-24 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-03-24 02:32:18] Production.INFO: count ==1434 [2025-03-24 02:32:18] Production.ERROR: pbx CDR StartTime 2025-03-23 23:32:05 - End Time 2025-03-24 02:32:05 [2025-03-24 02:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749114', 'tblTempUsageDetail_20' ) start [2025-03-24 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749114', 'tblTempUsageDetail_20' ) end [2025-03-24 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749114', 'tblTempVendorCDR_20' ) start [2025-03-24 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749114', 'tblTempVendorCDR_20' ) end [2025-03-24 02:32:19] Production.INFO: ProcessCDR(1,14749114,1,1,2) [2025-03-24 02:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749114', 'tblTempUsageDetail_20' ) start [2025-03-24 02:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749114', 'tblTempUsageDetail_20' ) end [2025-03-24 02:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 02:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 02:32:22] Production.INFO: ==1611== Releasing lock... [2025-03-24 02:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 02:32:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-24 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 23:33:05 [end_date_ymd] => 2025-03-24 02:33:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 23:33:05' and `end` < '2025-03-24 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-03-24 02:33:18] Production.INFO: count ==1432 [2025-03-24 02:33:18] Production.ERROR: pbx CDR StartTime 2025-03-23 23:33:05 - End Time 2025-03-24 02:33:05 [2025-03-24 02:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749119', 'tblTempUsageDetail_20' ) start [2025-03-24 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749119', 'tblTempUsageDetail_20' ) end [2025-03-24 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749119', 'tblTempVendorCDR_20' ) start [2025-03-24 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749119', 'tblTempVendorCDR_20' ) end [2025-03-24 02:33:18] Production.INFO: ProcessCDR(1,14749119,1,1,2) [2025-03-24 02:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749119', 'tblTempUsageDetail_20' ) start [2025-03-24 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749119', 'tblTempUsageDetail_20' ) end [2025-03-24 02:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 02:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 02:33:22] Production.INFO: ==1736== Releasing lock... [2025-03-24 02:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 02:33:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-24 02:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 23:34:06 [end_date_ymd] => 2025-03-24 02:34:06 [RateCDR] => 1 ) [2025-03-24 02: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-03-23 23:34:06' and `end` < '2025-03-24 02: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-03-24 02:34:19] Production.INFO: count ==1431 [2025-03-24 02:34:19] Production.ERROR: pbx CDR StartTime 2025-03-23 23:34:06 - End Time 2025-03-24 02:34:06 [2025-03-24 02:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749124', 'tblTempUsageDetail_20' ) start [2025-03-24 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749124', 'tblTempUsageDetail_20' ) end [2025-03-24 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749124', 'tblTempVendorCDR_20' ) start [2025-03-24 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749124', 'tblTempVendorCDR_20' ) end [2025-03-24 02:34:19] Production.INFO: ProcessCDR(1,14749124,1,1,2) [2025-03-24 02:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749124', 'tblTempUsageDetail_20' ) start [2025-03-24 02:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749124', 'tblTempUsageDetail_20' ) end [2025-03-24 02:34:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 02:34:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 02:34:23] Production.INFO: ==1858== Releasing lock... [2025-03-24 02:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 02:34:23] Production.INFO: 39 MB #Memory Used# [2025-03-24 02:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 23:35:06 [end_date_ymd] => 2025-03-24 02:35:06 [RateCDR] => 1 ) [2025-03-24 02: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-03-23 23:35:06' and `end` < '2025-03-24 02: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-03-24 02:35:18] Production.INFO: count ==1434 [2025-03-24 02:35:19] Production.ERROR: pbx CDR StartTime 2025-03-23 23:35:06 - End Time 2025-03-24 02:35:06 [2025-03-24 02:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749129', 'tblTempUsageDetail_20' ) start [2025-03-24 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749129', 'tblTempUsageDetail_20' ) end [2025-03-24 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749129', 'tblTempVendorCDR_20' ) start [2025-03-24 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749129', 'tblTempVendorCDR_20' ) end [2025-03-24 02:35:19] Production.INFO: ProcessCDR(1,14749129,1,1,2) [2025-03-24 02:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749129', 'tblTempUsageDetail_20' ) start [2025-03-24 02:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749129', 'tblTempUsageDetail_20' ) end [2025-03-24 02:35:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 02:35:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 02:35:23] Production.INFO: ==1977== Releasing lock... [2025-03-24 02:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 02:35:23] Production.INFO: 39 MB #Memory Used# [2025-03-24 02:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 23:36:06 [end_date_ymd] => 2025-03-24 02:36:06 [RateCDR] => 1 ) [2025-03-24 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-03-23 23:36:06' and `end` < '2025-03-24 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-03-24 02:36:18] Production.INFO: count ==1443 [2025-03-24 02:36:19] Production.ERROR: pbx CDR StartTime 2025-03-23 23:36:06 - End Time 2025-03-24 02:36:06 [2025-03-24 02:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749134', 'tblTempUsageDetail_20' ) start [2025-03-24 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749134', 'tblTempUsageDetail_20' ) end [2025-03-24 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749134', 'tblTempVendorCDR_20' ) start [2025-03-24 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749134', 'tblTempVendorCDR_20' ) end [2025-03-24 02:36:19] Production.INFO: ProcessCDR(1,14749134,1,1,2) [2025-03-24 02:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749134', 'tblTempUsageDetail_20' ) start [2025-03-24 02:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749134', 'tblTempUsageDetail_20' ) end [2025-03-24 02:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 02:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 02:36:23] Production.INFO: ==2139== Releasing lock... [2025-03-24 02:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 02:36:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-24 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 23:37:05 [end_date_ymd] => 2025-03-24 02:37:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 23:37:05' and `end` < '2025-03-24 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-03-24 02:37:18] Production.INFO: count ==1441 [2025-03-24 02:37:18] Production.ERROR: pbx CDR StartTime 2025-03-23 23:37:05 - End Time 2025-03-24 02:37:05 [2025-03-24 02:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749139', 'tblTempUsageDetail_20' ) start [2025-03-24 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749139', 'tblTempUsageDetail_20' ) end [2025-03-24 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749139', 'tblTempVendorCDR_20' ) start [2025-03-24 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749139', 'tblTempVendorCDR_20' ) end [2025-03-24 02:37:19] Production.INFO: ProcessCDR(1,14749139,1,1,2) [2025-03-24 02:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749139', 'tblTempUsageDetail_20' ) start [2025-03-24 02:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749139', 'tblTempUsageDetail_20' ) end [2025-03-24 02:37:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 02:37:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 02:37:24] Production.INFO: ==2260== Releasing lock... [2025-03-24 02:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 02:37:24] Production.INFO: 39 MB #Memory Used# [2025-03-24 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 23:38:05 [end_date_ymd] => 2025-03-24 02:38:05 [RateCDR] => 1 ) [2025-03-24 02:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-23 23:38:05' and `end` < '2025-03-24 02:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 02:38:18] Production.INFO: count ==1439 [2025-03-24 02:38:18] Production.ERROR: pbx CDR StartTime 2025-03-23 23:38:05 - End Time 2025-03-24 02:38:05 [2025-03-24 02:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749144', 'tblTempUsageDetail_20' ) start [2025-03-24 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749144', 'tblTempUsageDetail_20' ) end [2025-03-24 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749144', 'tblTempVendorCDR_20' ) start [2025-03-24 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749144', 'tblTempVendorCDR_20' ) end [2025-03-24 02:38:18] Production.INFO: ProcessCDR(1,14749144,1,1,2) [2025-03-24 02:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749144', 'tblTempUsageDetail_20' ) start [2025-03-24 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749144', 'tblTempUsageDetail_20' ) end [2025-03-24 02:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 02:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 02:38:22] Production.INFO: ==2381== Releasing lock... [2025-03-24 02:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 02:38:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-24 02:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 23:39:06 [end_date_ymd] => 2025-03-24 02:39:06 [RateCDR] => 1 ) [2025-03-24 02: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-03-23 23:39:06' and `end` < '2025-03-24 02: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-03-24 02:39:19] Production.INFO: count ==1441 [2025-03-24 02:39:19] Production.ERROR: pbx CDR StartTime 2025-03-23 23:39:06 - End Time 2025-03-24 02:39:06 [2025-03-24 02:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749149', 'tblTempUsageDetail_20' ) start [2025-03-24 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749149', 'tblTempUsageDetail_20' ) end [2025-03-24 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749149', 'tblTempVendorCDR_20' ) start [2025-03-24 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749149', 'tblTempVendorCDR_20' ) end [2025-03-24 02:39:19] Production.INFO: ProcessCDR(1,14749149,1,1,2) [2025-03-24 02:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749149', 'tblTempUsageDetail_20' ) start [2025-03-24 02:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749149', 'tblTempUsageDetail_20' ) end [2025-03-24 02:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 02:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 02:39:23] Production.INFO: ==2498== Releasing lock... [2025-03-24 02:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 02:39:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-24 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 23:40:06 [end_date_ymd] => 2025-03-24 02:40:06 [RateCDR] => 1 ) [2025-03-24 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-03-23 23:40:06' and `end` < '2025-03-24 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-03-24 02:40:19] Production.INFO: count ==1443 [2025-03-24 02:40:20] Production.ERROR: pbx CDR StartTime 2025-03-23 23:40:06 - End Time 2025-03-24 02:40:06 [2025-03-24 02:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749155', 'tblTempUsageDetail_20' ) start [2025-03-24 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749155', 'tblTempUsageDetail_20' ) end [2025-03-24 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749155', 'tblTempVendorCDR_20' ) start [2025-03-24 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749155', 'tblTempVendorCDR_20' ) end [2025-03-24 02:40:20] Production.INFO: ProcessCDR(1,14749155,1,1,2) [2025-03-24 02:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749155', 'tblTempUsageDetail_20' ) start [2025-03-24 02:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749155', 'tblTempUsageDetail_20' ) end [2025-03-24 02:40:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 02:40:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 02:40:24] Production.INFO: ==2618== Releasing lock... [2025-03-24 02:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 02:40:24] Production.INFO: 39 MB #Memory Used# [2025-03-24 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 23:41:05 [end_date_ymd] => 2025-03-24 02:41:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 23:41:05' and `end` < '2025-03-24 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-03-24 02:41:17] Production.INFO: count ==1446 [2025-03-24 02:41:18] Production.ERROR: pbx CDR StartTime 2025-03-23 23:41:05 - End Time 2025-03-24 02:41:05 [2025-03-24 02:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749160', 'tblTempUsageDetail_20' ) start [2025-03-24 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749160', 'tblTempUsageDetail_20' ) end [2025-03-24 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749160', 'tblTempVendorCDR_20' ) start [2025-03-24 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749160', 'tblTempVendorCDR_20' ) end [2025-03-24 02:41:18] Production.INFO: ProcessCDR(1,14749160,1,1,2) [2025-03-24 02:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749160', 'tblTempUsageDetail_20' ) start [2025-03-24 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749160', 'tblTempUsageDetail_20' ) end [2025-03-24 02:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 02:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 02:41:22] Production.INFO: ==2743== Releasing lock... [2025-03-24 02:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 02:41:22] Production.INFO: 39 MB #Memory Used# [2025-03-24 02:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 23:42:06 [end_date_ymd] => 2025-03-24 02:42:06 [RateCDR] => 1 ) [2025-03-24 02:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-23 23:42:06' and `end` < '2025-03-24 02:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 02:42:18] Production.INFO: count ==1450 [2025-03-24 02:42:19] Production.ERROR: pbx CDR StartTime 2025-03-23 23:42:06 - End Time 2025-03-24 02:42:06 [2025-03-24 02:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749165', 'tblTempUsageDetail_20' ) start [2025-03-24 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749165', 'tblTempUsageDetail_20' ) end [2025-03-24 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749165', 'tblTempVendorCDR_20' ) start [2025-03-24 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749165', 'tblTempVendorCDR_20' ) end [2025-03-24 02:42:19] Production.INFO: ProcessCDR(1,14749165,1,1,2) [2025-03-24 02:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749165', 'tblTempUsageDetail_20' ) start [2025-03-24 02:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749165', 'tblTempUsageDetail_20' ) end [2025-03-24 02:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 02:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 02:42:23] Production.INFO: ==2864== Releasing lock... [2025-03-24 02:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 02:42:23] Production.INFO: 39 MB #Memory Used# [2025-03-24 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 23:43:05 [end_date_ymd] => 2025-03-24 02:43:05 [RateCDR] => 1 ) [2025-03-24 02:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-23 23:43:05' and `end` < '2025-03-24 02:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 02:43:17] Production.INFO: count ==1457 [2025-03-24 02:43:19] Production.ERROR: pbx CDR StartTime 2025-03-23 23:43:05 - End Time 2025-03-24 02:43:05 [2025-03-24 02:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749170', 'tblTempUsageDetail_20' ) start [2025-03-24 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749170', 'tblTempUsageDetail_20' ) end [2025-03-24 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749170', 'tblTempVendorCDR_20' ) start [2025-03-24 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749170', 'tblTempVendorCDR_20' ) end [2025-03-24 02:43:19] Production.INFO: ProcessCDR(1,14749170,1,1,2) [2025-03-24 02:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749170', 'tblTempUsageDetail_20' ) start [2025-03-24 02:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749170', 'tblTempUsageDetail_20' ) end [2025-03-24 02:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 02:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 02:43:23] Production.INFO: ==2985== Releasing lock... [2025-03-24 02:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 02:43:23] Production.INFO: 39.25 MB #Memory Used# [2025-03-24 02:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 23:44:06 [end_date_ymd] => 2025-03-24 02:44:06 [RateCDR] => 1 ) [2025-03-24 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-03-23 23:44:06' and `end` < '2025-03-24 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-03-24 02:44:18] Production.INFO: count ==1448 [2025-03-24 02:44:19] Production.ERROR: pbx CDR StartTime 2025-03-23 23:44:06 - End Time 2025-03-24 02:44:06 [2025-03-24 02:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749175', 'tblTempUsageDetail_20' ) start [2025-03-24 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749175', 'tblTempUsageDetail_20' ) end [2025-03-24 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749175', 'tblTempVendorCDR_20' ) start [2025-03-24 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749175', 'tblTempVendorCDR_20' ) end [2025-03-24 02:44:19] Production.INFO: ProcessCDR(1,14749175,1,1,2) [2025-03-24 02:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749175', 'tblTempUsageDetail_20' ) start [2025-03-24 02:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749175', 'tblTempUsageDetail_20' ) end [2025-03-24 02:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 02:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 02:44:23] Production.INFO: ==3110== Releasing lock... [2025-03-24 02:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 02:44:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-24 02:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 23:45:06 [end_date_ymd] => 2025-03-24 02:45:06 [RateCDR] => 1 ) [2025-03-24 02: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-03-23 23:45:06' and `end` < '2025-03-24 02: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-03-24 02:45:18] Production.INFO: count ==1446 [2025-03-24 02:45:18] Production.ERROR: pbx CDR StartTime 2025-03-23 23:45:06 - End Time 2025-03-24 02:45:06 [2025-03-24 02:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749180', 'tblTempUsageDetail_20' ) start [2025-03-24 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749180', 'tblTempUsageDetail_20' ) end [2025-03-24 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749180', 'tblTempVendorCDR_20' ) start [2025-03-24 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749180', 'tblTempVendorCDR_20' ) end [2025-03-24 02:45:19] Production.INFO: ProcessCDR(1,14749180,1,1,2) [2025-03-24 02:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749180', 'tblTempUsageDetail_20' ) start [2025-03-24 02:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749180', 'tblTempUsageDetail_20' ) end [2025-03-24 02:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 02:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 02:45:22] Production.INFO: ==3227== Releasing lock... [2025-03-24 02:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 02:45:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-24 02:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 23:46:06 [end_date_ymd] => 2025-03-24 02:46:06 [RateCDR] => 1 ) [2025-03-24 02: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-03-23 23:46:06' and `end` < '2025-03-24 02: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-03-24 02:46:18] Production.INFO: count ==1424 [2025-03-24 02:46:19] Production.ERROR: pbx CDR StartTime 2025-03-23 23:46:06 - End Time 2025-03-24 02:46:06 [2025-03-24 02:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749185', 'tblTempUsageDetail_20' ) start [2025-03-24 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749185', 'tblTempUsageDetail_20' ) end [2025-03-24 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749185', 'tblTempVendorCDR_20' ) start [2025-03-24 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749185', 'tblTempVendorCDR_20' ) end [2025-03-24 02:46:19] Production.INFO: ProcessCDR(1,14749185,1,1,2) [2025-03-24 02:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749185', 'tblTempUsageDetail_20' ) start [2025-03-24 02:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749185', 'tblTempUsageDetail_20' ) end [2025-03-24 02:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 02:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 02:46:23] Production.INFO: ==3349== Releasing lock... [2025-03-24 02:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 02:46:23] Production.INFO: 39 MB #Memory Used# [2025-03-24 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 23:47:05 [end_date_ymd] => 2025-03-24 02:47:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 23:47:05' and `end` < '2025-03-24 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-03-24 02:47:18] Production.INFO: count ==1385 [2025-03-24 02:47:19] Production.ERROR: pbx CDR StartTime 2025-03-23 23:47:05 - End Time 2025-03-24 02:47:05 [2025-03-24 02:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749190', 'tblTempUsageDetail_20' ) start [2025-03-24 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749190', 'tblTempUsageDetail_20' ) end [2025-03-24 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749190', 'tblTempVendorCDR_20' ) start [2025-03-24 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749190', 'tblTempVendorCDR_20' ) end [2025-03-24 02:47:19] Production.INFO: ProcessCDR(1,14749190,1,1,2) [2025-03-24 02:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749190', 'tblTempUsageDetail_20' ) start [2025-03-24 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749190', 'tblTempUsageDetail_20' ) end [2025-03-24 02:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 02:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 02:47:23] Production.INFO: ==3468== Releasing lock... [2025-03-24 02:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 02:47:23] Production.INFO: 38.5 MB #Memory Used# [2025-03-24 02:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 23:48:06 [end_date_ymd] => 2025-03-24 02:48:06 [RateCDR] => 1 ) [2025-03-24 02: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-03-23 23:48:06' and `end` < '2025-03-24 02: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-03-24 02:48:18] Production.INFO: count ==1345 [2025-03-24 02:48:19] Production.ERROR: pbx CDR StartTime 2025-03-23 23:48:06 - End Time 2025-03-24 02:48:06 [2025-03-24 02:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749195', 'tblTempUsageDetail_20' ) start [2025-03-24 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749195', 'tblTempUsageDetail_20' ) end [2025-03-24 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749195', 'tblTempVendorCDR_20' ) start [2025-03-24 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749195', 'tblTempVendorCDR_20' ) end [2025-03-24 02:48:19] Production.INFO: ProcessCDR(1,14749195,1,1,2) [2025-03-24 02:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749195', 'tblTempUsageDetail_20' ) start [2025-03-24 02:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749195', 'tblTempUsageDetail_20' ) end [2025-03-24 02:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 02:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 02:48:23] Production.INFO: ==3581== Releasing lock... [2025-03-24 02:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 02:48:23] Production.INFO: 38 MB #Memory Used# [2025-03-24 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 23:49:05 [end_date_ymd] => 2025-03-24 02:49:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 23:49:05' and `end` < '2025-03-24 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-03-24 02:49:18] Production.INFO: count ==1306 [2025-03-24 02:49:18] Production.ERROR: pbx CDR StartTime 2025-03-23 23:49:05 - End Time 2025-03-24 02:49:05 [2025-03-24 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749200', 'tblTempUsageDetail_20' ) start [2025-03-24 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749200', 'tblTempUsageDetail_20' ) end [2025-03-24 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749200', 'tblTempVendorCDR_20' ) start [2025-03-24 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749200', 'tblTempVendorCDR_20' ) end [2025-03-24 02:49:19] Production.INFO: ProcessCDR(1,14749200,1,1,2) [2025-03-24 02:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749200', 'tblTempUsageDetail_20' ) start [2025-03-24 02:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749200', 'tblTempUsageDetail_20' ) end [2025-03-24 02:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 02:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 02:49:23] Production.INFO: ==3687== Releasing lock... [2025-03-24 02:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 02:49:23] Production.INFO: 38 MB #Memory Used# [2025-03-24 02:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 23:50:07 [end_date_ymd] => 2025-03-24 02:50:07 [RateCDR] => 1 ) [2025-03-24 02:50: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-03-23 23:50:07' and `end` < '2025-03-24 02:50: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-03-24 02:50:19] Production.INFO: count ==1277 [2025-03-24 02:50:20] Production.ERROR: pbx CDR StartTime 2025-03-23 23:50:07 - End Time 2025-03-24 02:50:07 [2025-03-24 02:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749206', 'tblTempUsageDetail_20' ) start [2025-03-24 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749206', 'tblTempUsageDetail_20' ) end [2025-03-24 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749206', 'tblTempVendorCDR_20' ) start [2025-03-24 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749206', 'tblTempVendorCDR_20' ) end [2025-03-24 02:50:20] Production.INFO: ProcessCDR(1,14749206,1,1,2) [2025-03-24 02:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749206', 'tblTempUsageDetail_20' ) start [2025-03-24 02:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749206', 'tblTempUsageDetail_20' ) end [2025-03-24 02:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 02:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 02:50:24] Production.INFO: ==3784== Releasing lock... [2025-03-24 02:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 02:50:24] Production.INFO: 37.75 MB #Memory Used# [2025-03-24 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 23:51:05 [end_date_ymd] => 2025-03-24 02:51:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 23:51:05' and `end` < '2025-03-24 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-03-24 02:51:17] Production.INFO: count ==1240 [2025-03-24 02:51:18] Production.ERROR: pbx CDR StartTime 2025-03-23 23:51:05 - End Time 2025-03-24 02:51:05 [2025-03-24 02:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749211', 'tblTempUsageDetail_20' ) start [2025-03-24 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749211', 'tblTempUsageDetail_20' ) end [2025-03-24 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749211', 'tblTempVendorCDR_20' ) start [2025-03-24 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749211', 'tblTempVendorCDR_20' ) end [2025-03-24 02:51:18] Production.INFO: ProcessCDR(1,14749211,1,1,2) [2025-03-24 02:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749211', 'tblTempUsageDetail_20' ) start [2025-03-24 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749211', 'tblTempUsageDetail_20' ) end [2025-03-24 02:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 02:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 02:51:22] Production.INFO: ==3870== Releasing lock... [2025-03-24 02:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 02:51:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-24 02:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 23:52:06 [end_date_ymd] => 2025-03-24 02:52:06 [RateCDR] => 1 ) [2025-03-24 02: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-03-23 23:52:06' and `end` < '2025-03-24 02: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-03-24 02:52:18] Production.INFO: count ==1213 [2025-03-24 02:52:19] Production.ERROR: pbx CDR StartTime 2025-03-23 23:52:06 - End Time 2025-03-24 02:52:06 [2025-03-24 02:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749216', 'tblTempUsageDetail_20' ) start [2025-03-24 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749216', 'tblTempUsageDetail_20' ) end [2025-03-24 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749216', 'tblTempVendorCDR_20' ) start [2025-03-24 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749216', 'tblTempVendorCDR_20' ) end [2025-03-24 02:52:19] Production.INFO: ProcessCDR(1,14749216,1,1,2) [2025-03-24 02:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749216', 'tblTempUsageDetail_20' ) start [2025-03-24 02:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749216', 'tblTempUsageDetail_20' ) end [2025-03-24 02:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 02:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 02:52:23] Production.INFO: ==4005== Releasing lock... [2025-03-24 02:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 02:52:23] Production.INFO: 37.5 MB #Memory Used# [2025-03-24 02:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 23:53:05 [end_date_ymd] => 2025-03-24 02:53:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 23:53:05' and `end` < '2025-03-24 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-03-24 02:53:18] Production.INFO: count ==1175 [2025-03-24 02:53:18] Production.ERROR: pbx CDR StartTime 2025-03-23 23:53:05 - End Time 2025-03-24 02:53:05 [2025-03-24 02:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749221', 'tblTempUsageDetail_20' ) start [2025-03-24 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749221', 'tblTempUsageDetail_20' ) end [2025-03-24 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749221', 'tblTempVendorCDR_20' ) start [2025-03-24 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749221', 'tblTempVendorCDR_20' ) end [2025-03-24 02:53:18] Production.INFO: ProcessCDR(1,14749221,1,1,2) [2025-03-24 02:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749221', 'tblTempUsageDetail_20' ) start [2025-03-24 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749221', 'tblTempUsageDetail_20' ) end [2025-03-24 02:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 02:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 02:53:22] Production.INFO: ==4095== Releasing lock... [2025-03-24 02:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 02:53:22] Production.INFO: 37 MB #Memory Used# [2025-03-24 02:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 23:54:06 [end_date_ymd] => 2025-03-24 02:54:06 [RateCDR] => 1 ) [2025-03-24 02: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-03-23 23:54:06' and `end` < '2025-03-24 02: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-03-24 02:54:18] Production.INFO: count ==1158 [2025-03-24 02:54:18] Production.ERROR: pbx CDR StartTime 2025-03-23 23:54:06 - End Time 2025-03-24 02:54:06 [2025-03-24 02:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749226', 'tblTempUsageDetail_20' ) start [2025-03-24 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749226', 'tblTempUsageDetail_20' ) end [2025-03-24 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749226', 'tblTempVendorCDR_20' ) start [2025-03-24 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749226', 'tblTempVendorCDR_20' ) end [2025-03-24 02:54:19] Production.INFO: ProcessCDR(1,14749226,1,1,2) [2025-03-24 02:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749226', 'tblTempUsageDetail_20' ) start [2025-03-24 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749226', 'tblTempUsageDetail_20' ) end [2025-03-24 02:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 02:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 02:54:22] Production.INFO: ==4184== Releasing lock... [2025-03-24 02:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 02:54:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-24 02:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 23:55:06 [end_date_ymd] => 2025-03-24 02:55:06 [RateCDR] => 1 ) [2025-03-24 02: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-03-23 23:55:06' and `end` < '2025-03-24 02: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-03-24 02:55:18] Production.INFO: count ==1127 [2025-03-24 02:55:18] Production.ERROR: pbx CDR StartTime 2025-03-23 23:55:06 - End Time 2025-03-24 02:55:06 [2025-03-24 02:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749231', 'tblTempUsageDetail_20' ) start [2025-03-24 02:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749231', 'tblTempUsageDetail_20' ) end [2025-03-24 02:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749231', 'tblTempVendorCDR_20' ) start [2025-03-24 02:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749231', 'tblTempVendorCDR_20' ) end [2025-03-24 02:55:19] Production.INFO: ProcessCDR(1,14749231,1,1,2) [2025-03-24 02:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749231', 'tblTempUsageDetail_20' ) start [2025-03-24 02:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749231', 'tblTempUsageDetail_20' ) end [2025-03-24 02:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 02:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 02:55:22] Production.INFO: ==4275== Releasing lock... [2025-03-24 02:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 02:55:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-24 02:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 23:56:06 [end_date_ymd] => 2025-03-24 02:56:06 [RateCDR] => 1 ) [2025-03-24 02: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-03-23 23:56:06' and `end` < '2025-03-24 02: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-03-24 02:56:18] Production.INFO: count ==1080 [2025-03-24 02:56:19] Production.ERROR: pbx CDR StartTime 2025-03-23 23:56:06 - End Time 2025-03-24 02:56:06 [2025-03-24 02:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749236', 'tblTempUsageDetail_20' ) start [2025-03-24 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749236', 'tblTempUsageDetail_20' ) end [2025-03-24 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749236', 'tblTempVendorCDR_20' ) start [2025-03-24 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749236', 'tblTempVendorCDR_20' ) end [2025-03-24 02:56:19] Production.INFO: ProcessCDR(1,14749236,1,1,2) [2025-03-24 02:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749236', 'tblTempUsageDetail_20' ) start [2025-03-24 02:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749236', 'tblTempUsageDetail_20' ) end [2025-03-24 02:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 02:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 02:56:23] Production.INFO: ==4367== Releasing lock... [2025-03-24 02:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 02:56:23] Production.INFO: 36.5 MB #Memory Used# [2025-03-24 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 23:57:05 [end_date_ymd] => 2025-03-24 02:57:05 [RateCDR] => 1 ) [2025-03-24 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-03-23 23:57:05' and `end` < '2025-03-24 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-03-24 02:57:18] Production.INFO: count ==1033 [2025-03-24 02:57:18] Production.ERROR: pbx CDR StartTime 2025-03-23 23:57:05 - End Time 2025-03-24 02:57:05 [2025-03-24 02:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749241', 'tblTempUsageDetail_20' ) start [2025-03-24 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749241', 'tblTempUsageDetail_20' ) end [2025-03-24 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749241', 'tblTempVendorCDR_20' ) start [2025-03-24 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749241', 'tblTempVendorCDR_20' ) end [2025-03-24 02:57:18] Production.INFO: ProcessCDR(1,14749241,1,1,2) [2025-03-24 02:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749241', 'tblTempUsageDetail_20' ) start [2025-03-24 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749241', 'tblTempUsageDetail_20' ) end [2025-03-24 02:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 02:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 02:57:22] Production.INFO: ==4453== Releasing lock... [2025-03-24 02:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 02:57:22] Production.INFO: 36 MB #Memory Used# [2025-03-24 02:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 23:58:06 [end_date_ymd] => 2025-03-24 02:58:06 [RateCDR] => 1 ) [2025-03-24 02:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-23 23:58:06' and `end` < '2025-03-24 02:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 02:58:18] Production.INFO: count ==1002 [2025-03-24 02:58:18] Production.ERROR: pbx CDR StartTime 2025-03-23 23:58:06 - End Time 2025-03-24 02:58:06 [2025-03-24 02:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749246', 'tblTempUsageDetail_20' ) start [2025-03-24 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749246', 'tblTempUsageDetail_20' ) end [2025-03-24 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749246', 'tblTempVendorCDR_20' ) start [2025-03-24 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749246', 'tblTempVendorCDR_20' ) end [2025-03-24 02:58:18] Production.INFO: ProcessCDR(1,14749246,1,1,2) [2025-03-24 02:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749246', 'tblTempUsageDetail_20' ) start [2025-03-24 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749246', 'tblTempUsageDetail_20' ) end [2025-03-24 02:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 02:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 02:58:22] Production.INFO: ==4538== Releasing lock... [2025-03-24 02:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 02:58:22] Production.INFO: 35.5 MB #Memory Used# [2025-03-24 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-23 23:59:05 [end_date_ymd] => 2025-03-24 02:59:05 [RateCDR] => 1 ) [2025-03-24 02: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-03-23 23:59:05' and `end` < '2025-03-24 02: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-03-24 02:59:18] Production.INFO: count ==965 [2025-03-24 02:59:18] Production.ERROR: pbx CDR StartTime 2025-03-23 23:59:05 - End Time 2025-03-24 02:59:05 [2025-03-24 02:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749251', 'tblTempUsageDetail_20' ) start [2025-03-24 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749251', 'tblTempUsageDetail_20' ) end [2025-03-24 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749251', 'tblTempVendorCDR_20' ) start [2025-03-24 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749251', 'tblTempVendorCDR_20' ) end [2025-03-24 02:59:18] Production.INFO: ProcessCDR(1,14749251,1,1,2) [2025-03-24 02:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 02:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749251', 'tblTempUsageDetail_20' ) start [2025-03-24 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749251', 'tblTempUsageDetail_20' ) end [2025-03-24 02:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 02:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 02:59:22] Production.INFO: ==4633== Releasing lock... [2025-03-24 02:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 02:59:22] Production.INFO: 35.75 MB #Memory Used# [2025-03-24 03:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 00:00:07 [end_date_ymd] => 2025-03-24 03:00:07 [RateCDR] => 1 ) [2025-03-24 03: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-03-24 00:00:07' and `end` < '2025-03-24 03: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-03-24 03:00:19] Production.INFO: count ==897 [2025-03-24 03:00:20] Production.ERROR: pbx CDR StartTime 2025-03-24 00:00:07 - End Time 2025-03-24 03:00:07 [2025-03-24 03:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749257', 'tblTempUsageDetail_20' ) start [2025-03-24 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749257', 'tblTempUsageDetail_20' ) end [2025-03-24 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749257', 'tblTempVendorCDR_20' ) start [2025-03-24 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749257', 'tblTempVendorCDR_20' ) end [2025-03-24 03:00:20] Production.INFO: ProcessCDR(1,14749257,1,1,2) [2025-03-24 03:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749257', 'tblTempUsageDetail_20' ) start [2025-03-24 03:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749257', 'tblTempUsageDetail_20' ) end [2025-03-24 03:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 03:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 03:00:24] Production.INFO: ==4724== Releasing lock... [2025-03-24 03:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 03:00:24] Production.INFO: 34.75 MB #Memory Used# [2025-03-24 03:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 00:01:05 [end_date_ymd] => 2025-03-24 03:01:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 00:01:05' and `end` < '2025-03-24 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-03-24 03:01:18] Production.INFO: count ==827 [2025-03-24 03:01:18] Production.ERROR: pbx CDR StartTime 2025-03-24 00:01:05 - End Time 2025-03-24 03:01:05 [2025-03-24 03:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749262', 'tblTempUsageDetail_20' ) start [2025-03-24 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749262', 'tblTempUsageDetail_20' ) end [2025-03-24 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749262', 'tblTempVendorCDR_20' ) start [2025-03-24 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749262', 'tblTempVendorCDR_20' ) end [2025-03-24 03:01:18] Production.INFO: ProcessCDR(1,14749262,1,1,2) [2025-03-24 03:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749262', 'tblTempUsageDetail_20' ) start [2025-03-24 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749262', 'tblTempUsageDetail_20' ) end [2025-03-24 03:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 03:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 03:01:22] Production.INFO: ==4822== Releasing lock... [2025-03-24 03:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 03:01:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-24 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 00:02:05 [end_date_ymd] => 2025-03-24 03:02:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 00:02:05' and `end` < '2025-03-24 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-03-24 03:02:18] Production.INFO: count ==772 [2025-03-24 03:02:18] Production.ERROR: pbx CDR StartTime 2025-03-24 00:02:05 - End Time 2025-03-24 03:02:05 [2025-03-24 03:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749267', 'tblTempUsageDetail_20' ) start [2025-03-24 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749267', 'tblTempUsageDetail_20' ) end [2025-03-24 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749267', 'tblTempVendorCDR_20' ) start [2025-03-24 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749267', 'tblTempVendorCDR_20' ) end [2025-03-24 03:02:18] Production.INFO: ProcessCDR(1,14749267,1,1,2) [2025-03-24 03:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749267', 'tblTempUsageDetail_20' ) start [2025-03-24 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749267', 'tblTempUsageDetail_20' ) end [2025-03-24 03:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 03:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 03:02:21] Production.INFO: ==4990== Releasing lock... [2025-03-24 03:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 03:02:21] Production.INFO: 34 MB #Memory Used# [2025-03-24 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 00:03:05 [end_date_ymd] => 2025-03-24 03:03:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 00:03:05' and `end` < '2025-03-24 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-03-24 03:03:17] Production.INFO: count ==732 [2025-03-24 03:03:17] Production.ERROR: pbx CDR StartTime 2025-03-24 00:03:05 - End Time 2025-03-24 03:03:05 [2025-03-24 03:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749272', 'tblTempUsageDetail_20' ) start [2025-03-24 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749272', 'tblTempUsageDetail_20' ) end [2025-03-24 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749272', 'tblTempVendorCDR_20' ) start [2025-03-24 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749272', 'tblTempVendorCDR_20' ) end [2025-03-24 03:03:17] Production.INFO: ProcessCDR(1,14749272,1,1,2) [2025-03-24 03:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749272', 'tblTempUsageDetail_20' ) start [2025-03-24 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749272', 'tblTempUsageDetail_20' ) end [2025-03-24 03:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 03:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 03:03:21] Production.INFO: ==5076== Releasing lock... [2025-03-24 03:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 03:03:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-24 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 00:04:05 [end_date_ymd] => 2025-03-24 03:04:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 00:04:05' and `end` < '2025-03-24 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-03-24 03:04:17] Production.INFO: count ==692 [2025-03-24 03:04:17] Production.ERROR: pbx CDR StartTime 2025-03-24 00:04:05 - End Time 2025-03-24 03:04:05 [2025-03-24 03:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749277', 'tblTempUsageDetail_20' ) start [2025-03-24 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749277', 'tblTempUsageDetail_20' ) end [2025-03-24 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749277', 'tblTempVendorCDR_20' ) start [2025-03-24 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749277', 'tblTempVendorCDR_20' ) end [2025-03-24 03:04:17] Production.INFO: ProcessCDR(1,14749277,1,1,2) [2025-03-24 03:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749277', 'tblTempUsageDetail_20' ) start [2025-03-24 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749277', 'tblTempUsageDetail_20' ) end [2025-03-24 03:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 03:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 03:04:21] Production.INFO: ==5161== Releasing lock... [2025-03-24 03:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 03:04:21] Production.INFO: 34 MB #Memory Used# [2025-03-24 03:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 00:05:06 [end_date_ymd] => 2025-03-24 03:05:06 [RateCDR] => 1 ) [2025-03-24 03: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-03-24 00:05:06' and `end` < '2025-03-24 03: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-03-24 03:05:18] Production.INFO: count ==692 [2025-03-24 03:05:18] Production.ERROR: pbx CDR StartTime 2025-03-24 00:05:06 - End Time 2025-03-24 03:05:06 [2025-03-24 03:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749282', 'tblTempUsageDetail_20' ) start [2025-03-24 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749282', 'tblTempUsageDetail_20' ) end [2025-03-24 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749282', 'tblTempVendorCDR_20' ) start [2025-03-24 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749282', 'tblTempVendorCDR_20' ) end [2025-03-24 03:05:18] Production.INFO: ProcessCDR(1,14749282,1,1,2) [2025-03-24 03:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749282', 'tblTempUsageDetail_20' ) start [2025-03-24 03:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749282', 'tblTempUsageDetail_20' ) end [2025-03-24 03:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 03:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 03:05:22] Production.INFO: ==5246== Releasing lock... [2025-03-24 03:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 03:05:22] Production.INFO: 34 MB #Memory Used# [2025-03-24 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 00:06:05 [end_date_ymd] => 2025-03-24 03:06:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 00:06:05' and `end` < '2025-03-24 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-03-24 03:06:18] Production.INFO: count ==686 [2025-03-24 03:06:18] Production.ERROR: pbx CDR StartTime 2025-03-24 00:06:05 - End Time 2025-03-24 03:06:05 [2025-03-24 03:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749287', 'tblTempUsageDetail_20' ) start [2025-03-24 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749287', 'tblTempUsageDetail_20' ) end [2025-03-24 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749287', 'tblTempVendorCDR_20' ) start [2025-03-24 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749287', 'tblTempVendorCDR_20' ) end [2025-03-24 03:06:18] Production.INFO: ProcessCDR(1,14749287,1,1,2) [2025-03-24 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749287', 'tblTempUsageDetail_20' ) start [2025-03-24 03:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749287', 'tblTempUsageDetail_20' ) end [2025-03-24 03:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 03:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 03:06:22] Production.INFO: ==5412== Releasing lock... [2025-03-24 03:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 03:06:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-24 03:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 00:07:06 [end_date_ymd] => 2025-03-24 03:07:06 [RateCDR] => 1 ) [2025-03-24 03: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-03-24 00:07:06' and `end` < '2025-03-24 03: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-03-24 03:07:18] Production.INFO: count ==683 [2025-03-24 03:07:18] Production.ERROR: pbx CDR StartTime 2025-03-24 00:07:06 - End Time 2025-03-24 03:07:06 [2025-03-24 03:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749292', 'tblTempUsageDetail_20' ) start [2025-03-24 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749292', 'tblTempUsageDetail_20' ) end [2025-03-24 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749292', 'tblTempVendorCDR_20' ) start [2025-03-24 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749292', 'tblTempVendorCDR_20' ) end [2025-03-24 03:07:18] Production.INFO: ProcessCDR(1,14749292,1,1,2) [2025-03-24 03:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749292', 'tblTempUsageDetail_20' ) start [2025-03-24 03:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749292', 'tblTempUsageDetail_20' ) end [2025-03-24 03:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 03:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 03:07:22] Production.INFO: ==5533== Releasing lock... [2025-03-24 03:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 03:07:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-24 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 00:08:05 [end_date_ymd] => 2025-03-24 03:08:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 00:08:05' and `end` < '2025-03-24 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-03-24 03:08:17] Production.INFO: count ==686 [2025-03-24 03:08:17] Production.ERROR: pbx CDR StartTime 2025-03-24 00:08:05 - End Time 2025-03-24 03:08:05 [2025-03-24 03:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749297', 'tblTempUsageDetail_20' ) start [2025-03-24 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749297', 'tblTempUsageDetail_20' ) end [2025-03-24 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749297', 'tblTempVendorCDR_20' ) start [2025-03-24 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749297', 'tblTempVendorCDR_20' ) end [2025-03-24 03:08:17] Production.INFO: ProcessCDR(1,14749297,1,1,2) [2025-03-24 03:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749297', 'tblTempUsageDetail_20' ) start [2025-03-24 03:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749297', 'tblTempUsageDetail_20' ) end [2025-03-24 03:08:20] Production.ERROR: pbx prc_insertCDR start [2025-03-24 03:08:20] Production.ERROR: pbx prc_insertCDR end [2025-03-24 03:08:20] Production.INFO: ==5621== Releasing lock... [2025-03-24 03:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 03:08:20] Production.INFO: 33.75 MB #Memory Used# [2025-03-24 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 00:09:05 [end_date_ymd] => 2025-03-24 03:09:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 00:09:05' and `end` < '2025-03-24 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-03-24 03:09:18] Production.INFO: count ==683 [2025-03-24 03:09:18] Production.ERROR: pbx CDR StartTime 2025-03-24 00:09:05 - End Time 2025-03-24 03:09:05 [2025-03-24 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749302', 'tblTempUsageDetail_20' ) start [2025-03-24 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749302', 'tblTempUsageDetail_20' ) end [2025-03-24 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749302', 'tblTempVendorCDR_20' ) start [2025-03-24 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749302', 'tblTempVendorCDR_20' ) end [2025-03-24 03:09:18] Production.INFO: ProcessCDR(1,14749302,1,1,2) [2025-03-24 03:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749302', 'tblTempUsageDetail_20' ) start [2025-03-24 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749302', 'tblTempUsageDetail_20' ) end [2025-03-24 03:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 03:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 03:09:21] Production.INFO: ==5784== Releasing lock... [2025-03-24 03:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 03:09:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-24 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 00:10:06 [end_date_ymd] => 2025-03-24 03:10:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 00:10:06' and `end` < '2025-03-24 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-03-24 03:10:18] Production.INFO: count ==685 [2025-03-24 03:10:18] Production.ERROR: pbx CDR StartTime 2025-03-24 00:10:06 - End Time 2025-03-24 03:10:06 [2025-03-24 03:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749308', 'tblTempUsageDetail_20' ) start [2025-03-24 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749308', 'tblTempUsageDetail_20' ) end [2025-03-24 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749308', 'tblTempVendorCDR_20' ) start [2025-03-24 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749308', 'tblTempVendorCDR_20' ) end [2025-03-24 03:10:18] Production.INFO: ProcessCDR(1,14749308,1,1,2) [2025-03-24 03:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749308', 'tblTempUsageDetail_20' ) start [2025-03-24 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749308', 'tblTempUsageDetail_20' ) end [2025-03-24 03:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 03:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 03:10:22] Production.INFO: ==5871== Releasing lock... [2025-03-24 03:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 03:10:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-24 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 00:11:05 [end_date_ymd] => 2025-03-24 03:11:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 00:11:05' and `end` < '2025-03-24 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-03-24 03:11:17] Production.INFO: count ==670 [2025-03-24 03:11:18] Production.ERROR: pbx CDR StartTime 2025-03-24 00:11:05 - End Time 2025-03-24 03:11:05 [2025-03-24 03:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749313', 'tblTempUsageDetail_20' ) start [2025-03-24 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749313', 'tblTempUsageDetail_20' ) end [2025-03-24 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749313', 'tblTempVendorCDR_20' ) start [2025-03-24 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749313', 'tblTempVendorCDR_20' ) end [2025-03-24 03:11:18] Production.INFO: ProcessCDR(1,14749313,1,1,2) [2025-03-24 03:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749313', 'tblTempUsageDetail_20' ) start [2025-03-24 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749313', 'tblTempUsageDetail_20' ) end [2025-03-24 03:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 03:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 03:11:21] Production.INFO: ==5998== Releasing lock... [2025-03-24 03:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 03:11:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-24 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 00:12:05 [end_date_ymd] => 2025-03-24 03:12:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 00:12:05' and `end` < '2025-03-24 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-03-24 03:12:17] Production.INFO: count ==666 [2025-03-24 03:12:17] Production.ERROR: pbx CDR StartTime 2025-03-24 00:12:05 - End Time 2025-03-24 03:12:05 [2025-03-24 03:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749318', 'tblTempUsageDetail_20' ) start [2025-03-24 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749318', 'tblTempUsageDetail_20' ) end [2025-03-24 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749318', 'tblTempVendorCDR_20' ) start [2025-03-24 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749318', 'tblTempVendorCDR_20' ) end [2025-03-24 03:12:17] Production.INFO: ProcessCDR(1,14749318,1,1,2) [2025-03-24 03:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749318', 'tblTempUsageDetail_20' ) start [2025-03-24 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749318', 'tblTempUsageDetail_20' ) end [2025-03-24 03:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 03:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 03:12:21] Production.INFO: ==6089== Releasing lock... [2025-03-24 03:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 03:12:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-24 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 00:13:05 [end_date_ymd] => 2025-03-24 03:13:05 [RateCDR] => 1 ) [2025-03-24 03:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 00:13:05' and `end` < '2025-03-24 03:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 03:13:18] Production.INFO: count ==664 [2025-03-24 03:13:18] Production.ERROR: pbx CDR StartTime 2025-03-24 00:13:05 - End Time 2025-03-24 03:13:05 [2025-03-24 03:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749323', 'tblTempUsageDetail_20' ) start [2025-03-24 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749323', 'tblTempUsageDetail_20' ) end [2025-03-24 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749323', 'tblTempVendorCDR_20' ) start [2025-03-24 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749323', 'tblTempVendorCDR_20' ) end [2025-03-24 03:13:18] Production.INFO: ProcessCDR(1,14749323,1,1,2) [2025-03-24 03:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749323', 'tblTempUsageDetail_20' ) start [2025-03-24 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749323', 'tblTempUsageDetail_20' ) end [2025-03-24 03:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 03:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 03:13:21] Production.INFO: ==6254== Releasing lock... [2025-03-24 03:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 03:13:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-24 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 00:14:05 [end_date_ymd] => 2025-03-24 03:14:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 00:14:05' and `end` < '2025-03-24 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-03-24 03:14:17] Production.INFO: count ==662 [2025-03-24 03:14:17] Production.ERROR: pbx CDR StartTime 2025-03-24 00:14:05 - End Time 2025-03-24 03:14:05 [2025-03-24 03:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749328', 'tblTempUsageDetail_20' ) start [2025-03-24 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749328', 'tblTempUsageDetail_20' ) end [2025-03-24 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749328', 'tblTempVendorCDR_20' ) start [2025-03-24 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749328', 'tblTempVendorCDR_20' ) end [2025-03-24 03:14:17] Production.INFO: ProcessCDR(1,14749328,1,1,2) [2025-03-24 03:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749328', 'tblTempUsageDetail_20' ) start [2025-03-24 03:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749328', 'tblTempUsageDetail_20' ) end [2025-03-24 03:14:20] Production.ERROR: pbx prc_insertCDR start [2025-03-24 03:14:20] Production.ERROR: pbx prc_insertCDR end [2025-03-24 03:14:20] Production.INFO: ==6336== Releasing lock... [2025-03-24 03:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 03:14:20] Production.INFO: 33.5 MB #Memory Used# [2025-03-24 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 00:15:05 [end_date_ymd] => 2025-03-24 03:15:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 00:15:05' and `end` < '2025-03-24 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-03-24 03:15:17] Production.INFO: count ==660 [2025-03-24 03:15:17] Production.ERROR: pbx CDR StartTime 2025-03-24 00:15:05 - End Time 2025-03-24 03:15:05 [2025-03-24 03:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749333', 'tblTempUsageDetail_20' ) start [2025-03-24 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749333', 'tblTempUsageDetail_20' ) end [2025-03-24 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749333', 'tblTempVendorCDR_20' ) start [2025-03-24 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749333', 'tblTempVendorCDR_20' ) end [2025-03-24 03:15:18] Production.INFO: ProcessCDR(1,14749333,1,1,2) [2025-03-24 03:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749333', 'tblTempUsageDetail_20' ) start [2025-03-24 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749333', 'tblTempUsageDetail_20' ) end [2025-03-24 03:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 03:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 03:15:21] Production.INFO: ==6425== Releasing lock... [2025-03-24 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 03:15:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-24 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 00:16:05 [end_date_ymd] => 2025-03-24 03:16:05 [RateCDR] => 1 ) [2025-03-24 03:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 00:16:05' and `end` < '2025-03-24 03:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 03:16:17] Production.INFO: count ==659 [2025-03-24 03:16:18] Production.ERROR: pbx CDR StartTime 2025-03-24 00:16:05 - End Time 2025-03-24 03:16:05 [2025-03-24 03:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749338', 'tblTempUsageDetail_20' ) start [2025-03-24 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749338', 'tblTempUsageDetail_20' ) end [2025-03-24 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749338', 'tblTempVendorCDR_20' ) start [2025-03-24 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749338', 'tblTempVendorCDR_20' ) end [2025-03-24 03:16:18] Production.INFO: ProcessCDR(1,14749338,1,1,2) [2025-03-24 03:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749338', 'tblTempUsageDetail_20' ) start [2025-03-24 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749338', 'tblTempUsageDetail_20' ) end [2025-03-24 03:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 03:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 03:16:21] Production.INFO: ==6521== Releasing lock... [2025-03-24 03:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 03:16:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-24 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 00:17:05 [end_date_ymd] => 2025-03-24 03:17:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 00:17:05' and `end` < '2025-03-24 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-03-24 03:17:17] Production.INFO: count ==661 [2025-03-24 03:17:17] Production.ERROR: pbx CDR StartTime 2025-03-24 00:17:05 - End Time 2025-03-24 03:17:05 [2025-03-24 03:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749343', 'tblTempUsageDetail_20' ) start [2025-03-24 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749343', 'tblTempUsageDetail_20' ) end [2025-03-24 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749343', 'tblTempVendorCDR_20' ) start [2025-03-24 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749343', 'tblTempVendorCDR_20' ) end [2025-03-24 03:17:17] Production.INFO: ProcessCDR(1,14749343,1,1,2) [2025-03-24 03:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749343', 'tblTempUsageDetail_20' ) start [2025-03-24 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749343', 'tblTempUsageDetail_20' ) end [2025-03-24 03:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 03:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 03:17:21] Production.INFO: ==6689== Releasing lock... [2025-03-24 03:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 03:17:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-24 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 00:18:05 [end_date_ymd] => 2025-03-24 03:18:05 [RateCDR] => 1 ) [2025-03-24 03:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 00:18:05' and `end` < '2025-03-24 03:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 03:18:18] Production.INFO: count ==661 [2025-03-24 03:18:18] Production.ERROR: pbx CDR StartTime 2025-03-24 00:18:05 - End Time 2025-03-24 03:18:05 [2025-03-24 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749348', 'tblTempUsageDetail_20' ) start [2025-03-24 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749348', 'tblTempUsageDetail_20' ) end [2025-03-24 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749348', 'tblTempVendorCDR_20' ) start [2025-03-24 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749348', 'tblTempVendorCDR_20' ) end [2025-03-24 03:18:18] Production.INFO: ProcessCDR(1,14749348,1,1,2) [2025-03-24 03:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749348', 'tblTempUsageDetail_20' ) start [2025-03-24 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749348', 'tblTempUsageDetail_20' ) end [2025-03-24 03:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 03:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 03:18:21] Production.INFO: ==6776== Releasing lock... [2025-03-24 03:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 03:18:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-24 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 00:19:05 [end_date_ymd] => 2025-03-24 03:19:05 [RateCDR] => 1 ) [2025-03-24 03:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 00:19:05' and `end` < '2025-03-24 03:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 03:19:17] Production.INFO: count ==661 [2025-03-24 03:19:18] Production.ERROR: pbx CDR StartTime 2025-03-24 00:19:05 - End Time 2025-03-24 03:19:05 [2025-03-24 03:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749353', 'tblTempUsageDetail_20' ) start [2025-03-24 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749353', 'tblTempUsageDetail_20' ) end [2025-03-24 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749353', 'tblTempVendorCDR_20' ) start [2025-03-24 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749353', 'tblTempVendorCDR_20' ) end [2025-03-24 03:19:18] Production.INFO: ProcessCDR(1,14749353,1,1,2) [2025-03-24 03:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749353', 'tblTempUsageDetail_20' ) start [2025-03-24 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749353', 'tblTempUsageDetail_20' ) end [2025-03-24 03:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 03:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 03:19:21] Production.INFO: ==6866== Releasing lock... [2025-03-24 03:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 03:19:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-24 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 00:20:06 [end_date_ymd] => 2025-03-24 03:20:06 [RateCDR] => 1 ) [2025-03-24 03:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 00:20:06' and `end` < '2025-03-24 03:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 03:20:18] Production.INFO: count ==659 [2025-03-24 03:20:18] Production.ERROR: pbx CDR StartTime 2025-03-24 00:20:06 - End Time 2025-03-24 03:20:06 [2025-03-24 03:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749359', 'tblTempUsageDetail_20' ) start [2025-03-24 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749359', 'tblTempUsageDetail_20' ) end [2025-03-24 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749359', 'tblTempVendorCDR_20' ) start [2025-03-24 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749359', 'tblTempVendorCDR_20' ) end [2025-03-24 03:20:18] Production.INFO: ProcessCDR(1,14749359,1,1,2) [2025-03-24 03:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749359', 'tblTempUsageDetail_20' ) start [2025-03-24 03:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749359', 'tblTempUsageDetail_20' ) end [2025-03-24 03:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 03:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 03:20:22] Production.INFO: ==6956== Releasing lock... [2025-03-24 03:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 03:20:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-24 03:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 00:21:04 [end_date_ymd] => 2025-03-24 03:21:04 [RateCDR] => 1 ) [2025-03-24 03:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 00:21:04' and `end` < '2025-03-24 03:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 03:21:17] Production.INFO: count ==654 [2025-03-24 03:21:17] Production.ERROR: pbx CDR StartTime 2025-03-24 00:21:04 - End Time 2025-03-24 03:21:04 [2025-03-24 03:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749364', 'tblTempUsageDetail_20' ) start [2025-03-24 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749364', 'tblTempUsageDetail_20' ) end [2025-03-24 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749364', 'tblTempVendorCDR_20' ) start [2025-03-24 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749364', 'tblTempVendorCDR_20' ) end [2025-03-24 03:21:17] Production.INFO: ProcessCDR(1,14749364,1,1,2) [2025-03-24 03:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749364', 'tblTempUsageDetail_20' ) start [2025-03-24 03:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749364', 'tblTempUsageDetail_20' ) end [2025-03-24 03:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 03:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 03:21:22] Production.INFO: ==7043== Releasing lock... [2025-03-24 03:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 03:21:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-24 03:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 00:22:06 [end_date_ymd] => 2025-03-24 03:22:06 [RateCDR] => 1 ) [2025-03-24 03: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-03-24 00:22:06' and `end` < '2025-03-24 03: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-03-24 03:22:18] Production.INFO: count ==654 [2025-03-24 03:22:18] Production.ERROR: pbx CDR StartTime 2025-03-24 00:22:06 - End Time 2025-03-24 03:22:06 [2025-03-24 03:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749369', 'tblTempUsageDetail_20' ) start [2025-03-24 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749369', 'tblTempUsageDetail_20' ) end [2025-03-24 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749369', 'tblTempVendorCDR_20' ) start [2025-03-24 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749369', 'tblTempVendorCDR_20' ) end [2025-03-24 03:22:18] Production.INFO: ProcessCDR(1,14749369,1,1,2) [2025-03-24 03:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749369', 'tblTempUsageDetail_20' ) start [2025-03-24 03:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749369', 'tblTempUsageDetail_20' ) end [2025-03-24 03:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 03:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 03:22:22] Production.INFO: ==7137== Releasing lock... [2025-03-24 03:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 03:22:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-24 03:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 00:23:04 [end_date_ymd] => 2025-03-24 03:23:04 [RateCDR] => 1 ) [2025-03-24 03:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 00:23:04' and `end` < '2025-03-24 03:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 03:23:16] Production.INFO: count ==654 [2025-03-24 03:23:17] Production.ERROR: pbx CDR StartTime 2025-03-24 00:23:04 - End Time 2025-03-24 03:23:04 [2025-03-24 03:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749374', 'tblTempUsageDetail_20' ) start [2025-03-24 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749374', 'tblTempUsageDetail_20' ) end [2025-03-24 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749374', 'tblTempVendorCDR_20' ) start [2025-03-24 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749374', 'tblTempVendorCDR_20' ) end [2025-03-24 03:23:17] Production.INFO: ProcessCDR(1,14749374,1,1,2) [2025-03-24 03:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749374', 'tblTempUsageDetail_20' ) start [2025-03-24 03:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749374', 'tblTempUsageDetail_20' ) end [2025-03-24 03:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-24 03:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-24 03:23:20] Production.INFO: ==7222== Releasing lock... [2025-03-24 03:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 03:23:20] Production.INFO: 33.5 MB #Memory Used# [2025-03-24 03:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 00:24:05 [end_date_ymd] => 2025-03-24 03:24:05 [RateCDR] => 1 ) [2025-03-24 03: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-03-24 00:24:05' and `end` < '2025-03-24 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-03-24 03:24:18] Production.INFO: count ==646 [2025-03-24 03:24:18] Production.ERROR: pbx CDR StartTime 2025-03-24 00:24:05 - End Time 2025-03-24 03:24:05 [2025-03-24 03:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749379', 'tblTempUsageDetail_20' ) start [2025-03-24 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749379', 'tblTempUsageDetail_20' ) end [2025-03-24 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749379', 'tblTempVendorCDR_20' ) start [2025-03-24 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749379', 'tblTempVendorCDR_20' ) end [2025-03-24 03:24:18] Production.INFO: ProcessCDR(1,14749379,1,1,2) [2025-03-24 03:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749379', 'tblTempUsageDetail_20' ) start [2025-03-24 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749379', 'tblTempUsageDetail_20' ) end [2025-03-24 03:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 03:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 03:24:21] Production.INFO: ==7348== Releasing lock... [2025-03-24 03:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 03:24:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-24 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 00:25:05 [end_date_ymd] => 2025-03-24 03:25:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 00:25:05' and `end` < '2025-03-24 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-03-24 03:25:17] Production.INFO: count ==611 [2025-03-24 03:25:17] Production.ERROR: pbx CDR StartTime 2025-03-24 00:25:05 - End Time 2025-03-24 03:25:05 [2025-03-24 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749384', 'tblTempUsageDetail_20' ) start [2025-03-24 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749384', 'tblTempUsageDetail_20' ) end [2025-03-24 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749384', 'tblTempVendorCDR_20' ) start [2025-03-24 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749384', 'tblTempVendorCDR_20' ) end [2025-03-24 03:25:17] Production.INFO: ProcessCDR(1,14749384,1,1,2) [2025-03-24 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749384', 'tblTempUsageDetail_20' ) start [2025-03-24 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749384', 'tblTempUsageDetail_20' ) end [2025-03-24 03:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 03:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 03:25:21] Production.INFO: ==7435== Releasing lock... [2025-03-24 03:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 03:25:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-24 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 00:26:05 [end_date_ymd] => 2025-03-24 03:26:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 00:26:05' and `end` < '2025-03-24 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-03-24 03:26:17] Production.INFO: count ==579 [2025-03-24 03:26:18] Production.ERROR: pbx CDR StartTime 2025-03-24 00:26:05 - End Time 2025-03-24 03:26:05 [2025-03-24 03:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749389', 'tblTempUsageDetail_20' ) start [2025-03-24 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749389', 'tblTempUsageDetail_20' ) end [2025-03-24 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749389', 'tblTempVendorCDR_20' ) start [2025-03-24 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749389', 'tblTempVendorCDR_20' ) end [2025-03-24 03:26:18] Production.INFO: ProcessCDR(1,14749389,1,1,2) [2025-03-24 03:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749389', 'tblTempUsageDetail_20' ) start [2025-03-24 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749389', 'tblTempUsageDetail_20' ) end [2025-03-24 03:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 03:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 03:26:21] Production.INFO: ==7521== Releasing lock... [2025-03-24 03:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 03:26:21] Production.INFO: 33 MB #Memory Used# [2025-03-24 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 00:27:05 [end_date_ymd] => 2025-03-24 03:27:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 00:27:05' and `end` < '2025-03-24 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-03-24 03:27:17] Production.INFO: count ==541 [2025-03-24 03:27:18] Production.ERROR: pbx CDR StartTime 2025-03-24 00:27:05 - End Time 2025-03-24 03:27:05 [2025-03-24 03:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749394', 'tblTempUsageDetail_20' ) start [2025-03-24 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749394', 'tblTempUsageDetail_20' ) end [2025-03-24 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749394', 'tblTempVendorCDR_20' ) start [2025-03-24 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749394', 'tblTempVendorCDR_20' ) end [2025-03-24 03:27:18] Production.INFO: ProcessCDR(1,14749394,1,1,2) [2025-03-24 03:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749394', 'tblTempUsageDetail_20' ) start [2025-03-24 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749394', 'tblTempUsageDetail_20' ) end [2025-03-24 03:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 03:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 03:27:21] Production.INFO: ==7607== Releasing lock... [2025-03-24 03:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 03:27:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-24 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 00:28:05 [end_date_ymd] => 2025-03-24 03:28:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 00:28:05' and `end` < '2025-03-24 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-03-24 03:28:17] Production.INFO: count ==538 [2025-03-24 03:28:17] Production.ERROR: pbx CDR StartTime 2025-03-24 00:28:05 - End Time 2025-03-24 03:28:05 [2025-03-24 03:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749399', 'tblTempUsageDetail_20' ) start [2025-03-24 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749399', 'tblTempUsageDetail_20' ) end [2025-03-24 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749399', 'tblTempVendorCDR_20' ) start [2025-03-24 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749399', 'tblTempVendorCDR_20' ) end [2025-03-24 03:28:18] Production.INFO: ProcessCDR(1,14749399,1,1,2) [2025-03-24 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749399', 'tblTempUsageDetail_20' ) start [2025-03-24 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749399', 'tblTempUsageDetail_20' ) end [2025-03-24 03:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 03:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 03:28:21] Production.INFO: ==7693== Releasing lock... [2025-03-24 03:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 03:28:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-24 03:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 00:29:06 [end_date_ymd] => 2025-03-24 03:29:06 [RateCDR] => 1 ) [2025-03-24 03: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-03-24 00:29:06' and `end` < '2025-03-24 03: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-03-24 03:29:18] Production.INFO: count ==537 [2025-03-24 03:29:18] Production.ERROR: pbx CDR StartTime 2025-03-24 00:29:06 - End Time 2025-03-24 03:29:06 [2025-03-24 03:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749404', 'tblTempUsageDetail_20' ) start [2025-03-24 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749404', 'tblTempUsageDetail_20' ) end [2025-03-24 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749404', 'tblTempVendorCDR_20' ) start [2025-03-24 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749404', 'tblTempVendorCDR_20' ) end [2025-03-24 03:29:18] Production.INFO: ProcessCDR(1,14749404,1,1,2) [2025-03-24 03:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749404', 'tblTempUsageDetail_20' ) start [2025-03-24 03:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749404', 'tblTempUsageDetail_20' ) end [2025-03-24 03:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 03:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 03:29:22] Production.INFO: ==7785== Releasing lock... [2025-03-24 03:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 03:29:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-24 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 00:30:06 [end_date_ymd] => 2025-03-24 03:30:06 [RateCDR] => 1 ) [2025-03-24 03:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 00:30:06' and `end` < '2025-03-24 03:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 03:30:18] Production.INFO: count ==528 [2025-03-24 03:30:18] Production.ERROR: pbx CDR StartTime 2025-03-24 00:30:06 - End Time 2025-03-24 03:30:06 [2025-03-24 03:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749409', 'tblTempUsageDetail_20' ) start [2025-03-24 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749409', 'tblTempUsageDetail_20' ) end [2025-03-24 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749409', 'tblTempVendorCDR_20' ) start [2025-03-24 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749409', 'tblTempVendorCDR_20' ) end [2025-03-24 03:30:18] Production.INFO: ProcessCDR(1,14749409,1,1,2) [2025-03-24 03:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749409', 'tblTempUsageDetail_20' ) start [2025-03-24 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749409', 'tblTempUsageDetail_20' ) end [2025-03-24 03:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 03:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 03:30:22] Production.INFO: ==7874== Releasing lock... [2025-03-24 03:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 03:30:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-24 03:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 00:31:06 [end_date_ymd] => 2025-03-24 03:31:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 00:31:06' and `end` < '2025-03-24 03: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-03-24 03:31:18] Production.INFO: count ==513 [2025-03-24 03:31:18] Production.ERROR: pbx CDR StartTime 2025-03-24 00:31:06 - End Time 2025-03-24 03:31:06 [2025-03-24 03:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749415', 'tblTempUsageDetail_20' ) start [2025-03-24 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749415', 'tblTempUsageDetail_20' ) end [2025-03-24 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749415', 'tblTempVendorCDR_20' ) start [2025-03-24 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749415', 'tblTempVendorCDR_20' ) end [2025-03-24 03:31:18] Production.INFO: ProcessCDR(1,14749415,1,1,2) [2025-03-24 03:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749415', 'tblTempUsageDetail_20' ) start [2025-03-24 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749415', 'tblTempUsageDetail_20' ) end [2025-03-24 03:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 03:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 03:31:22] Production.INFO: ==7965== Releasing lock... [2025-03-24 03:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 03:31:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-24 03:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 00:32:06 [end_date_ymd] => 2025-03-24 03:32:06 [RateCDR] => 1 ) [2025-03-24 03: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-03-24 00:32:06' and `end` < '2025-03-24 03: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-03-24 03:32:18] Production.INFO: count ==510 [2025-03-24 03:32:18] Production.ERROR: pbx CDR StartTime 2025-03-24 00:32:06 - End Time 2025-03-24 03:32:06 [2025-03-24 03:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749420', 'tblTempUsageDetail_20' ) start [2025-03-24 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749420', 'tblTempUsageDetail_20' ) end [2025-03-24 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749420', 'tblTempVendorCDR_20' ) start [2025-03-24 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749420', 'tblTempVendorCDR_20' ) end [2025-03-24 03:32:18] Production.INFO: ProcessCDR(1,14749420,1,1,2) [2025-03-24 03:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749420', 'tblTempUsageDetail_20' ) start [2025-03-24 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749420', 'tblTempUsageDetail_20' ) end [2025-03-24 03:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 03:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 03:32:22] Production.INFO: ==8051== Releasing lock... [2025-03-24 03:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 03:32:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-24 03:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 00:33:06 [end_date_ymd] => 2025-03-24 03:33:06 [RateCDR] => 1 ) [2025-03-24 03:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 00:33:06' and `end` < '2025-03-24 03:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 03:33:18] Production.INFO: count ==509 [2025-03-24 03:33:18] Production.ERROR: pbx CDR StartTime 2025-03-24 00:33:06 - End Time 2025-03-24 03:33:06 [2025-03-24 03:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749425', 'tblTempUsageDetail_20' ) start [2025-03-24 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749425', 'tblTempUsageDetail_20' ) end [2025-03-24 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749425', 'tblTempVendorCDR_20' ) start [2025-03-24 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749425', 'tblTempVendorCDR_20' ) end [2025-03-24 03:33:18] Production.INFO: ProcessCDR(1,14749425,1,1,2) [2025-03-24 03:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749425', 'tblTempUsageDetail_20' ) start [2025-03-24 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749425', 'tblTempUsageDetail_20' ) end [2025-03-24 03:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 03:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 03:33:22] Production.INFO: ==8136== Releasing lock... [2025-03-24 03:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 03:33:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-24 03:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 00:34:04 [end_date_ymd] => 2025-03-24 03:34:04 [RateCDR] => 1 ) [2025-03-24 03:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 00:34:04' and `end` < '2025-03-24 03:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 03:34:17] Production.INFO: count ==509 [2025-03-24 03:34:17] Production.ERROR: pbx CDR StartTime 2025-03-24 00:34:04 - End Time 2025-03-24 03:34:04 [2025-03-24 03:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749429', 'tblTempUsageDetail_20' ) start [2025-03-24 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749429', 'tblTempUsageDetail_20' ) end [2025-03-24 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749429', 'tblTempVendorCDR_20' ) start [2025-03-24 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749429', 'tblTempVendorCDR_20' ) end [2025-03-24 03:34:17] Production.INFO: ProcessCDR(1,14749429,1,1,2) [2025-03-24 03:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749429', 'tblTempUsageDetail_20' ) start [2025-03-24 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749429', 'tblTempUsageDetail_20' ) end [2025-03-24 03:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 03:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 03:34:21] Production.INFO: ==8223== Releasing lock... [2025-03-24 03:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 03:34:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-24 03:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 00:35:06 [end_date_ymd] => 2025-03-24 03:35:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 00:35:06' and `end` < '2025-03-24 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-03-24 03:35:18] Production.INFO: count ==509 [2025-03-24 03:35:18] Production.ERROR: pbx CDR StartTime 2025-03-24 00:35:06 - End Time 2025-03-24 03:35:06 [2025-03-24 03:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749435', 'tblTempUsageDetail_20' ) start [2025-03-24 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749435', 'tblTempUsageDetail_20' ) end [2025-03-24 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749435', 'tblTempVendorCDR_20' ) start [2025-03-24 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749435', 'tblTempVendorCDR_20' ) end [2025-03-24 03:35:18] Production.INFO: ProcessCDR(1,14749435,1,1,2) [2025-03-24 03:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749435', 'tblTempUsageDetail_20' ) start [2025-03-24 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749435', 'tblTempUsageDetail_20' ) end [2025-03-24 03:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 03:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 03:35:22] Production.INFO: ==8314== Releasing lock... [2025-03-24 03:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 03:35:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-24 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 00:36:05 [end_date_ymd] => 2025-03-24 03:36:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 00:36:05' and `end` < '2025-03-24 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-03-24 03:36:17] Production.INFO: count ==501 [2025-03-24 03:36:17] Production.ERROR: pbx CDR StartTime 2025-03-24 00:36:05 - End Time 2025-03-24 03:36:05 [2025-03-24 03:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749440', 'tblTempUsageDetail_20' ) start [2025-03-24 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749440', 'tblTempUsageDetail_20' ) end [2025-03-24 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749440', 'tblTempVendorCDR_20' ) start [2025-03-24 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749440', 'tblTempVendorCDR_20' ) end [2025-03-24 03:36:17] Production.INFO: ProcessCDR(1,14749440,1,1,2) [2025-03-24 03:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749440', 'tblTempUsageDetail_20' ) start [2025-03-24 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749440', 'tblTempUsageDetail_20' ) end [2025-03-24 03:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 03:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 03:36:21] Production.INFO: ==8407== Releasing lock... [2025-03-24 03:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 03:36:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-24 03:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 00:37:06 [end_date_ymd] => 2025-03-24 03:37:06 [RateCDR] => 1 ) [2025-03-24 03: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-03-24 00:37:06' and `end` < '2025-03-24 03: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-03-24 03:37:19] Production.INFO: count ==501 [2025-03-24 03:37:19] Production.ERROR: pbx CDR StartTime 2025-03-24 00:37:06 - End Time 2025-03-24 03:37:06 [2025-03-24 03:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749445', 'tblTempUsageDetail_20' ) start [2025-03-24 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749445', 'tblTempUsageDetail_20' ) end [2025-03-24 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749445', 'tblTempVendorCDR_20' ) start [2025-03-24 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749445', 'tblTempVendorCDR_20' ) end [2025-03-24 03:37:19] Production.INFO: ProcessCDR(1,14749445,1,1,2) [2025-03-24 03:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749445', 'tblTempUsageDetail_20' ) start [2025-03-24 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749445', 'tblTempUsageDetail_20' ) end [2025-03-24 03:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 03:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 03:37:22] Production.INFO: ==8497== Releasing lock... [2025-03-24 03:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 03:37:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-24 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 00:38:05 [end_date_ymd] => 2025-03-24 03:38:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 00:38:05' and `end` < '2025-03-24 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-03-24 03:38:18] Production.INFO: count ==494 [2025-03-24 03:38:18] Production.ERROR: pbx CDR StartTime 2025-03-24 00:38:05 - End Time 2025-03-24 03:38:05 [2025-03-24 03:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749450', 'tblTempUsageDetail_20' ) start [2025-03-24 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749450', 'tblTempUsageDetail_20' ) end [2025-03-24 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749450', 'tblTempVendorCDR_20' ) start [2025-03-24 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749450', 'tblTempVendorCDR_20' ) end [2025-03-24 03:38:18] Production.INFO: ProcessCDR(1,14749450,1,1,2) [2025-03-24 03:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749450', 'tblTempUsageDetail_20' ) start [2025-03-24 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749450', 'tblTempUsageDetail_20' ) end [2025-03-24 03:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 03:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 03:38:22] Production.INFO: ==8585== Releasing lock... [2025-03-24 03:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 03:38:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-24 03:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 00:39:06 [end_date_ymd] => 2025-03-24 03:39:06 [RateCDR] => 1 ) [2025-03-24 03: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-03-24 00:39:06' and `end` < '2025-03-24 03: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-03-24 03:39:18] Production.INFO: count ==490 [2025-03-24 03:39:19] Production.ERROR: pbx CDR StartTime 2025-03-24 00:39:06 - End Time 2025-03-24 03:39:06 [2025-03-24 03:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749455', 'tblTempUsageDetail_20' ) start [2025-03-24 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749455', 'tblTempUsageDetail_20' ) end [2025-03-24 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749455', 'tblTempVendorCDR_20' ) start [2025-03-24 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749455', 'tblTempVendorCDR_20' ) end [2025-03-24 03:39:19] Production.INFO: ProcessCDR(1,14749455,1,1,2) [2025-03-24 03:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749455', 'tblTempUsageDetail_20' ) start [2025-03-24 03:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749455', 'tblTempUsageDetail_20' ) end [2025-03-24 03:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 03:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 03:39:23] Production.INFO: ==8668== Releasing lock... [2025-03-24 03:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 03:39:23] Production.INFO: 32.25 MB #Memory Used# [2025-03-24 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 00:40:06 [end_date_ymd] => 2025-03-24 03:40:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 00:40:06' and `end` < '2025-03-24 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-03-24 03:40:18] Production.INFO: count ==472 [2025-03-24 03:40:19] Production.ERROR: pbx CDR StartTime 2025-03-24 00:40:06 - End Time 2025-03-24 03:40:06 [2025-03-24 03:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749461', 'tblTempUsageDetail_20' ) start [2025-03-24 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749461', 'tblTempUsageDetail_20' ) end [2025-03-24 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749461', 'tblTempVendorCDR_20' ) start [2025-03-24 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749461', 'tblTempVendorCDR_20' ) end [2025-03-24 03:40:19] Production.INFO: ProcessCDR(1,14749461,1,1,2) [2025-03-24 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749461', 'tblTempUsageDetail_20' ) start [2025-03-24 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749461', 'tblTempUsageDetail_20' ) end [2025-03-24 03:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 03:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 03:40:23] Production.INFO: ==8796== Releasing lock... [2025-03-24 03:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 03:40:23] Production.INFO: 31.75 MB #Memory Used# [2025-03-24 03:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 00:41:06 [end_date_ymd] => 2025-03-24 03:41:06 [RateCDR] => 1 ) [2025-03-24 03:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 00:41:06' and `end` < '2025-03-24 03:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 03:41:18] Production.INFO: count ==460 [2025-03-24 03:41:18] Production.ERROR: pbx CDR StartTime 2025-03-24 00:41:06 - End Time 2025-03-24 03:41:06 [2025-03-24 03:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749466', 'tblTempUsageDetail_20' ) start [2025-03-24 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749466', 'tblTempUsageDetail_20' ) end [2025-03-24 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749466', 'tblTempVendorCDR_20' ) start [2025-03-24 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749466', 'tblTempVendorCDR_20' ) end [2025-03-24 03:41:18] Production.INFO: ProcessCDR(1,14749466,1,1,2) [2025-03-24 03:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749466', 'tblTempUsageDetail_20' ) start [2025-03-24 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749466', 'tblTempUsageDetail_20' ) end [2025-03-24 03:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 03:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 03:41:22] Production.INFO: ==8886== Releasing lock... [2025-03-24 03:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 03:41:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-24 03:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 00:42:06 [end_date_ymd] => 2025-03-24 03:42:06 [RateCDR] => 1 ) [2025-03-24 03:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 00:42:06' and `end` < '2025-03-24 03:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 03:42:18] Production.INFO: count ==457 [2025-03-24 03:42:18] Production.ERROR: pbx CDR StartTime 2025-03-24 00:42:06 - End Time 2025-03-24 03:42:06 [2025-03-24 03:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749471', 'tblTempUsageDetail_20' ) start [2025-03-24 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749471', 'tblTempUsageDetail_20' ) end [2025-03-24 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749471', 'tblTempVendorCDR_20' ) start [2025-03-24 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749471', 'tblTempVendorCDR_20' ) end [2025-03-24 03:42:18] Production.INFO: ProcessCDR(1,14749471,1,1,2) [2025-03-24 03:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749471', 'tblTempUsageDetail_20' ) start [2025-03-24 03:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749471', 'tblTempUsageDetail_20' ) end [2025-03-24 03:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 03:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 03:42:23] Production.INFO: ==8972== Releasing lock... [2025-03-24 03:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 03:42:23] Production.INFO: 32.5 MB #Memory Used# [2025-03-24 03:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 00:43:06 [end_date_ymd] => 2025-03-24 03:43:06 [RateCDR] => 1 ) [2025-03-24 03: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-03-24 00:43:06' and `end` < '2025-03-24 03: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-03-24 03:43:19] Production.INFO: count ==457 [2025-03-24 03:43:19] Production.ERROR: pbx CDR StartTime 2025-03-24 00:43:06 - End Time 2025-03-24 03:43:06 [2025-03-24 03:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749476', 'tblTempUsageDetail_20' ) start [2025-03-24 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749476', 'tblTempUsageDetail_20' ) end [2025-03-24 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749476', 'tblTempVendorCDR_20' ) start [2025-03-24 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749476', 'tblTempVendorCDR_20' ) end [2025-03-24 03:43:19] Production.INFO: ProcessCDR(1,14749476,1,1,2) [2025-03-24 03:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749476', 'tblTempUsageDetail_20' ) start [2025-03-24 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749476', 'tblTempUsageDetail_20' ) end [2025-03-24 03:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 03:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 03:43:22] Production.INFO: ==9062== Releasing lock... [2025-03-24 03:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 03:43:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-24 03:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 00:44:06 [end_date_ymd] => 2025-03-24 03:44:06 [RateCDR] => 1 ) [2025-03-24 03: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-03-24 00:44:06' and `end` < '2025-03-24 03: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-03-24 03:44:18] Production.INFO: count ==456 [2025-03-24 03:44:19] Production.ERROR: pbx CDR StartTime 2025-03-24 00:44:06 - End Time 2025-03-24 03:44:06 [2025-03-24 03:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749481', 'tblTempUsageDetail_20' ) start [2025-03-24 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749481', 'tblTempUsageDetail_20' ) end [2025-03-24 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749481', 'tblTempVendorCDR_20' ) start [2025-03-24 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749481', 'tblTempVendorCDR_20' ) end [2025-03-24 03:44:19] Production.INFO: ProcessCDR(1,14749481,1,1,2) [2025-03-24 03:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749481', 'tblTempUsageDetail_20' ) start [2025-03-24 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749481', 'tblTempUsageDetail_20' ) end [2025-03-24 03:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 03:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 03:44:22] Production.INFO: ==9150== Releasing lock... [2025-03-24 03:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 03:44:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-24 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 00:45:05 [end_date_ymd] => 2025-03-24 03:45:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 00:45:05' and `end` < '2025-03-24 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-03-24 03:45:17] Production.INFO: count ==441 [2025-03-24 03:45:17] Production.ERROR: pbx CDR StartTime 2025-03-24 00:45:05 - End Time 2025-03-24 03:45:05 [2025-03-24 03:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749486', 'tblTempUsageDetail_20' ) start [2025-03-24 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749486', 'tblTempUsageDetail_20' ) end [2025-03-24 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749486', 'tblTempVendorCDR_20' ) start [2025-03-24 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749486', 'tblTempVendorCDR_20' ) end [2025-03-24 03:45:18] Production.INFO: ProcessCDR(1,14749486,1,1,2) [2025-03-24 03:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749486', 'tblTempUsageDetail_20' ) start [2025-03-24 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749486', 'tblTempUsageDetail_20' ) end [2025-03-24 03:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 03:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 03:45:21] Production.INFO: ==9238== Releasing lock... [2025-03-24 03:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 03:45:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-24 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 00:46:05 [end_date_ymd] => 2025-03-24 03:46:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 00:46:05' and `end` < '2025-03-24 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-03-24 03:46:18] Production.INFO: count ==399 [2025-03-24 03:46:18] Production.ERROR: pbx CDR StartTime 2025-03-24 00:46:05 - End Time 2025-03-24 03:46:05 [2025-03-24 03:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749491', 'tblTempUsageDetail_20' ) start [2025-03-24 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749491', 'tblTempUsageDetail_20' ) end [2025-03-24 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749491', 'tblTempVendorCDR_20' ) start [2025-03-24 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749491', 'tblTempVendorCDR_20' ) end [2025-03-24 03:46:18] Production.INFO: ProcessCDR(1,14749491,1,1,2) [2025-03-24 03:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749491', 'tblTempUsageDetail_20' ) start [2025-03-24 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749491', 'tblTempUsageDetail_20' ) end [2025-03-24 03:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 03:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 03:46:21] Production.INFO: ==9323== Releasing lock... [2025-03-24 03:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 03:46:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-24 03:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 00:47:06 [end_date_ymd] => 2025-03-24 03:47:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 00:47:06' and `end` < '2025-03-24 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-03-24 03:47:18] Production.INFO: count ==358 [2025-03-24 03:47:18] Production.ERROR: pbx CDR StartTime 2025-03-24 00:47:06 - End Time 2025-03-24 03:47:06 [2025-03-24 03:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749496', 'tblTempUsageDetail_20' ) start [2025-03-24 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749496', 'tblTempUsageDetail_20' ) end [2025-03-24 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749496', 'tblTempVendorCDR_20' ) start [2025-03-24 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749496', 'tblTempVendorCDR_20' ) end [2025-03-24 03:47:18] Production.INFO: ProcessCDR(1,14749496,1,1,2) [2025-03-24 03:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749496', 'tblTempUsageDetail_20' ) start [2025-03-24 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749496', 'tblTempUsageDetail_20' ) end [2025-03-24 03:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 03:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 03:47:22] Production.INFO: ==9411== Releasing lock... [2025-03-24 03:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 03:47:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-24 03:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 00:48:06 [end_date_ymd] => 2025-03-24 03:48:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 00:48:06' and `end` < '2025-03-24 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-03-24 03:48:18] Production.INFO: count ==320 [2025-03-24 03:48:18] Production.ERROR: pbx CDR StartTime 2025-03-24 00:48:06 - End Time 2025-03-24 03:48:06 [2025-03-24 03:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749501', 'tblTempUsageDetail_20' ) start [2025-03-24 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749501', 'tblTempUsageDetail_20' ) end [2025-03-24 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749501', 'tblTempVendorCDR_20' ) start [2025-03-24 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749501', 'tblTempVendorCDR_20' ) end [2025-03-24 03:48:18] Production.INFO: ProcessCDR(1,14749501,1,1,2) [2025-03-24 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749501', 'tblTempUsageDetail_20' ) start [2025-03-24 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749501', 'tblTempUsageDetail_20' ) end [2025-03-24 03:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 03:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 03:48:22] Production.INFO: ==9500== Releasing lock... [2025-03-24 03:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 03:48:22] Production.INFO: 31 MB #Memory Used# [2025-03-24 03:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 00:49:06 [end_date_ymd] => 2025-03-24 03:49:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 00:49:06' and `end` < '2025-03-24 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-03-24 03:49:18] Production.INFO: count ==310 [2025-03-24 03:49:18] Production.ERROR: pbx CDR StartTime 2025-03-24 00:49:06 - End Time 2025-03-24 03:49:06 [2025-03-24 03:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749506', 'tblTempUsageDetail_20' ) start [2025-03-24 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749506', 'tblTempUsageDetail_20' ) end [2025-03-24 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749506', 'tblTempVendorCDR_20' ) start [2025-03-24 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749506', 'tblTempVendorCDR_20' ) end [2025-03-24 03:49:18] Production.INFO: ProcessCDR(1,14749506,1,1,2) [2025-03-24 03:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749506', 'tblTempUsageDetail_20' ) start [2025-03-24 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749506', 'tblTempUsageDetail_20' ) end [2025-03-24 03:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 03:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 03:49:22] Production.INFO: ==9590== Releasing lock... [2025-03-24 03:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 03:49:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-24 03:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 00:50:07 [end_date_ymd] => 2025-03-24 03:50:07 [RateCDR] => 1 ) [2025-03-24 03:50: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-03-24 00:50:07' and `end` < '2025-03-24 03:50: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-03-24 03:50:19] Production.INFO: count ==310 [2025-03-24 03:50:19] Production.ERROR: pbx CDR StartTime 2025-03-24 00:50:07 - End Time 2025-03-24 03:50:07 [2025-03-24 03:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749511', 'tblTempUsageDetail_20' ) start [2025-03-24 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749511', 'tblTempUsageDetail_20' ) end [2025-03-24 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749511', 'tblTempVendorCDR_20' ) start [2025-03-24 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749511', 'tblTempVendorCDR_20' ) end [2025-03-24 03:50:19] Production.INFO: ProcessCDR(1,14749511,1,1,2) [2025-03-24 03:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749511', 'tblTempUsageDetail_20' ) start [2025-03-24 03:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749511', 'tblTempUsageDetail_20' ) end [2025-03-24 03:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 03:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 03:50:23] Production.INFO: ==9684== Releasing lock... [2025-03-24 03:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 03:50:23] Production.INFO: 30.75 MB #Memory Used# [2025-03-24 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 00:51:05 [end_date_ymd] => 2025-03-24 03:51:05 [RateCDR] => 1 ) [2025-03-24 03:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 00:51:05' and `end` < '2025-03-24 03:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 03:51:18] Production.INFO: count ==313 [2025-03-24 03:51:18] Production.ERROR: pbx CDR StartTime 2025-03-24 00:51:05 - End Time 2025-03-24 03:51:05 [2025-03-24 03:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749517', 'tblTempUsageDetail_20' ) start [2025-03-24 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749517', 'tblTempUsageDetail_20' ) end [2025-03-24 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749517', 'tblTempVendorCDR_20' ) start [2025-03-24 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749517', 'tblTempVendorCDR_20' ) end [2025-03-24 03:51:18] Production.INFO: ProcessCDR(1,14749517,1,1,2) [2025-03-24 03:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749517', 'tblTempUsageDetail_20' ) start [2025-03-24 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749517', 'tblTempUsageDetail_20' ) end [2025-03-24 03:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 03:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 03:51:22] Production.INFO: ==9773== Releasing lock... [2025-03-24 03:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 03:51:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-24 03:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 00:52:05 [end_date_ymd] => 2025-03-24 03:52:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 00:52:05' and `end` < '2025-03-24 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-03-24 03:52:18] Production.INFO: count ==314 [2025-03-24 03:52:18] Production.ERROR: pbx CDR StartTime 2025-03-24 00:52:05 - End Time 2025-03-24 03:52:05 [2025-03-24 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749522', 'tblTempUsageDetail_20' ) start [2025-03-24 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749522', 'tblTempUsageDetail_20' ) end [2025-03-24 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749522', 'tblTempVendorCDR_20' ) start [2025-03-24 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749522', 'tblTempVendorCDR_20' ) end [2025-03-24 03:52:18] Production.INFO: ProcessCDR(1,14749522,1,1,2) [2025-03-24 03:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749522', 'tblTempUsageDetail_20' ) start [2025-03-24 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749522', 'tblTempUsageDetail_20' ) end [2025-03-24 03:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 03:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 03:52:22] Production.INFO: ==9862== Releasing lock... [2025-03-24 03:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 03:52:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-24 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 00:53:05 [end_date_ymd] => 2025-03-24 03:53:05 [RateCDR] => 1 ) [2025-03-24 03:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 00:53:05' and `end` < '2025-03-24 03:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 03:53:17] Production.INFO: count ==314 [2025-03-24 03:53:17] Production.ERROR: pbx CDR StartTime 2025-03-24 00:53:05 - End Time 2025-03-24 03:53:05 [2025-03-24 03:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749527', 'tblTempUsageDetail_20' ) start [2025-03-24 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749527', 'tblTempUsageDetail_20' ) end [2025-03-24 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749527', 'tblTempVendorCDR_20' ) start [2025-03-24 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749527', 'tblTempVendorCDR_20' ) end [2025-03-24 03:53:17] Production.INFO: ProcessCDR(1,14749527,1,1,2) [2025-03-24 03:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749527', 'tblTempUsageDetail_20' ) start [2025-03-24 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749527', 'tblTempUsageDetail_20' ) end [2025-03-24 03:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 03:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 03:53:21] Production.INFO: ==9947== Releasing lock... [2025-03-24 03:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 03:53:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-24 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 00:54:05 [end_date_ymd] => 2025-03-24 03:54:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 00:54:05' and `end` < '2025-03-24 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-03-24 03:54:17] Production.INFO: count ==304 [2025-03-24 03:54:18] Production.ERROR: pbx CDR StartTime 2025-03-24 00:54:05 - End Time 2025-03-24 03:54:05 [2025-03-24 03:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749532', 'tblTempUsageDetail_20' ) start [2025-03-24 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749532', 'tblTempUsageDetail_20' ) end [2025-03-24 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749532', 'tblTempVendorCDR_20' ) start [2025-03-24 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749532', 'tblTempVendorCDR_20' ) end [2025-03-24 03:54:18] Production.INFO: ProcessCDR(1,14749532,1,1,2) [2025-03-24 03:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749532', 'tblTempUsageDetail_20' ) start [2025-03-24 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749532', 'tblTempUsageDetail_20' ) end [2025-03-24 03:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 03:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 03:54:21] Production.INFO: ==10035== Releasing lock... [2025-03-24 03:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 03:54:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-24 03:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 00:55:06 [end_date_ymd] => 2025-03-24 03:55:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 00:55:06' and `end` < '2025-03-24 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-03-24 03:55:18] Production.INFO: count ==298 [2025-03-24 03:55:18] Production.ERROR: pbx CDR StartTime 2025-03-24 00:55:06 - End Time 2025-03-24 03:55:06 [2025-03-24 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749537', 'tblTempUsageDetail_20' ) start [2025-03-24 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749537', 'tblTempUsageDetail_20' ) end [2025-03-24 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749537', 'tblTempVendorCDR_20' ) start [2025-03-24 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749537', 'tblTempVendorCDR_20' ) end [2025-03-24 03:55:18] Production.INFO: ProcessCDR(1,14749537,1,1,2) [2025-03-24 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749537', 'tblTempUsageDetail_20' ) start [2025-03-24 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749537', 'tblTempUsageDetail_20' ) end [2025-03-24 03:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 03:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 03:55:22] Production.INFO: ==10164== Releasing lock... [2025-03-24 03:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 03:55:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-24 03:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 00:56:06 [end_date_ymd] => 2025-03-24 03:56:06 [RateCDR] => 1 ) [2025-03-24 03:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 00:56:06' and `end` < '2025-03-24 03:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 03:56:18] Production.INFO: count ==297 [2025-03-24 03:56:18] Production.ERROR: pbx CDR StartTime 2025-03-24 00:56:06 - End Time 2025-03-24 03:56:06 [2025-03-24 03:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749542', 'tblTempUsageDetail_20' ) start [2025-03-24 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749542', 'tblTempUsageDetail_20' ) end [2025-03-24 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749542', 'tblTempVendorCDR_20' ) start [2025-03-24 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749542', 'tblTempVendorCDR_20' ) end [2025-03-24 03:56:18] Production.INFO: ProcessCDR(1,14749542,1,1,2) [2025-03-24 03:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749542', 'tblTempUsageDetail_20' ) start [2025-03-24 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749542', 'tblTempUsageDetail_20' ) end [2025-03-24 03:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 03:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 03:56:22] Production.INFO: ==10251== Releasing lock... [2025-03-24 03:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 03:56:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-24 03:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 00:57:06 [end_date_ymd] => 2025-03-24 03:57:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 00:57:06' and `end` < '2025-03-24 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-03-24 03:57:18] Production.INFO: count ==292 [2025-03-24 03:57:18] Production.ERROR: pbx CDR StartTime 2025-03-24 00:57:06 - End Time 2025-03-24 03:57:06 [2025-03-24 03:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749547', 'tblTempUsageDetail_20' ) start [2025-03-24 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749547', 'tblTempUsageDetail_20' ) end [2025-03-24 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749547', 'tblTempVendorCDR_20' ) start [2025-03-24 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749547', 'tblTempVendorCDR_20' ) end [2025-03-24 03:57:18] Production.INFO: ProcessCDR(1,14749547,1,1,2) [2025-03-24 03:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749547', 'tblTempUsageDetail_20' ) start [2025-03-24 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749547', 'tblTempUsageDetail_20' ) end [2025-03-24 03:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 03:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 03:57:22] Production.INFO: ==10338== Releasing lock... [2025-03-24 03:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 03:57:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-24 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 00:58:05 [end_date_ymd] => 2025-03-24 03:58:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 00:58:05' and `end` < '2025-03-24 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-03-24 03:58:17] Production.INFO: count ==292 [2025-03-24 03:58:17] Production.ERROR: pbx CDR StartTime 2025-03-24 00:58:05 - End Time 2025-03-24 03:58:05 [2025-03-24 03:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749552', 'tblTempUsageDetail_20' ) start [2025-03-24 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749552', 'tblTempUsageDetail_20' ) end [2025-03-24 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749552', 'tblTempVendorCDR_20' ) start [2025-03-24 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749552', 'tblTempVendorCDR_20' ) end [2025-03-24 03:58:17] Production.INFO: ProcessCDR(1,14749552,1,1,2) [2025-03-24 03:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749552', 'tblTempUsageDetail_20' ) start [2025-03-24 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749552', 'tblTempUsageDetail_20' ) end [2025-03-24 03:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 03:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 03:58:21] Production.INFO: ==10424== Releasing lock... [2025-03-24 03:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 03:58:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-24 03:59:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 00:59:07 [end_date_ymd] => 2025-03-24 03:59:07 [RateCDR] => 1 ) [2025-03-24 03:59: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-03-24 00:59:07' and `end` < '2025-03-24 03:59: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-03-24 03:59:19] Production.INFO: count ==291 [2025-03-24 03:59:19] Production.ERROR: pbx CDR StartTime 2025-03-24 00:59:07 - End Time 2025-03-24 03:59:07 [2025-03-24 03:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749557', 'tblTempUsageDetail_20' ) start [2025-03-24 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749557', 'tblTempUsageDetail_20' ) end [2025-03-24 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749557', 'tblTempVendorCDR_20' ) start [2025-03-24 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749557', 'tblTempVendorCDR_20' ) end [2025-03-24 03:59:19] Production.INFO: ProcessCDR(1,14749557,1,1,2) [2025-03-24 03:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 03:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749557', 'tblTempUsageDetail_20' ) start [2025-03-24 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749557', 'tblTempUsageDetail_20' ) end [2025-03-24 03:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 03:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 03:59:23] Production.INFO: ==10523== Releasing lock... [2025-03-24 03:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 03:59:23] Production.INFO: 30.25 MB #Memory Used# [2025-03-24 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 01:00:06 [end_date_ymd] => 2025-03-24 04:00:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 01:00:06' and `end` < '2025-03-24 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-03-24 04:00:18] Production.INFO: count ==281 [2025-03-24 04:00:18] Production.ERROR: pbx CDR StartTime 2025-03-24 01:00:06 - End Time 2025-03-24 04:00:06 [2025-03-24 04:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749563', 'tblTempUsageDetail_20' ) start [2025-03-24 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749563', 'tblTempUsageDetail_20' ) end [2025-03-24 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749563', 'tblTempVendorCDR_20' ) start [2025-03-24 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749563', 'tblTempVendorCDR_20' ) end [2025-03-24 04:00:18] Production.INFO: ProcessCDR(1,14749563,1,1,2) [2025-03-24 04:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749563', 'tblTempUsageDetail_20' ) start [2025-03-24 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749563', 'tblTempUsageDetail_20' ) end [2025-03-24 04:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 04:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 04:00:22] Production.INFO: ==10615== Releasing lock... [2025-03-24 04:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 04:00:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-24 04:01:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 01:01:07 [end_date_ymd] => 2025-03-24 04:01:07 [RateCDR] => 1 ) [2025-03-24 04:01: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-03-24 01:01:07' and `end` < '2025-03-24 04:01: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-03-24 04:01:19] Production.INFO: count ==269 [2025-03-24 04:01:19] Production.ERROR: pbx CDR StartTime 2025-03-24 01:01:07 - End Time 2025-03-24 04:01:07 [2025-03-24 04:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749569', 'tblTempUsageDetail_20' ) start [2025-03-24 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749569', 'tblTempUsageDetail_20' ) end [2025-03-24 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749569', 'tblTempVendorCDR_20' ) start [2025-03-24 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749569', 'tblTempVendorCDR_20' ) end [2025-03-24 04:01:19] Production.INFO: ProcessCDR(1,14749569,1,1,2) [2025-03-24 04:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749569', 'tblTempUsageDetail_20' ) start [2025-03-24 04:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749569', 'tblTempUsageDetail_20' ) end [2025-03-24 04:01:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 04:01:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 04:01:24] Production.INFO: ==10723== Releasing lock... [2025-03-24 04:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 04:01:24] Production.INFO: 30.25 MB #Memory Used# [2025-03-24 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 01:02:05 [end_date_ymd] => 2025-03-24 04:02:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 01:02:05' and `end` < '2025-03-24 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-03-24 04:02:17] Production.INFO: count ==268 [2025-03-24 04:02:17] Production.ERROR: pbx CDR StartTime 2025-03-24 01:02:05 - End Time 2025-03-24 04:02:05 [2025-03-24 04:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749574', 'tblTempUsageDetail_20' ) start [2025-03-24 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749574', 'tblTempUsageDetail_20' ) end [2025-03-24 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749574', 'tblTempVendorCDR_20' ) start [2025-03-24 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749574', 'tblTempVendorCDR_20' ) end [2025-03-24 04:02:17] Production.INFO: ProcessCDR(1,14749574,1,1,2) [2025-03-24 04:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749574', 'tblTempUsageDetail_20' ) start [2025-03-24 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749574', 'tblTempUsageDetail_20' ) end [2025-03-24 04:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 04:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 04:02:21] Production.INFO: ==10827== Releasing lock... [2025-03-24 04:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 04:02:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-24 04:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 01:03:06 [end_date_ymd] => 2025-03-24 04:03:06 [RateCDR] => 1 ) [2025-03-24 04:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 01:03:06' and `end` < '2025-03-24 04:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 04:03:18] Production.INFO: count ==271 [2025-03-24 04:03:18] Production.ERROR: pbx CDR StartTime 2025-03-24 01:03:06 - End Time 2025-03-24 04:03:06 [2025-03-24 04:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749579', 'tblTempUsageDetail_20' ) start [2025-03-24 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749579', 'tblTempUsageDetail_20' ) end [2025-03-24 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749579', 'tblTempVendorCDR_20' ) start [2025-03-24 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749579', 'tblTempVendorCDR_20' ) end [2025-03-24 04:03:18] Production.INFO: ProcessCDR(1,14749579,1,1,2) [2025-03-24 04:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749579', 'tblTempUsageDetail_20' ) start [2025-03-24 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749579', 'tblTempUsageDetail_20' ) end [2025-03-24 04:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 04:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 04:03:22] Production.INFO: ==10943== Releasing lock... [2025-03-24 04:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 04:03:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-24 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 01:04:05 [end_date_ymd] => 2025-03-24 04:04:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 01:04:05' and `end` < '2025-03-24 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-03-24 04:04:17] Production.INFO: count ==275 [2025-03-24 04:04:17] Production.ERROR: pbx CDR StartTime 2025-03-24 01:04:05 - End Time 2025-03-24 04:04:05 [2025-03-24 04:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749582', 'tblTempUsageDetail_20' ) start [2025-03-24 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749582', 'tblTempUsageDetail_20' ) end [2025-03-24 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749582', 'tblTempVendorCDR_20' ) start [2025-03-24 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749582', 'tblTempVendorCDR_20' ) end [2025-03-24 04:04:17] Production.INFO: ProcessCDR(1,14749582,1,1,2) [2025-03-24 04:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749582', 'tblTempUsageDetail_20' ) start [2025-03-24 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749582', 'tblTempUsageDetail_20' ) end [2025-03-24 04:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 04:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 04:04:21] Production.INFO: ==11060== Releasing lock... [2025-03-24 04:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 04:04:21] Production.INFO: 30 MB #Memory Used# [2025-03-24 04:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 01:05:06 [end_date_ymd] => 2025-03-24 04:05:06 [RateCDR] => 1 ) [2025-03-24 04: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-03-24 01:05:06' and `end` < '2025-03-24 04: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-03-24 04:05:18] Production.INFO: count ==275 [2025-03-24 04:05:18] Production.ERROR: pbx CDR StartTime 2025-03-24 01:05:06 - End Time 2025-03-24 04:05:06 [2025-03-24 04:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749589', 'tblTempUsageDetail_20' ) start [2025-03-24 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749589', 'tblTempUsageDetail_20' ) end [2025-03-24 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749589', 'tblTempVendorCDR_20' ) start [2025-03-24 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749589', 'tblTempVendorCDR_20' ) end [2025-03-24 04:05:18] Production.INFO: ProcessCDR(1,14749589,1,1,2) [2025-03-24 04:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749589', 'tblTempUsageDetail_20' ) start [2025-03-24 04:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749589', 'tblTempUsageDetail_20' ) end [2025-03-24 04:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 04:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 04:05:22] Production.INFO: ==11198== Releasing lock... [2025-03-24 04:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 04:05:22] Production.INFO: 30 MB #Memory Used# [2025-03-24 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 01:06:05 [end_date_ymd] => 2025-03-24 04:06:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 01:06:05' and `end` < '2025-03-24 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-03-24 04:06:17] Production.INFO: count ==275 [2025-03-24 04:06:17] Production.ERROR: pbx CDR StartTime 2025-03-24 01:06:05 - End Time 2025-03-24 04:06:05 [2025-03-24 04:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749594', 'tblTempUsageDetail_20' ) start [2025-03-24 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749594', 'tblTempUsageDetail_20' ) end [2025-03-24 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749594', 'tblTempVendorCDR_20' ) start [2025-03-24 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749594', 'tblTempVendorCDR_20' ) end [2025-03-24 04:06:17] Production.INFO: ProcessCDR(1,14749594,1,1,2) [2025-03-24 04:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749594', 'tblTempUsageDetail_20' ) start [2025-03-24 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749594', 'tblTempUsageDetail_20' ) end [2025-03-24 04:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 04:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 04:06:21] Production.INFO: ==11314== Releasing lock... [2025-03-24 04:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 04:06:21] Production.INFO: 30 MB #Memory Used# [2025-03-24 04:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 01:07:06 [end_date_ymd] => 2025-03-24 04:07:06 [RateCDR] => 1 ) [2025-03-24 04: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-03-24 01:07:06' and `end` < '2025-03-24 04: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-03-24 04:07:18] Production.INFO: count ==275 [2025-03-24 04:07:18] Production.ERROR: pbx CDR StartTime 2025-03-24 01:07:06 - End Time 2025-03-24 04:07:06 [2025-03-24 04:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749599', 'tblTempUsageDetail_20' ) start [2025-03-24 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749599', 'tblTempUsageDetail_20' ) end [2025-03-24 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749599', 'tblTempVendorCDR_20' ) start [2025-03-24 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749599', 'tblTempVendorCDR_20' ) end [2025-03-24 04:07:18] Production.INFO: ProcessCDR(1,14749599,1,1,2) [2025-03-24 04:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749599', 'tblTempUsageDetail_20' ) start [2025-03-24 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749599', 'tblTempUsageDetail_20' ) end [2025-03-24 04:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 04:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 04:07:21] Production.INFO: ==11428== Releasing lock... [2025-03-24 04:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 04:07:21] Production.INFO: 30 MB #Memory Used# [2025-03-24 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 01:08:05 [end_date_ymd] => 2025-03-24 04:08:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 01:08:05' and `end` < '2025-03-24 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-03-24 04:08:17] Production.INFO: count ==275 [2025-03-24 04:08:17] Production.ERROR: pbx CDR StartTime 2025-03-24 01:08:05 - End Time 2025-03-24 04:08:05 [2025-03-24 04:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749604', 'tblTempUsageDetail_20' ) start [2025-03-24 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749604', 'tblTempUsageDetail_20' ) end [2025-03-24 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749604', 'tblTempVendorCDR_20' ) start [2025-03-24 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749604', 'tblTempVendorCDR_20' ) end [2025-03-24 04:08:17] Production.INFO: ProcessCDR(1,14749604,1,1,2) [2025-03-24 04:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749604', 'tblTempUsageDetail_20' ) start [2025-03-24 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749604', 'tblTempUsageDetail_20' ) end [2025-03-24 04:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 04:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 04:08:21] Production.INFO: ==11548== Releasing lock... [2025-03-24 04:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 04:08:21] Production.INFO: 30 MB #Memory Used# [2025-03-24 04:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 01:09:06 [end_date_ymd] => 2025-03-24 04:09:06 [RateCDR] => 1 ) [2025-03-24 04:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 01:09:06' and `end` < '2025-03-24 04:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 04:09:18] Production.INFO: count ==275 [2025-03-24 04:09:18] Production.ERROR: pbx CDR StartTime 2025-03-24 01:09:06 - End Time 2025-03-24 04:09:06 [2025-03-24 04:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749609', 'tblTempUsageDetail_20' ) start [2025-03-24 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749609', 'tblTempUsageDetail_20' ) end [2025-03-24 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749609', 'tblTempVendorCDR_20' ) start [2025-03-24 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749609', 'tblTempVendorCDR_20' ) end [2025-03-24 04:09:18] Production.INFO: ProcessCDR(1,14749609,1,1,2) [2025-03-24 04:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749609', 'tblTempUsageDetail_20' ) start [2025-03-24 04:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749609', 'tblTempUsageDetail_20' ) end [2025-03-24 04:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 04:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 04:09:22] Production.INFO: ==11665== Releasing lock... [2025-03-24 04:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 04:09:22] Production.INFO: 30 MB #Memory Used# [2025-03-24 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 01:10:06 [end_date_ymd] => 2025-03-24 04:10:06 [RateCDR] => 1 ) [2025-03-24 04:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 01:10:06' and `end` < '2025-03-24 04:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 04:10:18] Production.INFO: count ==265 [2025-03-24 04:10:18] Production.ERROR: pbx CDR StartTime 2025-03-24 01:10:06 - End Time 2025-03-24 04:10:06 [2025-03-24 04:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749615', 'tblTempUsageDetail_20' ) start [2025-03-24 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749615', 'tblTempUsageDetail_20' ) end [2025-03-24 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749615', 'tblTempVendorCDR_20' ) start [2025-03-24 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749615', 'tblTempVendorCDR_20' ) end [2025-03-24 04:10:18] Production.INFO: ProcessCDR(1,14749615,1,1,2) [2025-03-24 04:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749615', 'tblTempUsageDetail_20' ) start [2025-03-24 04:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749615', 'tblTempUsageDetail_20' ) end [2025-03-24 04:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 04:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 04:10:21] Production.INFO: ==11827== Releasing lock... [2025-03-24 04:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 04:10:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-24 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 01:11:05 [end_date_ymd] => 2025-03-24 04:11:05 [RateCDR] => 1 ) [2025-03-24 04:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 01:11:05' and `end` < '2025-03-24 04:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 04:11:17] Production.INFO: count ==261 [2025-03-24 04:11:17] Production.ERROR: pbx CDR StartTime 2025-03-24 01:11:05 - End Time 2025-03-24 04:11:05 [2025-03-24 04:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749620', 'tblTempUsageDetail_20' ) start [2025-03-24 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749620', 'tblTempUsageDetail_20' ) end [2025-03-24 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749620', 'tblTempVendorCDR_20' ) start [2025-03-24 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749620', 'tblTempVendorCDR_20' ) end [2025-03-24 04:11:17] Production.INFO: ProcessCDR(1,14749620,1,1,2) [2025-03-24 04:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749620', 'tblTempUsageDetail_20' ) start [2025-03-24 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749620', 'tblTempUsageDetail_20' ) end [2025-03-24 04:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 04:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 04:11:21] Production.INFO: ==11944== Releasing lock... [2025-03-24 04:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 04:11:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-24 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 01:12:05 [end_date_ymd] => 2025-03-24 04:12:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 01:12:05' and `end` < '2025-03-24 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-03-24 04:12:17] Production.INFO: count ==261 [2025-03-24 04:12:17] Production.ERROR: pbx CDR StartTime 2025-03-24 01:12:05 - End Time 2025-03-24 04:12:05 [2025-03-24 04:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749625', 'tblTempUsageDetail_20' ) start [2025-03-24 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749625', 'tblTempUsageDetail_20' ) end [2025-03-24 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749625', 'tblTempVendorCDR_20' ) start [2025-03-24 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749625', 'tblTempVendorCDR_20' ) end [2025-03-24 04:12:17] Production.INFO: ProcessCDR(1,14749625,1,1,2) [2025-03-24 04:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749625', 'tblTempUsageDetail_20' ) start [2025-03-24 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749625', 'tblTempUsageDetail_20' ) end [2025-03-24 04:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 04:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 04:12:21] Production.INFO: ==12058== Releasing lock... [2025-03-24 04:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 04:12:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-24 04:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 01:13:06 [end_date_ymd] => 2025-03-24 04:13:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 01:13:06' and `end` < '2025-03-24 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-03-24 04:13:18] Production.INFO: count ==261 [2025-03-24 04:13:18] Production.ERROR: pbx CDR StartTime 2025-03-24 01:13:06 - End Time 2025-03-24 04:13:06 [2025-03-24 04:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749630', 'tblTempUsageDetail_20' ) start [2025-03-24 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749630', 'tblTempUsageDetail_20' ) end [2025-03-24 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749630', 'tblTempVendorCDR_20' ) start [2025-03-24 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749630', 'tblTempVendorCDR_20' ) end [2025-03-24 04:13:18] Production.INFO: ProcessCDR(1,14749630,1,1,2) [2025-03-24 04:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749630', 'tblTempUsageDetail_20' ) start [2025-03-24 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749630', 'tblTempUsageDetail_20' ) end [2025-03-24 04:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 04:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 04:13:21] Production.INFO: ==12173== Releasing lock... [2025-03-24 04:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 04:13:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-24 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 01:14:05 [end_date_ymd] => 2025-03-24 04:14:05 [RateCDR] => 1 ) [2025-03-24 04:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 01:14:05' and `end` < '2025-03-24 04:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 04:14:17] Production.INFO: count ==261 [2025-03-24 04:14:17] Production.ERROR: pbx CDR StartTime 2025-03-24 01:14:05 - End Time 2025-03-24 04:14:05 [2025-03-24 04:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749635', 'tblTempUsageDetail_20' ) start [2025-03-24 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749635', 'tblTempUsageDetail_20' ) end [2025-03-24 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749635', 'tblTempVendorCDR_20' ) start [2025-03-24 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749635', 'tblTempVendorCDR_20' ) end [2025-03-24 04:14:17] Production.INFO: ProcessCDR(1,14749635,1,1,2) [2025-03-24 04:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749635', 'tblTempUsageDetail_20' ) start [2025-03-24 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749635', 'tblTempUsageDetail_20' ) end [2025-03-24 04:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 04:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 04:14:21] Production.INFO: ==12285== Releasing lock... [2025-03-24 04:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 04:14:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-24 04:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 01:15:06 [end_date_ymd] => 2025-03-24 04:15:06 [RateCDR] => 1 ) [2025-03-24 04: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-03-24 01:15:06' and `end` < '2025-03-24 04: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-03-24 04:15:18] Production.INFO: count ==261 [2025-03-24 04:15:18] Production.ERROR: pbx CDR StartTime 2025-03-24 01:15:06 - End Time 2025-03-24 04:15:06 [2025-03-24 04:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749640', 'tblTempUsageDetail_20' ) start [2025-03-24 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749640', 'tblTempUsageDetail_20' ) end [2025-03-24 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749640', 'tblTempVendorCDR_20' ) start [2025-03-24 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749640', 'tblTempVendorCDR_20' ) end [2025-03-24 04:15:18] Production.INFO: ProcessCDR(1,14749640,1,1,2) [2025-03-24 04:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749640', 'tblTempUsageDetail_20' ) start [2025-03-24 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749640', 'tblTempUsageDetail_20' ) end [2025-03-24 04:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 04:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 04:15:21] Production.INFO: ==12400== Releasing lock... [2025-03-24 04:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 04:15:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-24 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 01:16:05 [end_date_ymd] => 2025-03-24 04:16:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 01:16:05' and `end` < '2025-03-24 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-03-24 04:16:17] Production.INFO: count ==261 [2025-03-24 04:16:17] Production.ERROR: pbx CDR StartTime 2025-03-24 01:16:05 - End Time 2025-03-24 04:16:05 [2025-03-24 04:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749645', 'tblTempUsageDetail_20' ) start [2025-03-24 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749645', 'tblTempUsageDetail_20' ) end [2025-03-24 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749645', 'tblTempVendorCDR_20' ) start [2025-03-24 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749645', 'tblTempVendorCDR_20' ) end [2025-03-24 04:16:17] Production.INFO: ProcessCDR(1,14749645,1,1,2) [2025-03-24 04:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749645', 'tblTempUsageDetail_20' ) start [2025-03-24 04:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749645', 'tblTempUsageDetail_20' ) end [2025-03-24 04:16:20] Production.ERROR: pbx prc_insertCDR start [2025-03-24 04:16:20] Production.ERROR: pbx prc_insertCDR end [2025-03-24 04:16:20] Production.INFO: ==12513== Releasing lock... [2025-03-24 04:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 04:16:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-24 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 01:17:05 [end_date_ymd] => 2025-03-24 04:17:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 01:17:05' and `end` < '2025-03-24 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-03-24 04:17:17] Production.INFO: count ==261 [2025-03-24 04:17:18] Production.ERROR: pbx CDR StartTime 2025-03-24 01:17:05 - End Time 2025-03-24 04:17:05 [2025-03-24 04:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749650', 'tblTempUsageDetail_20' ) start [2025-03-24 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749650', 'tblTempUsageDetail_20' ) end [2025-03-24 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749650', 'tblTempVendorCDR_20' ) start [2025-03-24 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749650', 'tblTempVendorCDR_20' ) end [2025-03-24 04:17:18] Production.INFO: ProcessCDR(1,14749650,1,1,2) [2025-03-24 04:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749650', 'tblTempUsageDetail_20' ) start [2025-03-24 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749650', 'tblTempUsageDetail_20' ) end [2025-03-24 04:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 04:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 04:17:21] Production.INFO: ==12632== Releasing lock... [2025-03-24 04:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 04:17:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-24 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 01:18:05 [end_date_ymd] => 2025-03-24 04:18:05 [RateCDR] => 1 ) [2025-03-24 04:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 01:18:05' and `end` < '2025-03-24 04:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 04:18:17] Production.INFO: count ==261 [2025-03-24 04:18:17] Production.ERROR: pbx CDR StartTime 2025-03-24 01:18:05 - End Time 2025-03-24 04:18:05 [2025-03-24 04:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749655', 'tblTempUsageDetail_20' ) start [2025-03-24 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749655', 'tblTempUsageDetail_20' ) end [2025-03-24 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749655', 'tblTempVendorCDR_20' ) start [2025-03-24 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749655', 'tblTempVendorCDR_20' ) end [2025-03-24 04:18:17] Production.INFO: ProcessCDR(1,14749655,1,1,2) [2025-03-24 04:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749655', 'tblTempUsageDetail_20' ) start [2025-03-24 04:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749655', 'tblTempUsageDetail_20' ) end [2025-03-24 04:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-24 04:18:20] Production.ERROR: pbx prc_insertCDR end [2025-03-24 04:18:20] Production.INFO: ==12745== Releasing lock... [2025-03-24 04:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 04:18:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-24 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 01:19:05 [end_date_ymd] => 2025-03-24 04:19:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 01:19:05' and `end` < '2025-03-24 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-03-24 04:19:18] Production.INFO: count ==258 [2025-03-24 04:19:18] Production.ERROR: pbx CDR StartTime 2025-03-24 01:19:05 - End Time 2025-03-24 04:19:05 [2025-03-24 04:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749660', 'tblTempUsageDetail_20' ) start [2025-03-24 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749660', 'tblTempUsageDetail_20' ) end [2025-03-24 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749660', 'tblTempVendorCDR_20' ) start [2025-03-24 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749660', 'tblTempVendorCDR_20' ) end [2025-03-24 04:19:18] Production.INFO: ProcessCDR(1,14749660,1,1,2) [2025-03-24 04:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749660', 'tblTempUsageDetail_20' ) start [2025-03-24 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749660', 'tblTempUsageDetail_20' ) end [2025-03-24 04:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 04:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 04:19:21] Production.INFO: ==12851== Releasing lock... [2025-03-24 04:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 04:19:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-24 04:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 01:20:06 [end_date_ymd] => 2025-03-24 04:20:06 [RateCDR] => 1 ) [2025-03-24 04:20: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-03-24 01:20:06' and `end` < '2025-03-24 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-03-24 04:20:19] Production.INFO: count ==246 [2025-03-24 04:20:19] Production.ERROR: pbx CDR StartTime 2025-03-24 01:20:06 - End Time 2025-03-24 04:20:06 [2025-03-24 04:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749666', 'tblTempUsageDetail_20' ) start [2025-03-24 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749666', 'tblTempUsageDetail_20' ) end [2025-03-24 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749666', 'tblTempVendorCDR_20' ) start [2025-03-24 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749666', 'tblTempVendorCDR_20' ) end [2025-03-24 04:20:19] Production.INFO: ProcessCDR(1,14749666,1,1,2) [2025-03-24 04:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749666', 'tblTempUsageDetail_20' ) start [2025-03-24 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749666', 'tblTempUsageDetail_20' ) end [2025-03-24 04:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 04:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 04:20:22] Production.INFO: ==12942== Releasing lock... [2025-03-24 04:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 04:20:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-24 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 01:21:05 [end_date_ymd] => 2025-03-24 04:21:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 01:21:05' and `end` < '2025-03-24 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-03-24 04:21:17] Production.INFO: count ==250 [2025-03-24 04:21:17] Production.ERROR: pbx CDR StartTime 2025-03-24 01:21:05 - End Time 2025-03-24 04:21:05 [2025-03-24 04:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749671', 'tblTempUsageDetail_20' ) start [2025-03-24 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749671', 'tblTempUsageDetail_20' ) end [2025-03-24 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749671', 'tblTempVendorCDR_20' ) start [2025-03-24 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749671', 'tblTempVendorCDR_20' ) end [2025-03-24 04:21:17] Production.INFO: ProcessCDR(1,14749671,1,1,2) [2025-03-24 04:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749671', 'tblTempUsageDetail_20' ) start [2025-03-24 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749671', 'tblTempUsageDetail_20' ) end [2025-03-24 04:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 04:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 04:21:21] Production.INFO: ==13028== Releasing lock... [2025-03-24 04:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 04:21:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-24 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 01:22:05 [end_date_ymd] => 2025-03-24 04:22:05 [RateCDR] => 1 ) [2025-03-24 04:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 01:22:05' and `end` < '2025-03-24 04:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 04:22:17] Production.INFO: count ==249 [2025-03-24 04:22:17] Production.ERROR: pbx CDR StartTime 2025-03-24 01:22:05 - End Time 2025-03-24 04:22:05 [2025-03-24 04:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749676', 'tblTempUsageDetail_20' ) start [2025-03-24 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749676', 'tblTempUsageDetail_20' ) end [2025-03-24 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749676', 'tblTempVendorCDR_20' ) start [2025-03-24 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749676', 'tblTempVendorCDR_20' ) end [2025-03-24 04:22:17] Production.INFO: ProcessCDR(1,14749676,1,1,2) [2025-03-24 04:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749676', 'tblTempUsageDetail_20' ) start [2025-03-24 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749676', 'tblTempUsageDetail_20' ) end [2025-03-24 04:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 04:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 04:22:21] Production.INFO: ==13115== Releasing lock... [2025-03-24 04:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 04:22:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-24 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 01:23:05 [end_date_ymd] => 2025-03-24 04:23:05 [RateCDR] => 1 ) [2025-03-24 04:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 01:23:05' and `end` < '2025-03-24 04:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 04:23:17] Production.INFO: count ==245 [2025-03-24 04:23:17] Production.ERROR: pbx CDR StartTime 2025-03-24 01:23:05 - End Time 2025-03-24 04:23:05 [2025-03-24 04:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749681', 'tblTempUsageDetail_20' ) start [2025-03-24 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749681', 'tblTempUsageDetail_20' ) end [2025-03-24 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749681', 'tblTempVendorCDR_20' ) start [2025-03-24 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749681', 'tblTempVendorCDR_20' ) end [2025-03-24 04:23:17] Production.INFO: ProcessCDR(1,14749681,1,1,2) [2025-03-24 04:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749681', 'tblTempUsageDetail_20' ) start [2025-03-24 04:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749681', 'tblTempUsageDetail_20' ) end [2025-03-24 04:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-24 04:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-24 04:23:20] Production.INFO: ==13199== Releasing lock... [2025-03-24 04:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 04:23:20] Production.INFO: 30 MB #Memory Used# [2025-03-24 04:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 01:24:06 [end_date_ymd] => 2025-03-24 04:24:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 01:24:06' and `end` < '2025-03-24 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-03-24 04:24:18] Production.INFO: count ==243 [2025-03-24 04:24:18] Production.ERROR: pbx CDR StartTime 2025-03-24 01:24:06 - End Time 2025-03-24 04:24:06 [2025-03-24 04:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749686', 'tblTempUsageDetail_20' ) start [2025-03-24 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749686', 'tblTempUsageDetail_20' ) end [2025-03-24 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749686', 'tblTempVendorCDR_20' ) start [2025-03-24 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749686', 'tblTempVendorCDR_20' ) end [2025-03-24 04:24:18] Production.INFO: ProcessCDR(1,14749686,1,1,2) [2025-03-24 04:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749686', 'tblTempUsageDetail_20' ) start [2025-03-24 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749686', 'tblTempUsageDetail_20' ) end [2025-03-24 04:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 04:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 04:24:21] Production.INFO: ==13288== Releasing lock... [2025-03-24 04:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 04:24:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-24 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 01:25:05 [end_date_ymd] => 2025-03-24 04:25:05 [RateCDR] => 1 ) [2025-03-24 04:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 01:25:05' and `end` < '2025-03-24 04:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 04:25:17] Production.INFO: count ==242 [2025-03-24 04:25:17] Production.ERROR: pbx CDR StartTime 2025-03-24 01:25:05 - End Time 2025-03-24 04:25:05 [2025-03-24 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749691', 'tblTempUsageDetail_20' ) start [2025-03-24 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749691', 'tblTempUsageDetail_20' ) end [2025-03-24 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749691', 'tblTempVendorCDR_20' ) start [2025-03-24 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749691', 'tblTempVendorCDR_20' ) end [2025-03-24 04:25:17] Production.INFO: ProcessCDR(1,14749691,1,1,2) [2025-03-24 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749691', 'tblTempUsageDetail_20' ) start [2025-03-24 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749691', 'tblTempUsageDetail_20' ) end [2025-03-24 04:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-24 04:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-24 04:25:20] Production.INFO: ==13374== Releasing lock... [2025-03-24 04:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 04:25:20] Production.INFO: 30 MB #Memory Used# [2025-03-24 04:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 01:26:06 [end_date_ymd] => 2025-03-24 04:26:06 [RateCDR] => 1 ) [2025-03-24 04: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-03-24 01:26:06' and `end` < '2025-03-24 04: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-03-24 04:26:18] Production.INFO: count ==241 [2025-03-24 04:26:18] Production.ERROR: pbx CDR StartTime 2025-03-24 01:26:06 - End Time 2025-03-24 04:26:06 [2025-03-24 04:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749696', 'tblTempUsageDetail_20' ) start [2025-03-24 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749696', 'tblTempUsageDetail_20' ) end [2025-03-24 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749696', 'tblTempVendorCDR_20' ) start [2025-03-24 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749696', 'tblTempVendorCDR_20' ) end [2025-03-24 04:26:18] Production.INFO: ProcessCDR(1,14749696,1,1,2) [2025-03-24 04:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749696', 'tblTempUsageDetail_20' ) start [2025-03-24 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749696', 'tblTempUsageDetail_20' ) end [2025-03-24 04:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 04:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 04:26:21] Production.INFO: ==13501== Releasing lock... [2025-03-24 04:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 04:26:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-24 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 01:27:05 [end_date_ymd] => 2025-03-24 04:27:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 01:27:05' and `end` < '2025-03-24 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-03-24 04:27:17] Production.INFO: count ==239 [2025-03-24 04:27:17] Production.ERROR: pbx CDR StartTime 2025-03-24 01:27:05 - End Time 2025-03-24 04:27:05 [2025-03-24 04:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749701', 'tblTempUsageDetail_20' ) start [2025-03-24 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749701', 'tblTempUsageDetail_20' ) end [2025-03-24 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749701', 'tblTempVendorCDR_20' ) start [2025-03-24 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749701', 'tblTempVendorCDR_20' ) end [2025-03-24 04:27:17] Production.INFO: ProcessCDR(1,14749701,1,1,2) [2025-03-24 04:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749701', 'tblTempUsageDetail_20' ) start [2025-03-24 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749701', 'tblTempUsageDetail_20' ) end [2025-03-24 04:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 04:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 04:27:21] Production.INFO: ==13584== Releasing lock... [2025-03-24 04:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 04:27:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-24 04:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 01:28:06 [end_date_ymd] => 2025-03-24 04:28:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 01:28:06' and `end` < '2025-03-24 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-03-24 04:28:18] Production.INFO: count ==239 [2025-03-24 04:28:18] Production.ERROR: pbx CDR StartTime 2025-03-24 01:28:06 - End Time 2025-03-24 04:28:06 [2025-03-24 04:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749706', 'tblTempUsageDetail_20' ) start [2025-03-24 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749706', 'tblTempUsageDetail_20' ) end [2025-03-24 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749706', 'tblTempVendorCDR_20' ) start [2025-03-24 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749706', 'tblTempVendorCDR_20' ) end [2025-03-24 04:28:18] Production.INFO: ProcessCDR(1,14749706,1,1,2) [2025-03-24 04:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749706', 'tblTempUsageDetail_20' ) start [2025-03-24 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749706', 'tblTempUsageDetail_20' ) end [2025-03-24 04:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 04:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 04:28:21] Production.INFO: ==13675== Releasing lock... [2025-03-24 04:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 04:28:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-24 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 01:29:05 [end_date_ymd] => 2025-03-24 04:29:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 01:29:05' and `end` < '2025-03-24 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-03-24 04:29:17] Production.INFO: count ==238 [2025-03-24 04:29:17] Production.ERROR: pbx CDR StartTime 2025-03-24 01:29:05 - End Time 2025-03-24 04:29:05 [2025-03-24 04:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749711', 'tblTempUsageDetail_20' ) start [2025-03-24 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749711', 'tblTempUsageDetail_20' ) end [2025-03-24 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749711', 'tblTempVendorCDR_20' ) start [2025-03-24 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749711', 'tblTempVendorCDR_20' ) end [2025-03-24 04:29:17] Production.INFO: ProcessCDR(1,14749711,1,1,2) [2025-03-24 04:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749711', 'tblTempUsageDetail_20' ) start [2025-03-24 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749711', 'tblTempUsageDetail_20' ) end [2025-03-24 04:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 04:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 04:29:21] Production.INFO: ==13765== Releasing lock... [2025-03-24 04:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 04:29:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-24 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 01:30:06 [end_date_ymd] => 2025-03-24 04:30:06 [RateCDR] => 1 ) [2025-03-24 04:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 01:30:06' and `end` < '2025-03-24 04:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 04:30:19] Production.INFO: count ==229 [2025-03-24 04:30:19] Production.ERROR: pbx CDR StartTime 2025-03-24 01:30:06 - End Time 2025-03-24 04:30:06 [2025-03-24 04:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749718', 'tblTempUsageDetail_20' ) start [2025-03-24 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749718', 'tblTempUsageDetail_20' ) end [2025-03-24 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749718', 'tblTempVendorCDR_20' ) start [2025-03-24 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749718', 'tblTempVendorCDR_20' ) end [2025-03-24 04:30:19] Production.INFO: ProcessCDR(1,14749718,1,1,2) [2025-03-24 04:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749718', 'tblTempUsageDetail_20' ) start [2025-03-24 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749718', 'tblTempUsageDetail_20' ) end [2025-03-24 04:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 04:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 04:30:22] Production.INFO: ==13857== Releasing lock... [2025-03-24 04:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 04:30:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-24 04:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 01:31:06 [end_date_ymd] => 2025-03-24 04:31:06 [RateCDR] => 1 ) [2025-03-24 04: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-03-24 01:31:06' and `end` < '2025-03-24 04: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-03-24 04:31:18] Production.INFO: count ==216 [2025-03-24 04:31:18] Production.ERROR: pbx CDR StartTime 2025-03-24 01:31:06 - End Time 2025-03-24 04:31:06 [2025-03-24 04:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749723', 'tblTempUsageDetail_20' ) start [2025-03-24 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749723', 'tblTempUsageDetail_20' ) end [2025-03-24 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749723', 'tblTempVendorCDR_20' ) start [2025-03-24 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749723', 'tblTempVendorCDR_20' ) end [2025-03-24 04:31:18] Production.INFO: ProcessCDR(1,14749723,1,1,2) [2025-03-24 04:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749723', 'tblTempUsageDetail_20' ) start [2025-03-24 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749723', 'tblTempUsageDetail_20' ) end [2025-03-24 04:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 04:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 04:31:21] Production.INFO: ==13963== Releasing lock... [2025-03-24 04:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 04:31:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-24 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 01:32:05 [end_date_ymd] => 2025-03-24 04:32:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 01:32:05' and `end` < '2025-03-24 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-03-24 04:32:17] Production.INFO: count ==216 [2025-03-24 04:32:17] Production.ERROR: pbx CDR StartTime 2025-03-24 01:32:05 - End Time 2025-03-24 04:32:05 [2025-03-24 04:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749728', 'tblTempUsageDetail_20' ) start [2025-03-24 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749728', 'tblTempUsageDetail_20' ) end [2025-03-24 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749728', 'tblTempVendorCDR_20' ) start [2025-03-24 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749728', 'tblTempVendorCDR_20' ) end [2025-03-24 04:32:17] Production.INFO: ProcessCDR(1,14749728,1,1,2) [2025-03-24 04:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749728', 'tblTempUsageDetail_20' ) start [2025-03-24 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749728', 'tblTempUsageDetail_20' ) end [2025-03-24 04:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 04:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 04:32:21] Production.INFO: ==14050== Releasing lock... [2025-03-24 04:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 04:32:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-24 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 01:33:05 [end_date_ymd] => 2025-03-24 04:33:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 01:33:05' and `end` < '2025-03-24 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-03-24 04:33:18] Production.INFO: count ==216 [2025-03-24 04:33:18] Production.ERROR: pbx CDR StartTime 2025-03-24 01:33:05 - End Time 2025-03-24 04:33:05 [2025-03-24 04:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749733', 'tblTempUsageDetail_20' ) start [2025-03-24 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749733', 'tblTempUsageDetail_20' ) end [2025-03-24 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749733', 'tblTempVendorCDR_20' ) start [2025-03-24 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749733', 'tblTempVendorCDR_20' ) end [2025-03-24 04:33:18] Production.INFO: ProcessCDR(1,14749733,1,1,2) [2025-03-24 04:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749733', 'tblTempUsageDetail_20' ) start [2025-03-24 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749733', 'tblTempUsageDetail_20' ) end [2025-03-24 04:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 04:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 04:33:21] Production.INFO: ==14137== Releasing lock... [2025-03-24 04:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 04:33:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-24 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 01:34:05 [end_date_ymd] => 2025-03-24 04:34:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 01:34:05' and `end` < '2025-03-24 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-03-24 04:34:17] Production.INFO: count ==215 [2025-03-24 04:34:17] Production.ERROR: pbx CDR StartTime 2025-03-24 01:34:05 - End Time 2025-03-24 04:34:05 [2025-03-24 04:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749738', 'tblTempUsageDetail_20' ) start [2025-03-24 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749738', 'tblTempUsageDetail_20' ) end [2025-03-24 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749738', 'tblTempVendorCDR_20' ) start [2025-03-24 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749738', 'tblTempVendorCDR_20' ) end [2025-03-24 04:34:17] Production.INFO: ProcessCDR(1,14749738,1,1,2) [2025-03-24 04:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749738', 'tblTempUsageDetail_20' ) start [2025-03-24 04:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749738', 'tblTempUsageDetail_20' ) end [2025-03-24 04:34:20] Production.ERROR: pbx prc_insertCDR start [2025-03-24 04:34:20] Production.ERROR: pbx prc_insertCDR end [2025-03-24 04:34:20] Production.INFO: ==14222== Releasing lock... [2025-03-24 04:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 04:34:20] Production.INFO: 30 MB #Memory Used# [2025-03-24 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 01:35:05 [end_date_ymd] => 2025-03-24 04:35:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 01:35:05' and `end` < '2025-03-24 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-03-24 04:35:18] Production.INFO: count ==219 [2025-03-24 04:35:18] Production.ERROR: pbx CDR StartTime 2025-03-24 01:35:05 - End Time 2025-03-24 04:35:05 [2025-03-24 04:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749743', 'tblTempUsageDetail_20' ) start [2025-03-24 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749743', 'tblTempUsageDetail_20' ) end [2025-03-24 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749743', 'tblTempVendorCDR_20' ) start [2025-03-24 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749743', 'tblTempVendorCDR_20' ) end [2025-03-24 04:35:18] Production.INFO: ProcessCDR(1,14749743,1,1,2) [2025-03-24 04:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749743', 'tblTempUsageDetail_20' ) start [2025-03-24 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749743', 'tblTempUsageDetail_20' ) end [2025-03-24 04:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 04:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 04:35:21] Production.INFO: ==14313== Releasing lock... [2025-03-24 04:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 04:35:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-24 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 01:36:05 [end_date_ymd] => 2025-03-24 04:36:05 [RateCDR] => 1 ) [2025-03-24 04:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 01:36:05' and `end` < '2025-03-24 04:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 04:36:17] Production.INFO: count ==223 [2025-03-24 04:36:17] Production.ERROR: pbx CDR StartTime 2025-03-24 01:36:05 - End Time 2025-03-24 04:36:05 [2025-03-24 04:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749748', 'tblTempUsageDetail_20' ) start [2025-03-24 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749748', 'tblTempUsageDetail_20' ) end [2025-03-24 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749748', 'tblTempVendorCDR_20' ) start [2025-03-24 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749748', 'tblTempVendorCDR_20' ) end [2025-03-24 04:36:17] Production.INFO: ProcessCDR(1,14749748,1,1,2) [2025-03-24 04:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749748', 'tblTempUsageDetail_20' ) start [2025-03-24 04:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749748', 'tblTempUsageDetail_20' ) end [2025-03-24 04:36:20] Production.ERROR: pbx prc_insertCDR start [2025-03-24 04:36:20] Production.ERROR: pbx prc_insertCDR end [2025-03-24 04:36:20] Production.INFO: ==14397== Releasing lock... [2025-03-24 04:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 04:36:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-24 04:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 01:37:06 [end_date_ymd] => 2025-03-24 04:37:06 [RateCDR] => 1 ) [2025-03-24 04: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-03-24 01:37:06' and `end` < '2025-03-24 04: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-03-24 04:37:18] Production.INFO: count ==223 [2025-03-24 04:37:18] Production.ERROR: pbx CDR StartTime 2025-03-24 01:37:06 - End Time 2025-03-24 04:37:06 [2025-03-24 04:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749753', 'tblTempUsageDetail_20' ) start [2025-03-24 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749753', 'tblTempUsageDetail_20' ) end [2025-03-24 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749753', 'tblTempVendorCDR_20' ) start [2025-03-24 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749753', 'tblTempVendorCDR_20' ) end [2025-03-24 04:37:18] Production.INFO: ProcessCDR(1,14749753,1,1,2) [2025-03-24 04:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749753', 'tblTempUsageDetail_20' ) start [2025-03-24 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749753', 'tblTempUsageDetail_20' ) end [2025-03-24 04:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 04:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 04:37:21] Production.INFO: ==14483== Releasing lock... [2025-03-24 04:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 04:37:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-24 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 01:38:05 [end_date_ymd] => 2025-03-24 04:38:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 01:38:05' and `end` < '2025-03-24 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-03-24 04:38:17] Production.INFO: count ==223 [2025-03-24 04:38:17] Production.ERROR: pbx CDR StartTime 2025-03-24 01:38:05 - End Time 2025-03-24 04:38:05 [2025-03-24 04:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749758', 'tblTempUsageDetail_20' ) start [2025-03-24 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749758', 'tblTempUsageDetail_20' ) end [2025-03-24 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749758', 'tblTempVendorCDR_20' ) start [2025-03-24 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749758', 'tblTempVendorCDR_20' ) end [2025-03-24 04:38:17] Production.INFO: ProcessCDR(1,14749758,1,1,2) [2025-03-24 04:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749758', 'tblTempUsageDetail_20' ) start [2025-03-24 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749758', 'tblTempUsageDetail_20' ) end [2025-03-24 04:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 04:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 04:38:21] Production.INFO: ==14571== Releasing lock... [2025-03-24 04:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 04:38:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-24 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 01:39:05 [end_date_ymd] => 2025-03-24 04:39:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 01:39:05' and `end` < '2025-03-24 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-03-24 04:39:17] Production.INFO: count ==223 [2025-03-24 04:39:17] Production.ERROR: pbx CDR StartTime 2025-03-24 01:39:05 - End Time 2025-03-24 04:39:05 [2025-03-24 04:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749763', 'tblTempUsageDetail_20' ) start [2025-03-24 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749763', 'tblTempUsageDetail_20' ) end [2025-03-24 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749763', 'tblTempVendorCDR_20' ) start [2025-03-24 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749763', 'tblTempVendorCDR_20' ) end [2025-03-24 04:39:17] Production.INFO: ProcessCDR(1,14749763,1,1,2) [2025-03-24 04:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749763', 'tblTempUsageDetail_20' ) start [2025-03-24 04:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749763', 'tblTempUsageDetail_20' ) end [2025-03-24 04:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-24 04:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-24 04:39:20] Production.INFO: ==14657== Releasing lock... [2025-03-24 04:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 04:39:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-24 04:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 01:40:07 [end_date_ymd] => 2025-03-24 04:40:07 [RateCDR] => 1 ) [2025-03-24 04: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-03-24 01:40:07' and `end` < '2025-03-24 04: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-03-24 04:40:19] Production.INFO: count ==223 [2025-03-24 04:40:19] Production.ERROR: pbx CDR StartTime 2025-03-24 01:40:07 - End Time 2025-03-24 04:40:07 [2025-03-24 04:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749769', 'tblTempUsageDetail_20' ) start [2025-03-24 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749769', 'tblTempUsageDetail_20' ) end [2025-03-24 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749769', 'tblTempVendorCDR_20' ) start [2025-03-24 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749769', 'tblTempVendorCDR_20' ) end [2025-03-24 04:40:19] Production.INFO: ProcessCDR(1,14749769,1,1,2) [2025-03-24 04:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749769', 'tblTempUsageDetail_20' ) start [2025-03-24 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749769', 'tblTempUsageDetail_20' ) end [2025-03-24 04:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 04:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 04:40:22] Production.INFO: ==14745== Releasing lock... [2025-03-24 04:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 04:40:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-24 04:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 01:41:04 [end_date_ymd] => 2025-03-24 04:41:04 [RateCDR] => 1 ) [2025-03-24 04:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 01:41:04' and `end` < '2025-03-24 04:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 04:41:17] Production.INFO: count ==223 [2025-03-24 04:41:17] Production.ERROR: pbx CDR StartTime 2025-03-24 01:41:04 - End Time 2025-03-24 04:41:04 [2025-03-24 04:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749774', 'tblTempUsageDetail_20' ) start [2025-03-24 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749774', 'tblTempUsageDetail_20' ) end [2025-03-24 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749774', 'tblTempVendorCDR_20' ) start [2025-03-24 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749774', 'tblTempVendorCDR_20' ) end [2025-03-24 04:41:17] Production.INFO: ProcessCDR(1,14749774,1,1,2) [2025-03-24 04:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749774', 'tblTempUsageDetail_20' ) start [2025-03-24 04:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749774', 'tblTempUsageDetail_20' ) end [2025-03-24 04:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-24 04:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-24 04:41:20] Production.INFO: ==14874== Releasing lock... [2025-03-24 04:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 04:41:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-24 04:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 01:42:06 [end_date_ymd] => 2025-03-24 04:42:06 [RateCDR] => 1 ) [2025-03-24 04:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 01:42:06' and `end` < '2025-03-24 04:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 04:42:18] Production.INFO: count ==223 [2025-03-24 04:42:18] Production.ERROR: pbx CDR StartTime 2025-03-24 01:42:06 - End Time 2025-03-24 04:42:06 [2025-03-24 04:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749779', 'tblTempUsageDetail_20' ) start [2025-03-24 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749779', 'tblTempUsageDetail_20' ) end [2025-03-24 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749779', 'tblTempVendorCDR_20' ) start [2025-03-24 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749779', 'tblTempVendorCDR_20' ) end [2025-03-24 04:42:18] Production.INFO: ProcessCDR(1,14749779,1,1,2) [2025-03-24 04:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749779', 'tblTempUsageDetail_20' ) start [2025-03-24 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749779', 'tblTempUsageDetail_20' ) end [2025-03-24 04:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 04:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 04:42:22] Production.INFO: ==14964== Releasing lock... [2025-03-24 04:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 04:42:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-24 04:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 01:43:06 [end_date_ymd] => 2025-03-24 04:43:06 [RateCDR] => 1 ) [2025-03-24 04: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-03-24 01:43:06' and `end` < '2025-03-24 04: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-03-24 04:43:18] Production.INFO: count ==226 [2025-03-24 04:43:18] Production.ERROR: pbx CDR StartTime 2025-03-24 01:43:06 - End Time 2025-03-24 04:43:06 [2025-03-24 04:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749784', 'tblTempUsageDetail_20' ) start [2025-03-24 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749784', 'tblTempUsageDetail_20' ) end [2025-03-24 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749784', 'tblTempVendorCDR_20' ) start [2025-03-24 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749784', 'tblTempVendorCDR_20' ) end [2025-03-24 04:43:18] Production.INFO: ProcessCDR(1,14749784,1,1,2) [2025-03-24 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749784', 'tblTempUsageDetail_20' ) start [2025-03-24 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749784', 'tblTempUsageDetail_20' ) end [2025-03-24 04:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 04:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 04:43:21] Production.INFO: ==15049== Releasing lock... [2025-03-24 04:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 04:43:21] Production.INFO: 30 MB #Memory Used# [2025-03-24 04:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 01:44:06 [end_date_ymd] => 2025-03-24 04:44:06 [RateCDR] => 1 ) [2025-03-24 04: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-03-24 01:44:06' and `end` < '2025-03-24 04: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-03-24 04:44:18] Production.INFO: count ==230 [2025-03-24 04:44:18] Production.ERROR: pbx CDR StartTime 2025-03-24 01:44:06 - End Time 2025-03-24 04:44:06 [2025-03-24 04:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749789', 'tblTempUsageDetail_20' ) start [2025-03-24 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749789', 'tblTempUsageDetail_20' ) end [2025-03-24 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749789', 'tblTempVendorCDR_20' ) start [2025-03-24 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749789', 'tblTempVendorCDR_20' ) end [2025-03-24 04:44:18] Production.INFO: ProcessCDR(1,14749789,1,1,2) [2025-03-24 04:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749789', 'tblTempUsageDetail_20' ) start [2025-03-24 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749789', 'tblTempUsageDetail_20' ) end [2025-03-24 04:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 04:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 04:44:21] Production.INFO: ==15139== Releasing lock... [2025-03-24 04:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 04:44:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-24 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 01:45:05 [end_date_ymd] => 2025-03-24 04:45:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 01:45:05' and `end` < '2025-03-24 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-03-24 04:45:17] Production.INFO: count ==230 [2025-03-24 04:45:17] Production.ERROR: pbx CDR StartTime 2025-03-24 01:45:05 - End Time 2025-03-24 04:45:05 [2025-03-24 04:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749794', 'tblTempUsageDetail_20' ) start [2025-03-24 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749794', 'tblTempUsageDetail_20' ) end [2025-03-24 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749794', 'tblTempVendorCDR_20' ) start [2025-03-24 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749794', 'tblTempVendorCDR_20' ) end [2025-03-24 04:45:17] Production.INFO: ProcessCDR(1,14749794,1,1,2) [2025-03-24 04:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749794', 'tblTempUsageDetail_20' ) start [2025-03-24 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749794', 'tblTempUsageDetail_20' ) end [2025-03-24 04:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 04:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 04:45:21] Production.INFO: ==15230== Releasing lock... [2025-03-24 04:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 04:45:21] Production.INFO: 30 MB #Memory Used# [2025-03-24 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 01:46:05 [end_date_ymd] => 2025-03-24 04:46:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 01:46:05' and `end` < '2025-03-24 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-03-24 04:46:19] Production.INFO: count ==234 [2025-03-24 04:46:19] Production.ERROR: pbx CDR StartTime 2025-03-24 01:46:05 - End Time 2025-03-24 04:46:05 [2025-03-24 04:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749799', 'tblTempUsageDetail_20' ) start [2025-03-24 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749799', 'tblTempUsageDetail_20' ) end [2025-03-24 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749799', 'tblTempVendorCDR_20' ) start [2025-03-24 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749799', 'tblTempVendorCDR_20' ) end [2025-03-24 04:46:19] Production.INFO: ProcessCDR(1,14749799,1,1,2) [2025-03-24 04:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749799', 'tblTempUsageDetail_20' ) start [2025-03-24 04:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749799', 'tblTempUsageDetail_20' ) end [2025-03-24 04:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 04:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 04:46:22] Production.INFO: ==15316== Releasing lock... [2025-03-24 04:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 04:46:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-24 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 01:47:05 [end_date_ymd] => 2025-03-24 04:47:05 [RateCDR] => 1 ) [2025-03-24 04:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 01:47:05' and `end` < '2025-03-24 04:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 04:47:19] Production.INFO: count ==234 [2025-03-24 04:47:19] Production.ERROR: pbx CDR StartTime 2025-03-24 01:47:05 - End Time 2025-03-24 04:47:05 [2025-03-24 04:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749804', 'tblTempUsageDetail_20' ) start [2025-03-24 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749804', 'tblTempUsageDetail_20' ) end [2025-03-24 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749804', 'tblTempVendorCDR_20' ) start [2025-03-24 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749804', 'tblTempVendorCDR_20' ) end [2025-03-24 04:47:19] Production.INFO: ProcessCDR(1,14749804,1,1,2) [2025-03-24 04:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749804', 'tblTempUsageDetail_20' ) start [2025-03-24 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749804', 'tblTempUsageDetail_20' ) end [2025-03-24 04:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 04:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 04:47:22] Production.INFO: ==15404== Releasing lock... [2025-03-24 04:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 04:47:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-24 04:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 01:48:06 [end_date_ymd] => 2025-03-24 04:48:06 [RateCDR] => 1 ) [2025-03-24 04: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-03-24 01:48:06' and `end` < '2025-03-24 04: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-03-24 04:48:18] Production.INFO: count ==234 [2025-03-24 04:48:18] Production.ERROR: pbx CDR StartTime 2025-03-24 01:48:06 - End Time 2025-03-24 04:48:06 [2025-03-24 04:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749809', 'tblTempUsageDetail_20' ) start [2025-03-24 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749809', 'tblTempUsageDetail_20' ) end [2025-03-24 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749809', 'tblTempVendorCDR_20' ) start [2025-03-24 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749809', 'tblTempVendorCDR_20' ) end [2025-03-24 04:48:19] Production.INFO: ProcessCDR(1,14749809,1,1,2) [2025-03-24 04:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749809', 'tblTempUsageDetail_20' ) start [2025-03-24 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749809', 'tblTempUsageDetail_20' ) end [2025-03-24 04:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 04:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 04:48:22] Production.INFO: ==15500== Releasing lock... [2025-03-24 04:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 04:48:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-24 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 01:49:05 [end_date_ymd] => 2025-03-24 04:49:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 01:49:05' and `end` < '2025-03-24 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-03-24 04:49:18] Production.INFO: count ==234 [2025-03-24 04:49:18] Production.ERROR: pbx CDR StartTime 2025-03-24 01:49:05 - End Time 2025-03-24 04:49:05 [2025-03-24 04:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749814', 'tblTempUsageDetail_20' ) start [2025-03-24 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749814', 'tblTempUsageDetail_20' ) end [2025-03-24 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749814', 'tblTempVendorCDR_20' ) start [2025-03-24 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749814', 'tblTempVendorCDR_20' ) end [2025-03-24 04:49:18] Production.INFO: ProcessCDR(1,14749814,1,1,2) [2025-03-24 04:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749814', 'tblTempUsageDetail_20' ) start [2025-03-24 04:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749814', 'tblTempUsageDetail_20' ) end [2025-03-24 04:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 04:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 04:49:21] Production.INFO: ==15590== Releasing lock... [2025-03-24 04:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 04:49:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-24 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 01:50:06 [end_date_ymd] => 2025-03-24 04:50:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 01:50:06' and `end` < '2025-03-24 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-03-24 04:50:18] Production.INFO: count ==224 [2025-03-24 04:50:19] Production.ERROR: pbx CDR StartTime 2025-03-24 01:50:06 - End Time 2025-03-24 04:50:06 [2025-03-24 04:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749820', 'tblTempUsageDetail_20' ) start [2025-03-24 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749820', 'tblTempUsageDetail_20' ) end [2025-03-24 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749820', 'tblTempVendorCDR_20' ) start [2025-03-24 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749820', 'tblTempVendorCDR_20' ) end [2025-03-24 04:50:19] Production.INFO: ProcessCDR(1,14749820,1,1,2) [2025-03-24 04:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749820', 'tblTempUsageDetail_20' ) start [2025-03-24 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749820', 'tblTempUsageDetail_20' ) end [2025-03-24 04:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 04:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 04:50:22] Production.INFO: ==15680== Releasing lock... [2025-03-24 04:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 04:50:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-24 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 01:51:05 [end_date_ymd] => 2025-03-24 04:51:05 [RateCDR] => 1 ) [2025-03-24 04:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 01:51:05' and `end` < '2025-03-24 04:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 04:51:17] Production.INFO: count ==224 [2025-03-24 04:51:17] Production.ERROR: pbx CDR StartTime 2025-03-24 01:51:05 - End Time 2025-03-24 04:51:05 [2025-03-24 04:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 04:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749825', 'tblTempUsageDetail_20' ) start [2025-03-24 04:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749825', 'tblTempUsageDetail_20' ) end [2025-03-24 04:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749825', 'tblTempVendorCDR_20' ) start [2025-03-24 04:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749825', 'tblTempVendorCDR_20' ) end [2025-03-24 04:51:17] Production.INFO: ProcessCDR(1,14749825,1,1,2) [2025-03-24 04:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749825', 'tblTempUsageDetail_20' ) start [2025-03-24 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749825', 'tblTempUsageDetail_20' ) end [2025-03-24 04:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 04:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 04:51:21] Production.INFO: ==15775== Releasing lock... [2025-03-24 04:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 04:51:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-24 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 01:52:05 [end_date_ymd] => 2025-03-24 04:52:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 01:52:05' and `end` < '2025-03-24 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-03-24 04:52:19] Production.INFO: count ==224 [2025-03-24 04:52:19] Production.ERROR: pbx CDR StartTime 2025-03-24 01:52:05 - End Time 2025-03-24 04:52:05 [2025-03-24 04:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749830', 'tblTempUsageDetail_20' ) start [2025-03-24 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749830', 'tblTempUsageDetail_20' ) end [2025-03-24 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749830', 'tblTempVendorCDR_20' ) start [2025-03-24 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749830', 'tblTempVendorCDR_20' ) end [2025-03-24 04:52:19] Production.INFO: ProcessCDR(1,14749830,1,1,2) [2025-03-24 04:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749830', 'tblTempUsageDetail_20' ) start [2025-03-24 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749830', 'tblTempUsageDetail_20' ) end [2025-03-24 04:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 04:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 04:52:22] Production.INFO: ==15865== Releasing lock... [2025-03-24 04:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 04:52:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-24 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 01:53:05 [end_date_ymd] => 2025-03-24 04:53:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 01:53:05' and `end` < '2025-03-24 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-03-24 04:53:18] Production.INFO: count ==224 [2025-03-24 04:53:18] Production.ERROR: pbx CDR StartTime 2025-03-24 01:53:05 - End Time 2025-03-24 04:53:05 [2025-03-24 04:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749835', 'tblTempUsageDetail_20' ) start [2025-03-24 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749835', 'tblTempUsageDetail_20' ) end [2025-03-24 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749835', 'tblTempVendorCDR_20' ) start [2025-03-24 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749835', 'tblTempVendorCDR_20' ) end [2025-03-24 04:53:18] Production.INFO: ProcessCDR(1,14749835,1,1,2) [2025-03-24 04:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749835', 'tblTempUsageDetail_20' ) start [2025-03-24 04:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749835', 'tblTempUsageDetail_20' ) end [2025-03-24 04:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 04:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 04:53:22] Production.INFO: ==15970== Releasing lock... [2025-03-24 04:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 04:53:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-24 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 01:54:05 [end_date_ymd] => 2025-03-24 04:54:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 01:54:05' and `end` < '2025-03-24 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-03-24 04:54:17] Production.INFO: count ==223 [2025-03-24 04:54:17] Production.ERROR: pbx CDR StartTime 2025-03-24 01:54:05 - End Time 2025-03-24 04:54:05 [2025-03-24 04:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 04:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749840', 'tblTempUsageDetail_20' ) start [2025-03-24 04:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749840', 'tblTempUsageDetail_20' ) end [2025-03-24 04:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749840', 'tblTempVendorCDR_20' ) start [2025-03-24 04:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749840', 'tblTempVendorCDR_20' ) end [2025-03-24 04:54:17] Production.INFO: ProcessCDR(1,14749840,1,1,2) [2025-03-24 04:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749840', 'tblTempUsageDetail_20' ) start [2025-03-24 04:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749840', 'tblTempUsageDetail_20' ) end [2025-03-24 04:54:20] Production.ERROR: pbx prc_insertCDR start [2025-03-24 04:54:20] Production.ERROR: pbx prc_insertCDR end [2025-03-24 04:54:20] Production.INFO: ==16059== Releasing lock... [2025-03-24 04:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 04:54:20] Production.INFO: 30 MB #Memory Used# [2025-03-24 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 01:55:05 [end_date_ymd] => 2025-03-24 04:55:05 [RateCDR] => 1 ) [2025-03-24 04:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 01:55:05' and `end` < '2025-03-24 04:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 04:55:19] Production.INFO: count ==221 [2025-03-24 04:55:19] Production.ERROR: pbx CDR StartTime 2025-03-24 01:55:05 - End Time 2025-03-24 04:55:05 [2025-03-24 04:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749845', 'tblTempUsageDetail_20' ) start [2025-03-24 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749845', 'tblTempUsageDetail_20' ) end [2025-03-24 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749845', 'tblTempVendorCDR_20' ) start [2025-03-24 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749845', 'tblTempVendorCDR_20' ) end [2025-03-24 04:55:19] Production.INFO: ProcessCDR(1,14749845,1,1,2) [2025-03-24 04:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749845', 'tblTempUsageDetail_20' ) start [2025-03-24 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749845', 'tblTempUsageDetail_20' ) end [2025-03-24 04:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 04:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 04:55:22] Production.INFO: ==16153== Releasing lock... [2025-03-24 04:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 04:55:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-24 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 01:56:05 [end_date_ymd] => 2025-03-24 04:56:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 01:56:05' and `end` < '2025-03-24 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-03-24 04:56:17] Production.INFO: count ==220 [2025-03-24 04:56:17] Production.ERROR: pbx CDR StartTime 2025-03-24 01:56:05 - End Time 2025-03-24 04:56:05 [2025-03-24 04:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749850', 'tblTempUsageDetail_20' ) start [2025-03-24 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749850', 'tblTempUsageDetail_20' ) end [2025-03-24 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749850', 'tblTempVendorCDR_20' ) start [2025-03-24 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749850', 'tblTempVendorCDR_20' ) end [2025-03-24 04:56:17] Production.INFO: ProcessCDR(1,14749850,1,1,2) [2025-03-24 04:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749850', 'tblTempUsageDetail_20' ) start [2025-03-24 04:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749850', 'tblTempUsageDetail_20' ) end [2025-03-24 04:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 04:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 04:56:21] Production.INFO: ==16238== Releasing lock... [2025-03-24 04:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 04:56:21] Production.INFO: 30 MB #Memory Used# [2025-03-24 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 01:57:05 [end_date_ymd] => 2025-03-24 04:57:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 01:57:05' and `end` < '2025-03-24 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-03-24 04:57:18] Production.INFO: count ==220 [2025-03-24 04:57:18] Production.ERROR: pbx CDR StartTime 2025-03-24 01:57:05 - End Time 2025-03-24 04:57:05 [2025-03-24 04:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749855', 'tblTempUsageDetail_20' ) start [2025-03-24 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749855', 'tblTempUsageDetail_20' ) end [2025-03-24 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749855', 'tblTempVendorCDR_20' ) start [2025-03-24 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749855', 'tblTempVendorCDR_20' ) end [2025-03-24 04:57:18] Production.INFO: ProcessCDR(1,14749855,1,1,2) [2025-03-24 04:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749855', 'tblTempUsageDetail_20' ) start [2025-03-24 04:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749855', 'tblTempUsageDetail_20' ) end [2025-03-24 04:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 04:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 04:57:22] Production.INFO: ==16369== Releasing lock... [2025-03-24 04:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 04:57:22] Production.INFO: 30 MB #Memory Used# [2025-03-24 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 01:58:05 [end_date_ymd] => 2025-03-24 04:58:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 01:58:05' and `end` < '2025-03-24 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-03-24 04:58:18] Production.INFO: count ==220 [2025-03-24 04:58:18] Production.ERROR: pbx CDR StartTime 2025-03-24 01:58:05 - End Time 2025-03-24 04:58:05 [2025-03-24 04:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749860', 'tblTempUsageDetail_20' ) start [2025-03-24 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749860', 'tblTempUsageDetail_20' ) end [2025-03-24 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749860', 'tblTempVendorCDR_20' ) start [2025-03-24 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749860', 'tblTempVendorCDR_20' ) end [2025-03-24 04:58:18] Production.INFO: ProcessCDR(1,14749860,1,1,2) [2025-03-24 04:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749860', 'tblTempUsageDetail_20' ) start [2025-03-24 04:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749860', 'tblTempUsageDetail_20' ) end [2025-03-24 04:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 04:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 04:58:21] Production.INFO: ==16459== Releasing lock... [2025-03-24 04:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 04:58:21] Production.INFO: 30 MB #Memory Used# [2025-03-24 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 01:59:05 [end_date_ymd] => 2025-03-24 04:59:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 01:59:05' and `end` < '2025-03-24 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-03-24 04:59:18] Production.INFO: count ==224 [2025-03-24 04:59:18] Production.ERROR: pbx CDR StartTime 2025-03-24 01:59:05 - End Time 2025-03-24 04:59:05 [2025-03-24 04:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749865', 'tblTempUsageDetail_20' ) start [2025-03-24 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749865', 'tblTempUsageDetail_20' ) end [2025-03-24 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749865', 'tblTempVendorCDR_20' ) start [2025-03-24 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749865', 'tblTempVendorCDR_20' ) end [2025-03-24 04:59:18] Production.INFO: ProcessCDR(1,14749865,1,1,2) [2025-03-24 04:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 04:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749865', 'tblTempUsageDetail_20' ) start [2025-03-24 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749865', 'tblTempUsageDetail_20' ) end [2025-03-24 04:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 04:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 04:59:21] Production.INFO: ==16549== Releasing lock... [2025-03-24 04:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 04:59:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-24 05:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 02:00:05 [end_date_ymd] => 2025-03-24 05:00:05 [RateCDR] => 1 ) [2025-03-24 05:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 02:00:05' and `end` < '2025-03-24 05:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 05:00:18] Production.INFO: count ==218 [2025-03-24 05:00:18] Production.ERROR: pbx CDR StartTime 2025-03-24 02:00:05 - End Time 2025-03-24 05:00:05 [2025-03-24 05:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749870', 'tblTempUsageDetail_20' ) start [2025-03-24 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749870', 'tblTempUsageDetail_20' ) end [2025-03-24 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749870', 'tblTempVendorCDR_20' ) start [2025-03-24 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749870', 'tblTempVendorCDR_20' ) end [2025-03-24 05:00:18] Production.INFO: ProcessCDR(1,14749870,1,1,2) [2025-03-24 05:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749870', 'tblTempUsageDetail_20' ) start [2025-03-24 05:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749870', 'tblTempUsageDetail_20' ) end [2025-03-24 05:00:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 05:00:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 05:00:21] Production.INFO: ==16646== Releasing lock... [2025-03-24 05:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 05:00:21] Production.INFO: 30 MB #Memory Used# [2025-03-24 05:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 02:01:06 [end_date_ymd] => 2025-03-24 05:01:06 [RateCDR] => 1 ) [2025-03-24 05:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 02:01:06' and `end` < '2025-03-24 05:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 05:01:21] Production.INFO: count ==216 [2025-03-24 05:01:21] Production.ERROR: pbx CDR StartTime 2025-03-24 02:01:06 - End Time 2025-03-24 05:01:06 [2025-03-24 05:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 05:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749876', 'tblTempUsageDetail_20' ) start [2025-03-24 05:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749876', 'tblTempUsageDetail_20' ) end [2025-03-24 05:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749876', 'tblTempVendorCDR_20' ) start [2025-03-24 05:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749876', 'tblTempVendorCDR_20' ) end [2025-03-24 05:01:21] Production.INFO: ProcessCDR(1,14749876,1,1,2) [2025-03-24 05:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749876', 'tblTempUsageDetail_20' ) start [2025-03-24 05:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749876', 'tblTempUsageDetail_20' ) end [2025-03-24 05:01:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 05:01:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 05:01:24] Production.INFO: ==16756== Releasing lock... [2025-03-24 05:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 05:01:24] Production.INFO: 30 MB #Memory Used# [2025-03-24 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 02:02:05 [end_date_ymd] => 2025-03-24 05:02:05 [RateCDR] => 1 ) [2025-03-24 05:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 02:02:05' and `end` < '2025-03-24 05:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 05:02:19] Production.INFO: count ==216 [2025-03-24 05:02:19] Production.ERROR: pbx CDR StartTime 2025-03-24 02:02:05 - End Time 2025-03-24 05:02:05 [2025-03-24 05:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749881', 'tblTempUsageDetail_20' ) start [2025-03-24 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749881', 'tblTempUsageDetail_20' ) end [2025-03-24 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749881', 'tblTempVendorCDR_20' ) start [2025-03-24 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749881', 'tblTempVendorCDR_20' ) end [2025-03-24 05:02:19] Production.INFO: ProcessCDR(1,14749881,1,1,2) [2025-03-24 05:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749881', 'tblTempUsageDetail_20' ) start [2025-03-24 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749881', 'tblTempUsageDetail_20' ) end [2025-03-24 05:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 05:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 05:02:22] Production.INFO: ==16853== Releasing lock... [2025-03-24 05:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 05:02:22] Production.INFO: 30 MB #Memory Used# [2025-03-24 05:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 02:03:06 [end_date_ymd] => 2025-03-24 05:03:06 [RateCDR] => 1 ) [2025-03-24 05:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 02:03:06' and `end` < '2025-03-24 05:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 05:03:18] Production.INFO: count ==216 [2025-03-24 05:03:18] Production.ERROR: pbx CDR StartTime 2025-03-24 02:03:06 - End Time 2025-03-24 05:03:06 [2025-03-24 05:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749886', 'tblTempUsageDetail_20' ) start [2025-03-24 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749886', 'tblTempUsageDetail_20' ) end [2025-03-24 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749886', 'tblTempVendorCDR_20' ) start [2025-03-24 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749886', 'tblTempVendorCDR_20' ) end [2025-03-24 05:03:18] Production.INFO: ProcessCDR(1,14749886,1,1,2) [2025-03-24 05:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749886', 'tblTempUsageDetail_20' ) start [2025-03-24 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749886', 'tblTempUsageDetail_20' ) end [2025-03-24 05:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 05:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 05:03:21] Production.INFO: ==16948== Releasing lock... [2025-03-24 05:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 05:03:21] Production.INFO: 30 MB #Memory Used# [2025-03-24 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 02:04:05 [end_date_ymd] => 2025-03-24 05:04:05 [RateCDR] => 1 ) [2025-03-24 05:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 02:04:05' and `end` < '2025-03-24 05:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 05:04:17] Production.INFO: count ==216 [2025-03-24 05:04:17] Production.ERROR: pbx CDR StartTime 2025-03-24 02:04:05 - End Time 2025-03-24 05:04:05 [2025-03-24 05:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749891', 'tblTempUsageDetail_20' ) start [2025-03-24 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749891', 'tblTempUsageDetail_20' ) end [2025-03-24 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749891', 'tblTempVendorCDR_20' ) start [2025-03-24 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749891', 'tblTempVendorCDR_20' ) end [2025-03-24 05:04:17] Production.INFO: ProcessCDR(1,14749891,1,1,2) [2025-03-24 05:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749891', 'tblTempUsageDetail_20' ) start [2025-03-24 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749891', 'tblTempUsageDetail_20' ) end [2025-03-24 05:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 05:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 05:04:21] Production.INFO: ==17046== Releasing lock... [2025-03-24 05:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 05:04:21] Production.INFO: 30 MB #Memory Used# [2025-03-24 05:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 02:05:06 [end_date_ymd] => 2025-03-24 05:05:06 [RateCDR] => 1 ) [2025-03-24 05: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-03-24 02:05:06' and `end` < '2025-03-24 05: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-03-24 05:05:18] Production.INFO: count ==216 [2025-03-24 05:05:18] Production.ERROR: pbx CDR StartTime 2025-03-24 02:05:06 - End Time 2025-03-24 05:05:06 [2025-03-24 05:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749896', 'tblTempUsageDetail_20' ) start [2025-03-24 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749896', 'tblTempUsageDetail_20' ) end [2025-03-24 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749896', 'tblTempVendorCDR_20' ) start [2025-03-24 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749896', 'tblTempVendorCDR_20' ) end [2025-03-24 05:05:18] Production.INFO: ProcessCDR(1,14749896,1,1,2) [2025-03-24 05:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749896', 'tblTempUsageDetail_20' ) start [2025-03-24 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749896', 'tblTempUsageDetail_20' ) end [2025-03-24 05:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 05:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 05:05:21] Production.INFO: ==17145== Releasing lock... [2025-03-24 05:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 05:05:21] Production.INFO: 30 MB #Memory Used# [2025-03-24 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 02:06:05 [end_date_ymd] => 2025-03-24 05:06:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 02:06:05' and `end` < '2025-03-24 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-03-24 05:06:18] Production.INFO: count ==220 [2025-03-24 05:06:18] Production.ERROR: pbx CDR StartTime 2025-03-24 02:06:05 - End Time 2025-03-24 05:06:05 [2025-03-24 05:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749901', 'tblTempUsageDetail_20' ) start [2025-03-24 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749901', 'tblTempUsageDetail_20' ) end [2025-03-24 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749901', 'tblTempVendorCDR_20' ) start [2025-03-24 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749901', 'tblTempVendorCDR_20' ) end [2025-03-24 05:06:18] Production.INFO: ProcessCDR(1,14749901,1,1,2) [2025-03-24 05:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749901', 'tblTempUsageDetail_20' ) start [2025-03-24 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749901', 'tblTempUsageDetail_20' ) end [2025-03-24 05:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 05:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 05:06:21] Production.INFO: ==17233== Releasing lock... [2025-03-24 05:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 05:06:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-24 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 02:07:05 [end_date_ymd] => 2025-03-24 05:07:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 02:07:05' and `end` < '2025-03-24 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-03-24 05:07:18] Production.INFO: count ==220 [2025-03-24 05:07:18] Production.ERROR: pbx CDR StartTime 2025-03-24 02:07:05 - End Time 2025-03-24 05:07:05 [2025-03-24 05:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749906', 'tblTempUsageDetail_20' ) start [2025-03-24 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749906', 'tblTempUsageDetail_20' ) end [2025-03-24 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749906', 'tblTempVendorCDR_20' ) start [2025-03-24 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749906', 'tblTempVendorCDR_20' ) end [2025-03-24 05:07:18] Production.INFO: ProcessCDR(1,14749906,1,1,2) [2025-03-24 05:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749906', 'tblTempUsageDetail_20' ) start [2025-03-24 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749906', 'tblTempUsageDetail_20' ) end [2025-03-24 05:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 05:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 05:07:21] Production.INFO: ==17331== Releasing lock... [2025-03-24 05:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 05:07:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-24 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 02:08:05 [end_date_ymd] => 2025-03-24 05:08:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 02:08:05' and `end` < '2025-03-24 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-03-24 05:08:17] Production.INFO: count ==220 [2025-03-24 05:08:17] Production.ERROR: pbx CDR StartTime 2025-03-24 02:08:05 - End Time 2025-03-24 05:08:05 [2025-03-24 05:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749911', 'tblTempUsageDetail_20' ) start [2025-03-24 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749911', 'tblTempUsageDetail_20' ) end [2025-03-24 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749911', 'tblTempVendorCDR_20' ) start [2025-03-24 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749911', 'tblTempVendorCDR_20' ) end [2025-03-24 05:08:17] Production.INFO: ProcessCDR(1,14749911,1,1,2) [2025-03-24 05:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749911', 'tblTempUsageDetail_20' ) start [2025-03-24 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749911', 'tblTempUsageDetail_20' ) end [2025-03-24 05:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 05:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 05:08:21] Production.INFO: ==17434== Releasing lock... [2025-03-24 05:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 05:08:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-24 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 02:09:05 [end_date_ymd] => 2025-03-24 05:09:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 02:09:05' and `end` < '2025-03-24 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-03-24 05:09:17] Production.INFO: count ==220 [2025-03-24 05:09:17] Production.ERROR: pbx CDR StartTime 2025-03-24 02:09:05 - End Time 2025-03-24 05:09:05 [2025-03-24 05:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749916', 'tblTempUsageDetail_20' ) start [2025-03-24 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749916', 'tblTempUsageDetail_20' ) end [2025-03-24 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749916', 'tblTempVendorCDR_20' ) start [2025-03-24 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749916', 'tblTempVendorCDR_20' ) end [2025-03-24 05:09:17] Production.INFO: ProcessCDR(1,14749916,1,1,2) [2025-03-24 05:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749916', 'tblTempUsageDetail_20' ) start [2025-03-24 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749916', 'tblTempUsageDetail_20' ) end [2025-03-24 05:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 05:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 05:09:21] Production.INFO: ==17528== Releasing lock... [2025-03-24 05:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 05:09:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-24 05:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 02:10:05 [end_date_ymd] => 2025-03-24 05:10:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 02:10:05' and `end` < '2025-03-24 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-03-24 05:10:17] Production.INFO: count ==212 [2025-03-24 05:10:17] Production.ERROR: pbx CDR StartTime 2025-03-24 02:10:05 - End Time 2025-03-24 05:10:05 [2025-03-24 05:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 05:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749921', 'tblTempUsageDetail_20' ) start [2025-03-24 05:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749921', 'tblTempUsageDetail_20' ) end [2025-03-24 05:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749921', 'tblTempVendorCDR_20' ) start [2025-03-24 05:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749921', 'tblTempVendorCDR_20' ) end [2025-03-24 05:10:17] Production.INFO: ProcessCDR(1,14749921,1,1,2) [2025-03-24 05:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:10:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749921', 'tblTempUsageDetail_20' ) start [2025-03-24 05:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749921', 'tblTempUsageDetail_20' ) end [2025-03-24 05:10:20] Production.ERROR: pbx prc_insertCDR start [2025-03-24 05:10:20] Production.ERROR: pbx prc_insertCDR end [2025-03-24 05:10:20] Production.INFO: ==17627== Releasing lock... [2025-03-24 05:10:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 05:10:20] Production.INFO: 30 MB #Memory Used# [2025-03-24 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 02:11:05 [end_date_ymd] => 2025-03-24 05:11:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 02:11:05' and `end` < '2025-03-24 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-03-24 05:11:17] Production.INFO: count ==212 [2025-03-24 05:11:17] Production.ERROR: pbx CDR StartTime 2025-03-24 02:11:05 - End Time 2025-03-24 05:11:05 [2025-03-24 05:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749927', 'tblTempUsageDetail_20' ) start [2025-03-24 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749927', 'tblTempUsageDetail_20' ) end [2025-03-24 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749927', 'tblTempVendorCDR_20' ) start [2025-03-24 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749927', 'tblTempVendorCDR_20' ) end [2025-03-24 05:11:17] Production.INFO: ProcessCDR(1,14749927,1,1,2) [2025-03-24 05:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749927', 'tblTempUsageDetail_20' ) start [2025-03-24 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749927', 'tblTempUsageDetail_20' ) end [2025-03-24 05:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 05:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 05:11:21] Production.INFO: ==17729== Releasing lock... [2025-03-24 05:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 05:11:21] Production.INFO: 30 MB #Memory Used# [2025-03-24 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 02:12:05 [end_date_ymd] => 2025-03-24 05:12:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 02:12:05' and `end` < '2025-03-24 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-03-24 05:12:17] Production.INFO: count ==212 [2025-03-24 05:12:17] Production.ERROR: pbx CDR StartTime 2025-03-24 02:12:05 - End Time 2025-03-24 05:12:05 [2025-03-24 05:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749932', 'tblTempUsageDetail_20' ) start [2025-03-24 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749932', 'tblTempUsageDetail_20' ) end [2025-03-24 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749932', 'tblTempVendorCDR_20' ) start [2025-03-24 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749932', 'tblTempVendorCDR_20' ) end [2025-03-24 05:12:17] Production.INFO: ProcessCDR(1,14749932,1,1,2) [2025-03-24 05:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749932', 'tblTempUsageDetail_20' ) start [2025-03-24 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749932', 'tblTempUsageDetail_20' ) end [2025-03-24 05:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 05:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 05:12:21] Production.INFO: ==17870== Releasing lock... [2025-03-24 05:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 05:12:21] Production.INFO: 30 MB #Memory Used# [2025-03-24 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 02:13:05 [end_date_ymd] => 2025-03-24 05:13:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 02:13:05' and `end` < '2025-03-24 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-03-24 05:13:17] Production.INFO: count ==212 [2025-03-24 05:13:17] Production.ERROR: pbx CDR StartTime 2025-03-24 02:13:05 - End Time 2025-03-24 05:13:05 [2025-03-24 05:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749937', 'tblTempUsageDetail_20' ) start [2025-03-24 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749937', 'tblTempUsageDetail_20' ) end [2025-03-24 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749937', 'tblTempVendorCDR_20' ) start [2025-03-24 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749937', 'tblTempVendorCDR_20' ) end [2025-03-24 05:13:17] Production.INFO: ProcessCDR(1,14749937,1,1,2) [2025-03-24 05:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749937', 'tblTempUsageDetail_20' ) start [2025-03-24 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749937', 'tblTempUsageDetail_20' ) end [2025-03-24 05:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-24 05:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-24 05:13:20] Production.INFO: ==17968== Releasing lock... [2025-03-24 05:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 05:13:20] Production.INFO: 30 MB #Memory Used# [2025-03-24 05:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 02:14:06 [end_date_ymd] => 2025-03-24 05:14:06 [RateCDR] => 1 ) [2025-03-24 05: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-03-24 02:14:06' and `end` < '2025-03-24 05: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-03-24 05:14:18] Production.INFO: count ==212 [2025-03-24 05:14:18] Production.ERROR: pbx CDR StartTime 2025-03-24 02:14:06 - End Time 2025-03-24 05:14:06 [2025-03-24 05:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749942', 'tblTempUsageDetail_20' ) start [2025-03-24 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749942', 'tblTempUsageDetail_20' ) end [2025-03-24 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749942', 'tblTempVendorCDR_20' ) start [2025-03-24 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749942', 'tblTempVendorCDR_20' ) end [2025-03-24 05:14:18] Production.INFO: ProcessCDR(1,14749942,1,1,2) [2025-03-24 05:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749942', 'tblTempUsageDetail_20' ) start [2025-03-24 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749942', 'tblTempUsageDetail_20' ) end [2025-03-24 05:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 05:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 05:14:21] Production.INFO: ==18066== Releasing lock... [2025-03-24 05:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 05:14:21] Production.INFO: 30 MB #Memory Used# [2025-03-24 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 02:15:05 [end_date_ymd] => 2025-03-24 05:15:05 [RateCDR] => 1 ) [2025-03-24 05:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 02:15:05' and `end` < '2025-03-24 05:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 05:15:17] Production.INFO: count ==214 [2025-03-24 05:15:17] Production.ERROR: pbx CDR StartTime 2025-03-24 02:15:05 - End Time 2025-03-24 05:15:05 [2025-03-24 05:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749947', 'tblTempUsageDetail_20' ) start [2025-03-24 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749947', 'tblTempUsageDetail_20' ) end [2025-03-24 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749947', 'tblTempVendorCDR_20' ) start [2025-03-24 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749947', 'tblTempVendorCDR_20' ) end [2025-03-24 05:15:17] Production.INFO: ProcessCDR(1,14749947,1,1,2) [2025-03-24 05:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749947', 'tblTempUsageDetail_20' ) start [2025-03-24 05:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749947', 'tblTempUsageDetail_20' ) end [2025-03-24 05:15:20] Production.ERROR: pbx prc_insertCDR start [2025-03-24 05:15:20] Production.ERROR: pbx prc_insertCDR end [2025-03-24 05:15:20] Production.INFO: ==18163== Releasing lock... [2025-03-24 05:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 05:15:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-24 05:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 02:16:04 [end_date_ymd] => 2025-03-24 05:16:04 [RateCDR] => 1 ) [2025-03-24 05: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-03-24 02:16:04' and `end` < '2025-03-24 05: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-03-24 05:16:17] Production.INFO: count ==214 [2025-03-24 05:16:17] Production.ERROR: pbx CDR StartTime 2025-03-24 02:16:04 - End Time 2025-03-24 05:16:04 [2025-03-24 05:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749952', 'tblTempUsageDetail_20' ) start [2025-03-24 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749952', 'tblTempUsageDetail_20' ) end [2025-03-24 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749952', 'tblTempVendorCDR_20' ) start [2025-03-24 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749952', 'tblTempVendorCDR_20' ) end [2025-03-24 05:16:17] Production.INFO: ProcessCDR(1,14749952,1,1,2) [2025-03-24 05:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749952', 'tblTempUsageDetail_20' ) start [2025-03-24 05:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749952', 'tblTempUsageDetail_20' ) end [2025-03-24 05:16:20] Production.ERROR: pbx prc_insertCDR start [2025-03-24 05:16:20] Production.ERROR: pbx prc_insertCDR end [2025-03-24 05:16:20] Production.INFO: ==18267== Releasing lock... [2025-03-24 05:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 05:16:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-24 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 02:17:05 [end_date_ymd] => 2025-03-24 05:17:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 02:17:05' and `end` < '2025-03-24 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-03-24 05:17:17] Production.INFO: count ==214 [2025-03-24 05:17:17] Production.ERROR: pbx CDR StartTime 2025-03-24 02:17:05 - End Time 2025-03-24 05:17:05 [2025-03-24 05:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749957', 'tblTempUsageDetail_20' ) start [2025-03-24 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749957', 'tblTempUsageDetail_20' ) end [2025-03-24 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749957', 'tblTempVendorCDR_20' ) start [2025-03-24 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749957', 'tblTempVendorCDR_20' ) end [2025-03-24 05:17:17] Production.INFO: ProcessCDR(1,14749957,1,1,2) [2025-03-24 05:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749957', 'tblTempUsageDetail_20' ) start [2025-03-24 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749957', 'tblTempUsageDetail_20' ) end [2025-03-24 05:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 05:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 05:17:21] Production.INFO: ==18371== Releasing lock... [2025-03-24 05:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 05:17:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-24 05:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 02:18:06 [end_date_ymd] => 2025-03-24 05:18:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 02:18:06' and `end` < '2025-03-24 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-03-24 05:18:18] Production.INFO: count ==218 [2025-03-24 05:18:18] Production.ERROR: pbx CDR StartTime 2025-03-24 02:18:06 - End Time 2025-03-24 05:18:06 [2025-03-24 05:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749962', 'tblTempUsageDetail_20' ) start [2025-03-24 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749962', 'tblTempUsageDetail_20' ) end [2025-03-24 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749962', 'tblTempVendorCDR_20' ) start [2025-03-24 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749962', 'tblTempVendorCDR_20' ) end [2025-03-24 05:18:18] Production.INFO: ProcessCDR(1,14749962,1,1,2) [2025-03-24 05:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749962', 'tblTempUsageDetail_20' ) start [2025-03-24 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749962', 'tblTempUsageDetail_20' ) end [2025-03-24 05:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 05:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 05:18:21] Production.INFO: ==18482== Releasing lock... [2025-03-24 05:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 05:18:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-24 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 02:19:05 [end_date_ymd] => 2025-03-24 05:19:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 02:19:05' and `end` < '2025-03-24 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-03-24 05:19:17] Production.INFO: count ==217 [2025-03-24 05:19:17] Production.ERROR: pbx CDR StartTime 2025-03-24 02:19:05 - End Time 2025-03-24 05:19:05 [2025-03-24 05:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749967', 'tblTempUsageDetail_20' ) start [2025-03-24 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749967', 'tblTempUsageDetail_20' ) end [2025-03-24 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749967', 'tblTempVendorCDR_20' ) start [2025-03-24 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749967', 'tblTempVendorCDR_20' ) end [2025-03-24 05:19:17] Production.INFO: ProcessCDR(1,14749967,1,1,2) [2025-03-24 05:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749967', 'tblTempUsageDetail_20' ) start [2025-03-24 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749967', 'tblTempUsageDetail_20' ) end [2025-03-24 05:19:20] Production.ERROR: pbx prc_insertCDR start [2025-03-24 05:19:20] Production.ERROR: pbx prc_insertCDR end [2025-03-24 05:19:20] Production.INFO: ==18577== Releasing lock... [2025-03-24 05:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 05:19:20] Production.INFO: 30 MB #Memory Used# [2025-03-24 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 02:20:06 [end_date_ymd] => 2025-03-24 05:20:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 02:20:06' and `end` < '2025-03-24 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-03-24 05:20:18] Production.INFO: count ==217 [2025-03-24 05:20:18] Production.ERROR: pbx CDR StartTime 2025-03-24 02:20:06 - End Time 2025-03-24 05:20:06 [2025-03-24 05:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749973', 'tblTempUsageDetail_20' ) start [2025-03-24 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749973', 'tblTempUsageDetail_20' ) end [2025-03-24 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749973', 'tblTempVendorCDR_20' ) start [2025-03-24 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749973', 'tblTempVendorCDR_20' ) end [2025-03-24 05:20:18] Production.INFO: ProcessCDR(1,14749973,1,1,2) [2025-03-24 05:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749973', 'tblTempUsageDetail_20' ) start [2025-03-24 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749973', 'tblTempUsageDetail_20' ) end [2025-03-24 05:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 05:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 05:20:21] Production.INFO: ==18681== Releasing lock... [2025-03-24 05:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 05:20:21] Production.INFO: 30 MB #Memory Used# [2025-03-24 05:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 02:21:06 [end_date_ymd] => 2025-03-24 05:21:06 [RateCDR] => 1 ) [2025-03-24 05: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-03-24 02:21:06' and `end` < '2025-03-24 05: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-03-24 05:21:18] Production.INFO: count ==217 [2025-03-24 05:21:18] Production.ERROR: pbx CDR StartTime 2025-03-24 02:21:06 - End Time 2025-03-24 05:21:06 [2025-03-24 05:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749978', 'tblTempUsageDetail_20' ) start [2025-03-24 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749978', 'tblTempUsageDetail_20' ) end [2025-03-24 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749978', 'tblTempVendorCDR_20' ) start [2025-03-24 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749978', 'tblTempVendorCDR_20' ) end [2025-03-24 05:21:18] Production.INFO: ProcessCDR(1,14749978,1,1,2) [2025-03-24 05:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749978', 'tblTempUsageDetail_20' ) start [2025-03-24 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749978', 'tblTempUsageDetail_20' ) end [2025-03-24 05:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 05:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 05:21:21] Production.INFO: ==18787== Releasing lock... [2025-03-24 05:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 05:21:21] Production.INFO: 30 MB #Memory Used# [2025-03-24 05:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 02:22:05 [end_date_ymd] => 2025-03-24 05:22:05 [RateCDR] => 1 ) [2025-03-24 05: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-03-24 02:22:05' and `end` < '2025-03-24 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-03-24 05:22:18] Production.INFO: count ==213 [2025-03-24 05:22:18] Production.ERROR: pbx CDR StartTime 2025-03-24 02:22:05 - End Time 2025-03-24 05:22:05 [2025-03-24 05:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749983', 'tblTempUsageDetail_20' ) start [2025-03-24 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749983', 'tblTempUsageDetail_20' ) end [2025-03-24 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749983', 'tblTempVendorCDR_20' ) start [2025-03-24 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749983', 'tblTempVendorCDR_20' ) end [2025-03-24 05:22:18] Production.INFO: ProcessCDR(1,14749983,1,1,2) [2025-03-24 05:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749983', 'tblTempUsageDetail_20' ) start [2025-03-24 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749983', 'tblTempUsageDetail_20' ) end [2025-03-24 05:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 05:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 05:22:21] Production.INFO: ==18885== Releasing lock... [2025-03-24 05:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 05:22:21] Production.INFO: 30 MB #Memory Used# [2025-03-24 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 02:23:05 [end_date_ymd] => 2025-03-24 05:23:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 02:23:05' and `end` < '2025-03-24 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-03-24 05:23:17] Production.INFO: count ==213 [2025-03-24 05:23:18] Production.ERROR: pbx CDR StartTime 2025-03-24 02:23:05 - End Time 2025-03-24 05:23:05 [2025-03-24 05:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749988', 'tblTempUsageDetail_20' ) start [2025-03-24 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749988', 'tblTempUsageDetail_20' ) end [2025-03-24 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749988', 'tblTempVendorCDR_20' ) start [2025-03-24 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749988', 'tblTempVendorCDR_20' ) end [2025-03-24 05:23:18] Production.INFO: ProcessCDR(1,14749988,1,1,2) [2025-03-24 05:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749988', 'tblTempUsageDetail_20' ) start [2025-03-24 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749988', 'tblTempUsageDetail_20' ) end [2025-03-24 05:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 05:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 05:23:21] Production.INFO: ==18988== Releasing lock... [2025-03-24 05:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 05:23:21] Production.INFO: 30 MB #Memory Used# [2025-03-24 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 02:24:05 [end_date_ymd] => 2025-03-24 05:24:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 02:24:05' and `end` < '2025-03-24 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-03-24 05:24:18] Production.INFO: count ==213 [2025-03-24 05:24:18] Production.ERROR: pbx CDR StartTime 2025-03-24 02:24:05 - End Time 2025-03-24 05:24:05 [2025-03-24 05:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749993', 'tblTempUsageDetail_20' ) start [2025-03-24 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749993', 'tblTempUsageDetail_20' ) end [2025-03-24 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749993', 'tblTempVendorCDR_20' ) start [2025-03-24 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749993', 'tblTempVendorCDR_20' ) end [2025-03-24 05:24:18] Production.INFO: ProcessCDR(1,14749993,1,1,2) [2025-03-24 05:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749993', 'tblTempUsageDetail_20' ) start [2025-03-24 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749993', 'tblTempUsageDetail_20' ) end [2025-03-24 05:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 05:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 05:24:21] Production.INFO: ==19098== Releasing lock... [2025-03-24 05:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 05:24:21] Production.INFO: 30 MB #Memory Used# [2025-03-24 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 02:25:05 [end_date_ymd] => 2025-03-24 05:25:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 02:25:05' and `end` < '2025-03-24 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-03-24 05:25:18] Production.INFO: count ==215 [2025-03-24 05:25:18] Production.ERROR: pbx CDR StartTime 2025-03-24 02:25:05 - End Time 2025-03-24 05:25:05 [2025-03-24 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749998', 'tblTempUsageDetail_20' ) start [2025-03-24 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14749998', 'tblTempUsageDetail_20' ) end [2025-03-24 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749998', 'tblTempVendorCDR_20' ) start [2025-03-24 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14749998', 'tblTempVendorCDR_20' ) end [2025-03-24 05:25:18] Production.INFO: ProcessCDR(1,14749998,1,1,2) [2025-03-24 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14749998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14749998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14749998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14749998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749998', 'tblTempUsageDetail_20' ) start [2025-03-24 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14749998', 'tblTempUsageDetail_20' ) end [2025-03-24 05:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 05:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 05:25:21] Production.INFO: ==19207== Releasing lock... [2025-03-24 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 05:25:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-24 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 02:26:05 [end_date_ymd] => 2025-03-24 05:26:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 02:26:05' and `end` < '2025-03-24 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-03-24 05:26:17] Production.INFO: count ==215 [2025-03-24 05:26:17] Production.ERROR: pbx CDR StartTime 2025-03-24 02:26:05 - End Time 2025-03-24 05:26:05 [2025-03-24 05:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750003', 'tblTempUsageDetail_20' ) start [2025-03-24 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750003', 'tblTempUsageDetail_20' ) end [2025-03-24 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750003', 'tblTempVendorCDR_20' ) start [2025-03-24 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750003', 'tblTempVendorCDR_20' ) end [2025-03-24 05:26:17] Production.INFO: ProcessCDR(1,14750003,1,1,2) [2025-03-24 05:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750003', 'tblTempUsageDetail_20' ) start [2025-03-24 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750003', 'tblTempUsageDetail_20' ) end [2025-03-24 05:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 05:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 05:26:21] Production.INFO: ==19310== Releasing lock... [2025-03-24 05:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 05:26:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-24 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 02:27:05 [end_date_ymd] => 2025-03-24 05:27:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 02:27:05' and `end` < '2025-03-24 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-03-24 05:27:18] Production.INFO: count ==215 [2025-03-24 05:27:18] Production.ERROR: pbx CDR StartTime 2025-03-24 02:27:05 - End Time 2025-03-24 05:27:05 [2025-03-24 05:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750008', 'tblTempUsageDetail_20' ) start [2025-03-24 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750008', 'tblTempUsageDetail_20' ) end [2025-03-24 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750008', 'tblTempVendorCDR_20' ) start [2025-03-24 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750008', 'tblTempVendorCDR_20' ) end [2025-03-24 05:27:18] Production.INFO: ProcessCDR(1,14750008,1,1,2) [2025-03-24 05:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750008', 'tblTempUsageDetail_20' ) start [2025-03-24 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750008', 'tblTempUsageDetail_20' ) end [2025-03-24 05:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 05:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 05:27:21] Production.INFO: ==19413== Releasing lock... [2025-03-24 05:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 05:27:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-24 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 02:28:05 [end_date_ymd] => 2025-03-24 05:28:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 02:28:05' and `end` < '2025-03-24 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-03-24 05:28:17] Production.INFO: count ==215 [2025-03-24 05:28:17] Production.ERROR: pbx CDR StartTime 2025-03-24 02:28:05 - End Time 2025-03-24 05:28:05 [2025-03-24 05:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750013', 'tblTempUsageDetail_20' ) start [2025-03-24 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750013', 'tblTempUsageDetail_20' ) end [2025-03-24 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750013', 'tblTempVendorCDR_20' ) start [2025-03-24 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750013', 'tblTempVendorCDR_20' ) end [2025-03-24 05:28:17] Production.INFO: ProcessCDR(1,14750013,1,1,2) [2025-03-24 05:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750013', 'tblTempUsageDetail_20' ) start [2025-03-24 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750013', 'tblTempUsageDetail_20' ) end [2025-03-24 05:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 05:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 05:28:21] Production.INFO: ==19552== Releasing lock... [2025-03-24 05:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 05:28:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-24 05:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 02:29:06 [end_date_ymd] => 2025-03-24 05:29:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 02:29:06' and `end` < '2025-03-24 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-03-24 05:29:18] Production.INFO: count ==215 [2025-03-24 05:29:18] Production.ERROR: pbx CDR StartTime 2025-03-24 02:29:06 - End Time 2025-03-24 05:29:06 [2025-03-24 05:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750018', 'tblTempUsageDetail_20' ) start [2025-03-24 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750018', 'tblTempUsageDetail_20' ) end [2025-03-24 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750018', 'tblTempVendorCDR_20' ) start [2025-03-24 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750018', 'tblTempVendorCDR_20' ) end [2025-03-24 05:29:18] Production.INFO: ProcessCDR(1,14750018,1,1,2) [2025-03-24 05:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750018', 'tblTempUsageDetail_20' ) start [2025-03-24 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750018', 'tblTempUsageDetail_20' ) end [2025-03-24 05:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 05:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 05:29:21] Production.INFO: ==19657== Releasing lock... [2025-03-24 05:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 05:29:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-24 05:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 02:30:05 [end_date_ymd] => 2025-03-24 05:30:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 02:30:05' and `end` < '2025-03-24 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-03-24 05:30:17] Production.INFO: count ==202 [2025-03-24 05:30:18] Production.ERROR: pbx CDR StartTime 2025-03-24 02:30:05 - End Time 2025-03-24 05:30:05 [2025-03-24 05:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750024', 'tblTempUsageDetail_20' ) start [2025-03-24 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750024', 'tblTempUsageDetail_20' ) end [2025-03-24 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750024', 'tblTempVendorCDR_20' ) start [2025-03-24 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750024', 'tblTempVendorCDR_20' ) end [2025-03-24 05:30:18] Production.INFO: ProcessCDR(1,14750024,1,1,2) [2025-03-24 05:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750024', 'tblTempUsageDetail_20' ) start [2025-03-24 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750024', 'tblTempUsageDetail_20' ) end [2025-03-24 05:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 05:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 05:30:21] Production.INFO: ==19754== Releasing lock... [2025-03-24 05:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 05:30:21] Production.INFO: 30 MB #Memory Used# [2025-03-24 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 02:31:05 [end_date_ymd] => 2025-03-24 05:31:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 02:31:05' and `end` < '2025-03-24 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-03-24 05:31:18] Production.INFO: count ==200 [2025-03-24 05:31:18] Production.ERROR: pbx CDR StartTime 2025-03-24 02:31:05 - End Time 2025-03-24 05:31:05 [2025-03-24 05:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750029', 'tblTempUsageDetail_20' ) start [2025-03-24 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750029', 'tblTempUsageDetail_20' ) end [2025-03-24 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750029', 'tblTempVendorCDR_20' ) start [2025-03-24 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750029', 'tblTempVendorCDR_20' ) end [2025-03-24 05:31:18] Production.INFO: ProcessCDR(1,14750029,1,1,2) [2025-03-24 05:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750029', 'tblTempUsageDetail_20' ) start [2025-03-24 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750029', 'tblTempUsageDetail_20' ) end [2025-03-24 05:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 05:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 05:31:21] Production.INFO: ==19858== Releasing lock... [2025-03-24 05:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 05:31:21] Production.INFO: 30 MB #Memory Used# [2025-03-24 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 02:32:05 [end_date_ymd] => 2025-03-24 05:32:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 02:32:05' and `end` < '2025-03-24 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-03-24 05:32:17] Production.INFO: count ==200 [2025-03-24 05:32:17] Production.ERROR: pbx CDR StartTime 2025-03-24 02:32:05 - End Time 2025-03-24 05:32:05 [2025-03-24 05:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750034', 'tblTempUsageDetail_20' ) start [2025-03-24 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750034', 'tblTempUsageDetail_20' ) end [2025-03-24 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750034', 'tblTempVendorCDR_20' ) start [2025-03-24 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750034', 'tblTempVendorCDR_20' ) end [2025-03-24 05:32:17] Production.INFO: ProcessCDR(1,14750034,1,1,2) [2025-03-24 05:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750034', 'tblTempUsageDetail_20' ) start [2025-03-24 05:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750034', 'tblTempUsageDetail_20' ) end [2025-03-24 05:32:20] Production.ERROR: pbx prc_insertCDR start [2025-03-24 05:32:20] Production.ERROR: pbx prc_insertCDR end [2025-03-24 05:32:20] Production.INFO: ==19959== Releasing lock... [2025-03-24 05:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 05:32:20] Production.INFO: 30 MB #Memory Used# [2025-03-24 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 02:33:05 [end_date_ymd] => 2025-03-24 05:33:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 02:33:05' and `end` < '2025-03-24 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-03-24 05:33:17] Production.INFO: count ==200 [2025-03-24 05:33:17] Production.ERROR: pbx CDR StartTime 2025-03-24 02:33:05 - End Time 2025-03-24 05:33:05 [2025-03-24 05:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750039', 'tblTempUsageDetail_20' ) start [2025-03-24 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750039', 'tblTempUsageDetail_20' ) end [2025-03-24 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750039', 'tblTempVendorCDR_20' ) start [2025-03-24 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750039', 'tblTempVendorCDR_20' ) end [2025-03-24 05:33:17] Production.INFO: ProcessCDR(1,14750039,1,1,2) [2025-03-24 05:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750039', 'tblTempUsageDetail_20' ) start [2025-03-24 05:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750039', 'tblTempUsageDetail_20' ) end [2025-03-24 05:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-24 05:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-24 05:33:20] Production.INFO: ==20059== Releasing lock... [2025-03-24 05:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 05:33:20] Production.INFO: 30 MB #Memory Used# [2025-03-24 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 02:34:05 [end_date_ymd] => 2025-03-24 05:34:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 02:34:05' and `end` < '2025-03-24 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-03-24 05:34:17] Production.INFO: count ==197 [2025-03-24 05:34:17] Production.ERROR: pbx CDR StartTime 2025-03-24 02:34:05 - End Time 2025-03-24 05:34:05 [2025-03-24 05:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750044', 'tblTempUsageDetail_20' ) start [2025-03-24 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750044', 'tblTempUsageDetail_20' ) end [2025-03-24 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750044', 'tblTempVendorCDR_20' ) start [2025-03-24 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750044', 'tblTempVendorCDR_20' ) end [2025-03-24 05:34:17] Production.INFO: ProcessCDR(1,14750044,1,1,2) [2025-03-24 05:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750044', 'tblTempUsageDetail_20' ) start [2025-03-24 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750044', 'tblTempUsageDetail_20' ) end [2025-03-24 05:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 05:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 05:34:21] Production.INFO: ==20155== Releasing lock... [2025-03-24 05:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 05:34:21] Production.INFO: 30 MB #Memory Used# [2025-03-24 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 02:35:05 [end_date_ymd] => 2025-03-24 05:35:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 02:35:05' and `end` < '2025-03-24 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-03-24 05:35:17] Production.INFO: count ==194 [2025-03-24 05:35:17] Production.ERROR: pbx CDR StartTime 2025-03-24 02:35:05 - End Time 2025-03-24 05:35:05 [2025-03-24 05:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750049', 'tblTempUsageDetail_20' ) start [2025-03-24 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750049', 'tblTempUsageDetail_20' ) end [2025-03-24 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750049', 'tblTempVendorCDR_20' ) start [2025-03-24 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750049', 'tblTempVendorCDR_20' ) end [2025-03-24 05:35:18] Production.INFO: ProcessCDR(1,14750049,1,1,2) [2025-03-24 05:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750049', 'tblTempUsageDetail_20' ) start [2025-03-24 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750049', 'tblTempUsageDetail_20' ) end [2025-03-24 05:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 05:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 05:35:21] Production.INFO: ==20255== Releasing lock... [2025-03-24 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 05:35:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-24 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 02:36:05 [end_date_ymd] => 2025-03-24 05:36:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 02:36:05' and `end` < '2025-03-24 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-03-24 05:36:17] Production.INFO: count ==185 [2025-03-24 05:36:17] Production.ERROR: pbx CDR StartTime 2025-03-24 02:36:05 - End Time 2025-03-24 05:36:05 [2025-03-24 05:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750054', 'tblTempUsageDetail_20' ) start [2025-03-24 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750054', 'tblTempUsageDetail_20' ) end [2025-03-24 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750054', 'tblTempVendorCDR_20' ) start [2025-03-24 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750054', 'tblTempVendorCDR_20' ) end [2025-03-24 05:36:17] Production.INFO: ProcessCDR(1,14750054,1,1,2) [2025-03-24 05:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750054', 'tblTempUsageDetail_20' ) start [2025-03-24 05:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750054', 'tblTempUsageDetail_20' ) end [2025-03-24 05:36:20] Production.ERROR: pbx prc_insertCDR start [2025-03-24 05:36:20] Production.ERROR: pbx prc_insertCDR end [2025-03-24 05:36:20] Production.INFO: ==20355== Releasing lock... [2025-03-24 05:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 05:36:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-24 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 02:37:05 [end_date_ymd] => 2025-03-24 05:37:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 02:37:05' and `end` < '2025-03-24 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-03-24 05:37:17] Production.INFO: count ==185 [2025-03-24 05:37:18] Production.ERROR: pbx CDR StartTime 2025-03-24 02:37:05 - End Time 2025-03-24 05:37:05 [2025-03-24 05:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750059', 'tblTempUsageDetail_20' ) start [2025-03-24 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750059', 'tblTempUsageDetail_20' ) end [2025-03-24 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750059', 'tblTempVendorCDR_20' ) start [2025-03-24 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750059', 'tblTempVendorCDR_20' ) end [2025-03-24 05:37:18] Production.INFO: ProcessCDR(1,14750059,1,1,2) [2025-03-24 05:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750059', 'tblTempUsageDetail_20' ) start [2025-03-24 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750059', 'tblTempUsageDetail_20' ) end [2025-03-24 05:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 05:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 05:37:21] Production.INFO: ==20452== Releasing lock... [2025-03-24 05:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 05:37:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-24 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 02:38:05 [end_date_ymd] => 2025-03-24 05:38:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 02:38:05' and `end` < '2025-03-24 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-03-24 05:38:17] Production.INFO: count ==188 [2025-03-24 05:38:17] Production.ERROR: pbx CDR StartTime 2025-03-24 02:38:05 - End Time 2025-03-24 05:38:05 [2025-03-24 05:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750064', 'tblTempUsageDetail_20' ) start [2025-03-24 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750064', 'tblTempUsageDetail_20' ) end [2025-03-24 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750064', 'tblTempVendorCDR_20' ) start [2025-03-24 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750064', 'tblTempVendorCDR_20' ) end [2025-03-24 05:38:17] Production.INFO: ProcessCDR(1,14750064,1,1,2) [2025-03-24 05:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750064', 'tblTempUsageDetail_20' ) start [2025-03-24 05:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750064', 'tblTempUsageDetail_20' ) end [2025-03-24 05:38:20] Production.ERROR: pbx prc_insertCDR start [2025-03-24 05:38:20] Production.ERROR: pbx prc_insertCDR end [2025-03-24 05:38:20] Production.INFO: ==20553== Releasing lock... [2025-03-24 05:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 05:38:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-24 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 02:39:05 [end_date_ymd] => 2025-03-24 05:39:05 [RateCDR] => 1 ) [2025-03-24 05:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 02:39:05' and `end` < '2025-03-24 05:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 05:39:17] Production.INFO: count ==184 [2025-03-24 05:39:17] Production.ERROR: pbx CDR StartTime 2025-03-24 02:39:05 - End Time 2025-03-24 05:39:05 [2025-03-24 05:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750069', 'tblTempUsageDetail_20' ) start [2025-03-24 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750069', 'tblTempUsageDetail_20' ) end [2025-03-24 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750069', 'tblTempVendorCDR_20' ) start [2025-03-24 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750069', 'tblTempVendorCDR_20' ) end [2025-03-24 05:39:17] Production.INFO: ProcessCDR(1,14750069,1,1,2) [2025-03-24 05:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750069', 'tblTempUsageDetail_20' ) start [2025-03-24 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750069', 'tblTempUsageDetail_20' ) end [2025-03-24 05:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 05:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 05:39:21] Production.INFO: ==20647== Releasing lock... [2025-03-24 05:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 05:39:21] Production.INFO: 30 MB #Memory Used# [2025-03-24 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 02:40:06 [end_date_ymd] => 2025-03-24 05:40:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 02:40:06' and `end` < '2025-03-24 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-03-24 05:40:19] Production.INFO: count ==176 [2025-03-24 05:40:19] Production.ERROR: pbx CDR StartTime 2025-03-24 02:40:06 - End Time 2025-03-24 05:40:06 [2025-03-24 05:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750075', 'tblTempUsageDetail_20' ) start [2025-03-24 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750075', 'tblTempUsageDetail_20' ) end [2025-03-24 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750075', 'tblTempVendorCDR_20' ) start [2025-03-24 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750075', 'tblTempVendorCDR_20' ) end [2025-03-24 05:40:19] Production.INFO: ProcessCDR(1,14750075,1,1,2) [2025-03-24 05:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750075', 'tblTempUsageDetail_20' ) start [2025-03-24 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750075', 'tblTempUsageDetail_20' ) end [2025-03-24 05:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 05:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 05:40:22] Production.INFO: ==20750== Releasing lock... [2025-03-24 05:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 05:40:22] Production.INFO: 30 MB #Memory Used# [2025-03-24 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 02:41:05 [end_date_ymd] => 2025-03-24 05:41:05 [RateCDR] => 1 ) [2025-03-24 05:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 02:41:05' and `end` < '2025-03-24 05:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 05:41:17] Production.INFO: count ==171 [2025-03-24 05:41:17] Production.ERROR: pbx CDR StartTime 2025-03-24 02:41:05 - End Time 2025-03-24 05:41:05 [2025-03-24 05:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750080', 'tblTempUsageDetail_20' ) start [2025-03-24 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750080', 'tblTempUsageDetail_20' ) end [2025-03-24 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750080', 'tblTempVendorCDR_20' ) start [2025-03-24 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750080', 'tblTempVendorCDR_20' ) end [2025-03-24 05:41:17] Production.INFO: ProcessCDR(1,14750080,1,1,2) [2025-03-24 05:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750080', 'tblTempUsageDetail_20' ) start [2025-03-24 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750080', 'tblTempUsageDetail_20' ) end [2025-03-24 05:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 05:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 05:41:21] Production.INFO: ==20846== Releasing lock... [2025-03-24 05:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 05:41:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-24 05:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 02:42:05 [end_date_ymd] => 2025-03-24 05:42:05 [RateCDR] => 1 ) [2025-03-24 05:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 02:42:05' and `end` < '2025-03-24 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-03-24 05:42:18] Production.INFO: count ==171 [2025-03-24 05:42:18] Production.ERROR: pbx CDR StartTime 2025-03-24 02:42:05 - End Time 2025-03-24 05:42:05 [2025-03-24 05:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750085', 'tblTempUsageDetail_20' ) start [2025-03-24 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750085', 'tblTempUsageDetail_20' ) end [2025-03-24 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750085', 'tblTempVendorCDR_20' ) start [2025-03-24 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750085', 'tblTempVendorCDR_20' ) end [2025-03-24 05:42:18] Production.INFO: ProcessCDR(1,14750085,1,1,2) [2025-03-24 05:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750085', 'tblTempUsageDetail_20' ) start [2025-03-24 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750085', 'tblTempUsageDetail_20' ) end [2025-03-24 05:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 05:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 05:42:21] Production.INFO: ==20940== Releasing lock... [2025-03-24 05:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 05:42:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-24 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 02:43:05 [end_date_ymd] => 2025-03-24 05:43:05 [RateCDR] => 1 ) [2025-03-24 05:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 02:43:05' and `end` < '2025-03-24 05:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 05:43:17] Production.INFO: count ==159 [2025-03-24 05:43:17] Production.ERROR: pbx CDR StartTime 2025-03-24 02:43:05 - End Time 2025-03-24 05:43:05 [2025-03-24 05:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750090', 'tblTempUsageDetail_20' ) start [2025-03-24 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750090', 'tblTempUsageDetail_20' ) end [2025-03-24 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750090', 'tblTempVendorCDR_20' ) start [2025-03-24 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750090', 'tblTempVendorCDR_20' ) end [2025-03-24 05:43:17] Production.INFO: ProcessCDR(1,14750090,1,1,2) [2025-03-24 05:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750090', 'tblTempUsageDetail_20' ) start [2025-03-24 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750090', 'tblTempUsageDetail_20' ) end [2025-03-24 05:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 05:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 05:43:21] Production.INFO: ==21071== Releasing lock... [2025-03-24 05:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 05:43:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 02:44:05 [end_date_ymd] => 2025-03-24 05:44:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 02:44:05' and `end` < '2025-03-24 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-03-24 05:44:18] Production.INFO: count ==156 [2025-03-24 05:44:18] Production.ERROR: pbx CDR StartTime 2025-03-24 02:44:05 - End Time 2025-03-24 05:44:05 [2025-03-24 05:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750095', 'tblTempUsageDetail_20' ) start [2025-03-24 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750095', 'tblTempUsageDetail_20' ) end [2025-03-24 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750095', 'tblTempVendorCDR_20' ) start [2025-03-24 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750095', 'tblTempVendorCDR_20' ) end [2025-03-24 05:44:18] Production.INFO: ProcessCDR(1,14750095,1,1,2) [2025-03-24 05:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750095', 'tblTempUsageDetail_20' ) start [2025-03-24 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750095', 'tblTempUsageDetail_20' ) end [2025-03-24 05:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 05:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 05:44:21] Production.INFO: ==21170== Releasing lock... [2025-03-24 05:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 05:44:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-24 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 02:45:05 [end_date_ymd] => 2025-03-24 05:45:05 [RateCDR] => 1 ) [2025-03-24 05:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 02:45:05' and `end` < '2025-03-24 05:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 05:45:17] Production.INFO: count ==156 [2025-03-24 05:45:17] Production.ERROR: pbx CDR StartTime 2025-03-24 02:45:05 - End Time 2025-03-24 05:45:05 [2025-03-24 05:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750100', 'tblTempUsageDetail_20' ) start [2025-03-24 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750100', 'tblTempUsageDetail_20' ) end [2025-03-24 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750100', 'tblTempVendorCDR_20' ) start [2025-03-24 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750100', 'tblTempVendorCDR_20' ) end [2025-03-24 05:45:17] Production.INFO: ProcessCDR(1,14750100,1,1,2) [2025-03-24 05:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750100', 'tblTempUsageDetail_20' ) start [2025-03-24 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750100', 'tblTempUsageDetail_20' ) end [2025-03-24 05:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 05:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 05:45:21] Production.INFO: ==21263== Releasing lock... [2025-03-24 05:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 05:45:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-24 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 02:46:05 [end_date_ymd] => 2025-03-24 05:46:05 [RateCDR] => 1 ) [2025-03-24 05:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 02:46:05' and `end` < '2025-03-24 05:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 05:46:17] Production.INFO: count ==156 [2025-03-24 05:46:17] Production.ERROR: pbx CDR StartTime 2025-03-24 02:46:05 - End Time 2025-03-24 05:46:05 [2025-03-24 05:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750105', 'tblTempUsageDetail_20' ) start [2025-03-24 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750105', 'tblTempUsageDetail_20' ) end [2025-03-24 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750105', 'tblTempVendorCDR_20' ) start [2025-03-24 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750105', 'tblTempVendorCDR_20' ) end [2025-03-24 05:46:17] Production.INFO: ProcessCDR(1,14750105,1,1,2) [2025-03-24 05:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750105', 'tblTempUsageDetail_20' ) start [2025-03-24 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750105', 'tblTempUsageDetail_20' ) end [2025-03-24 05:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 05:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 05:46:21] Production.INFO: ==21365== Releasing lock... [2025-03-24 05:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 05:46:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-24 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 02:47:05 [end_date_ymd] => 2025-03-24 05:47:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 02:47:05' and `end` < '2025-03-24 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-03-24 05:47:17] Production.INFO: count ==156 [2025-03-24 05:47:17] Production.ERROR: pbx CDR StartTime 2025-03-24 02:47:05 - End Time 2025-03-24 05:47:05 [2025-03-24 05:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750110', 'tblTempUsageDetail_20' ) start [2025-03-24 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750110', 'tblTempUsageDetail_20' ) end [2025-03-24 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750110', 'tblTempVendorCDR_20' ) start [2025-03-24 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750110', 'tblTempVendorCDR_20' ) end [2025-03-24 05:47:17] Production.INFO: ProcessCDR(1,14750110,1,1,2) [2025-03-24 05:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750110', 'tblTempUsageDetail_20' ) start [2025-03-24 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750110', 'tblTempUsageDetail_20' ) end [2025-03-24 05:47:20] Production.ERROR: pbx prc_insertCDR start [2025-03-24 05:47:20] Production.ERROR: pbx prc_insertCDR end [2025-03-24 05:47:20] Production.INFO: ==21456== Releasing lock... [2025-03-24 05:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 05:47:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-24 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 02:48:05 [end_date_ymd] => 2025-03-24 05:48:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 02:48:05' and `end` < '2025-03-24 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-03-24 05:48:17] Production.INFO: count ==156 [2025-03-24 05:48:17] Production.ERROR: pbx CDR StartTime 2025-03-24 02:48:05 - End Time 2025-03-24 05:48:05 [2025-03-24 05:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750115', 'tblTempUsageDetail_20' ) start [2025-03-24 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750115', 'tblTempUsageDetail_20' ) end [2025-03-24 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750115', 'tblTempVendorCDR_20' ) start [2025-03-24 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750115', 'tblTempVendorCDR_20' ) end [2025-03-24 05:48:17] Production.INFO: ProcessCDR(1,14750115,1,1,2) [2025-03-24 05:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750115', 'tblTempUsageDetail_20' ) start [2025-03-24 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750115', 'tblTempUsageDetail_20' ) end [2025-03-24 05:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 05:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 05:48:21] Production.INFO: ==21550== Releasing lock... [2025-03-24 05:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 05:48:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-24 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 02:49:05 [end_date_ymd] => 2025-03-24 05:49:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 02:49:05' and `end` < '2025-03-24 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-03-24 05:49:18] Production.INFO: count ==156 [2025-03-24 05:49:18] Production.ERROR: pbx CDR StartTime 2025-03-24 02:49:05 - End Time 2025-03-24 05:49:05 [2025-03-24 05:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750120', 'tblTempUsageDetail_20' ) start [2025-03-24 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750120', 'tblTempUsageDetail_20' ) end [2025-03-24 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750120', 'tblTempVendorCDR_20' ) start [2025-03-24 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750120', 'tblTempVendorCDR_20' ) end [2025-03-24 05:49:18] Production.INFO: ProcessCDR(1,14750120,1,1,2) [2025-03-24 05:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750120', 'tblTempUsageDetail_20' ) start [2025-03-24 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750120', 'tblTempUsageDetail_20' ) end [2025-03-24 05:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 05:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 05:49:21] Production.INFO: ==21642== Releasing lock... [2025-03-24 05:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 05:49:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-24 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 02:50:06 [end_date_ymd] => 2025-03-24 05:50:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 02:50:06' and `end` < '2025-03-24 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-03-24 05:50:18] Production.INFO: count ==156 [2025-03-24 05:50:18] Production.ERROR: pbx CDR StartTime 2025-03-24 02:50:06 - End Time 2025-03-24 05:50:06 [2025-03-24 05:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750125', 'tblTempUsageDetail_20' ) start [2025-03-24 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750125', 'tblTempUsageDetail_20' ) end [2025-03-24 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750125', 'tblTempVendorCDR_20' ) start [2025-03-24 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750125', 'tblTempVendorCDR_20' ) end [2025-03-24 05:50:18] Production.INFO: ProcessCDR(1,14750125,1,1,2) [2025-03-24 05:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750125', 'tblTempUsageDetail_20' ) start [2025-03-24 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750125', 'tblTempUsageDetail_20' ) end [2025-03-24 05:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 05:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 05:50:21] Production.INFO: ==21740== Releasing lock... [2025-03-24 05:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 05:50:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-24 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 02:51:05 [end_date_ymd] => 2025-03-24 05:51:05 [RateCDR] => 1 ) [2025-03-24 05:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 02:51:05' and `end` < '2025-03-24 05:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 05:51:18] Production.INFO: count ==156 [2025-03-24 05:51:18] Production.ERROR: pbx CDR StartTime 2025-03-24 02:51:05 - End Time 2025-03-24 05:51:05 [2025-03-24 05:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750131', 'tblTempUsageDetail_20' ) start [2025-03-24 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750131', 'tblTempUsageDetail_20' ) end [2025-03-24 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750131', 'tblTempVendorCDR_20' ) start [2025-03-24 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750131', 'tblTempVendorCDR_20' ) end [2025-03-24 05:51:18] Production.INFO: ProcessCDR(1,14750131,1,1,2) [2025-03-24 05:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750131', 'tblTempUsageDetail_20' ) start [2025-03-24 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750131', 'tblTempUsageDetail_20' ) end [2025-03-24 05:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 05:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 05:51:21] Production.INFO: ==21829== Releasing lock... [2025-03-24 05:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 05:51:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-24 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 02:52:05 [end_date_ymd] => 2025-03-24 05:52:05 [RateCDR] => 1 ) [2025-03-24 05:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 02:52:05' and `end` < '2025-03-24 05:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 05:52:17] Production.INFO: count ==156 [2025-03-24 05:52:17] Production.ERROR: pbx CDR StartTime 2025-03-24 02:52:05 - End Time 2025-03-24 05:52:05 [2025-03-24 05:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750136', 'tblTempUsageDetail_20' ) start [2025-03-24 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750136', 'tblTempUsageDetail_20' ) end [2025-03-24 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750136', 'tblTempVendorCDR_20' ) start [2025-03-24 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750136', 'tblTempVendorCDR_20' ) end [2025-03-24 05:52:17] Production.INFO: ProcessCDR(1,14750136,1,1,2) [2025-03-24 05:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750136', 'tblTempUsageDetail_20' ) start [2025-03-24 05:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750136', 'tblTempUsageDetail_20' ) end [2025-03-24 05:52:20] Production.ERROR: pbx prc_insertCDR start [2025-03-24 05:52:20] Production.ERROR: pbx prc_insertCDR end [2025-03-24 05:52:20] Production.INFO: ==21920== Releasing lock... [2025-03-24 05:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 05:52:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-24 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 02:53:05 [end_date_ymd] => 2025-03-24 05:53:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 02:53:05' and `end` < '2025-03-24 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-03-24 05:53:17] Production.INFO: count ==156 [2025-03-24 05:53:17] Production.ERROR: pbx CDR StartTime 2025-03-24 02:53:05 - End Time 2025-03-24 05:53:05 [2025-03-24 05:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750141', 'tblTempUsageDetail_20' ) start [2025-03-24 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750141', 'tblTempUsageDetail_20' ) end [2025-03-24 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750141', 'tblTempVendorCDR_20' ) start [2025-03-24 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750141', 'tblTempVendorCDR_20' ) end [2025-03-24 05:53:17] Production.INFO: ProcessCDR(1,14750141,1,1,2) [2025-03-24 05:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750141', 'tblTempUsageDetail_20' ) start [2025-03-24 05:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750141', 'tblTempUsageDetail_20' ) end [2025-03-24 05:53:20] Production.ERROR: pbx prc_insertCDR start [2025-03-24 05:53:20] Production.ERROR: pbx prc_insertCDR end [2025-03-24 05:53:20] Production.INFO: ==22008== Releasing lock... [2025-03-24 05:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 05:53:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-24 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 02:54:05 [end_date_ymd] => 2025-03-24 05:54:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 02:54:05' and `end` < '2025-03-24 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-03-24 05:54:17] Production.INFO: count ==153 [2025-03-24 05:54:17] Production.ERROR: pbx CDR StartTime 2025-03-24 02:54:05 - End Time 2025-03-24 05:54:05 [2025-03-24 05:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750146', 'tblTempUsageDetail_20' ) start [2025-03-24 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750146', 'tblTempUsageDetail_20' ) end [2025-03-24 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750146', 'tblTempVendorCDR_20' ) start [2025-03-24 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750146', 'tblTempVendorCDR_20' ) end [2025-03-24 05:54:17] Production.INFO: ProcessCDR(1,14750146,1,1,2) [2025-03-24 05:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750146', 'tblTempUsageDetail_20' ) start [2025-03-24 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750146', 'tblTempUsageDetail_20' ) end [2025-03-24 05:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 05:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 05:54:21] Production.INFO: ==22099== Releasing lock... [2025-03-24 05:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 05:54:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 05:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 02:55:06 [end_date_ymd] => 2025-03-24 05:55:06 [RateCDR] => 1 ) [2025-03-24 05: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-03-24 02:55:06' and `end` < '2025-03-24 05: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-03-24 05:55:18] Production.INFO: count ==153 [2025-03-24 05:55:18] Production.ERROR: pbx CDR StartTime 2025-03-24 02:55:06 - End Time 2025-03-24 05:55:06 [2025-03-24 05:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750151', 'tblTempUsageDetail_20' ) start [2025-03-24 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750151', 'tblTempUsageDetail_20' ) end [2025-03-24 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750151', 'tblTempVendorCDR_20' ) start [2025-03-24 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750151', 'tblTempVendorCDR_20' ) end [2025-03-24 05:55:18] Production.INFO: ProcessCDR(1,14750151,1,1,2) [2025-03-24 05:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750151', 'tblTempUsageDetail_20' ) start [2025-03-24 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750151', 'tblTempUsageDetail_20' ) end [2025-03-24 05:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 05:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 05:55:21] Production.INFO: ==22191== Releasing lock... [2025-03-24 05:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 05:55:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 02:56:05 [end_date_ymd] => 2025-03-24 05:56:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 02:56:05' and `end` < '2025-03-24 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-03-24 05:56:18] Production.INFO: count ==145 [2025-03-24 05:56:18] Production.ERROR: pbx CDR StartTime 2025-03-24 02:56:05 - End Time 2025-03-24 05:56:05 [2025-03-24 05:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750156', 'tblTempUsageDetail_20' ) start [2025-03-24 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750156', 'tblTempUsageDetail_20' ) end [2025-03-24 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750156', 'tblTempVendorCDR_20' ) start [2025-03-24 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750156', 'tblTempVendorCDR_20' ) end [2025-03-24 05:56:18] Production.INFO: ProcessCDR(1,14750156,1,1,2) [2025-03-24 05:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750156', 'tblTempUsageDetail_20' ) start [2025-03-24 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750156', 'tblTempUsageDetail_20' ) end [2025-03-24 05:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 05:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 05:56:21] Production.INFO: ==22281== Releasing lock... [2025-03-24 05:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 05:56:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 02:57:05 [end_date_ymd] => 2025-03-24 05:57:05 [RateCDR] => 1 ) [2025-03-24 05:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 02:57:05' and `end` < '2025-03-24 05:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 05:57:17] Production.INFO: count ==131 [2025-03-24 05:57:17] Production.ERROR: pbx CDR StartTime 2025-03-24 02:57:05 - End Time 2025-03-24 05:57:05 [2025-03-24 05:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750161', 'tblTempUsageDetail_20' ) start [2025-03-24 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750161', 'tblTempUsageDetail_20' ) end [2025-03-24 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750161', 'tblTempVendorCDR_20' ) start [2025-03-24 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750161', 'tblTempVendorCDR_20' ) end [2025-03-24 05:57:17] Production.INFO: ProcessCDR(1,14750161,1,1,2) [2025-03-24 05:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750161', 'tblTempUsageDetail_20' ) start [2025-03-24 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750161', 'tblTempUsageDetail_20' ) end [2025-03-24 05:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 05:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 05:57:21] Production.INFO: ==22372== Releasing lock... [2025-03-24 05:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 05:57:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 02:58:05 [end_date_ymd] => 2025-03-24 05:58:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 02:58:05' and `end` < '2025-03-24 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-03-24 05:58:17] Production.INFO: count ==126 [2025-03-24 05:58:17] Production.ERROR: pbx CDR StartTime 2025-03-24 02:58:05 - End Time 2025-03-24 05:58:05 [2025-03-24 05:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750166', 'tblTempUsageDetail_20' ) start [2025-03-24 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750166', 'tblTempUsageDetail_20' ) end [2025-03-24 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750166', 'tblTempVendorCDR_20' ) start [2025-03-24 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750166', 'tblTempVendorCDR_20' ) end [2025-03-24 05:58:17] Production.INFO: ProcessCDR(1,14750166,1,1,2) [2025-03-24 05:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750166', 'tblTempUsageDetail_20' ) start [2025-03-24 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750166', 'tblTempUsageDetail_20' ) end [2025-03-24 05:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 05:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 05:58:21] Production.INFO: ==22458== Releasing lock... [2025-03-24 05:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 05:58:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-24 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 02:59:05 [end_date_ymd] => 2025-03-24 05:59:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 02:59:05' and `end` < '2025-03-24 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-03-24 05:59:17] Production.INFO: count ==126 [2025-03-24 05:59:17] Production.ERROR: pbx CDR StartTime 2025-03-24 02:59:05 - End Time 2025-03-24 05:59:05 [2025-03-24 05:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750171', 'tblTempUsageDetail_20' ) start [2025-03-24 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750171', 'tblTempUsageDetail_20' ) end [2025-03-24 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750171', 'tblTempVendorCDR_20' ) start [2025-03-24 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750171', 'tblTempVendorCDR_20' ) end [2025-03-24 05:59:17] Production.INFO: ProcessCDR(1,14750171,1,1,2) [2025-03-24 05:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 05:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 05:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750171', 'tblTempUsageDetail_20' ) start [2025-03-24 05:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750171', 'tblTempUsageDetail_20' ) end [2025-03-24 05:59:20] Production.ERROR: pbx prc_insertCDR start [2025-03-24 05:59:20] Production.ERROR: pbx prc_insertCDR end [2025-03-24 05:59:20] Production.INFO: ==22589== Releasing lock... [2025-03-24 05:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 05:59:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-24 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 03:00:06 [end_date_ymd] => 2025-03-24 06:00:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 03:00:06' and `end` < '2025-03-24 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-03-24 06:00:19] Production.INFO: count ==126 [2025-03-24 06:00:19] Production.ERROR: pbx CDR StartTime 2025-03-24 03:00:06 - End Time 2025-03-24 06:00:06 [2025-03-24 06:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750177', 'tblTempUsageDetail_20' ) start [2025-03-24 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750177', 'tblTempUsageDetail_20' ) end [2025-03-24 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750177', 'tblTempVendorCDR_20' ) start [2025-03-24 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750177', 'tblTempVendorCDR_20' ) end [2025-03-24 06:00:19] Production.INFO: ProcessCDR(1,14750177,1,1,2) [2025-03-24 06:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750177', 'tblTempUsageDetail_20' ) start [2025-03-24 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750177', 'tblTempUsageDetail_20' ) end [2025-03-24 06:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 06:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 06:00:22] Production.INFO: ==22677== Releasing lock... [2025-03-24 06:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 06:00:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-24 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 03:01:05 [end_date_ymd] => 2025-03-24 06:01:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 03:01:05' and `end` < '2025-03-24 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-03-24 06:01:18] Production.INFO: count ==130 [2025-03-24 06:01:18] Production.ERROR: pbx CDR StartTime 2025-03-24 03:01:05 - End Time 2025-03-24 06:01:05 [2025-03-24 06:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750182', 'tblTempUsageDetail_20' ) start [2025-03-24 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750182', 'tblTempUsageDetail_20' ) end [2025-03-24 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750182', 'tblTempVendorCDR_20' ) start [2025-03-24 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750182', 'tblTempVendorCDR_20' ) end [2025-03-24 06:01:18] Production.INFO: ProcessCDR(1,14750182,1,1,2) [2025-03-24 06:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750182', 'tblTempUsageDetail_20' ) start [2025-03-24 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750182', 'tblTempUsageDetail_20' ) end [2025-03-24 06:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 06:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 06:01:21] Production.INFO: ==22782== Releasing lock... [2025-03-24 06:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 06:01:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 06:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 03:02:06 [end_date_ymd] => 2025-03-24 06:02:06 [RateCDR] => 1 ) [2025-03-24 06: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-03-24 03:02:06' and `end` < '2025-03-24 06: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-03-24 06:02:18] Production.INFO: count ==128 [2025-03-24 06:02:18] Production.ERROR: pbx CDR StartTime 2025-03-24 03:02:06 - End Time 2025-03-24 06:02:06 [2025-03-24 06:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750187', 'tblTempUsageDetail_20' ) start [2025-03-24 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750187', 'tblTempUsageDetail_20' ) end [2025-03-24 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750187', 'tblTempVendorCDR_20' ) start [2025-03-24 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750187', 'tblTempVendorCDR_20' ) end [2025-03-24 06:02:18] Production.INFO: ProcessCDR(1,14750187,1,1,2) [2025-03-24 06:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750187', 'tblTempUsageDetail_20' ) start [2025-03-24 06:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750187', 'tblTempUsageDetail_20' ) end [2025-03-24 06:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 06:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 06:02:23] Production.INFO: ==22869== Releasing lock... [2025-03-24 06:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 06:02:23] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 03:03:05 [end_date_ymd] => 2025-03-24 06:03:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 03:03:05' and `end` < '2025-03-24 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-03-24 06:03:17] Production.INFO: count ==129 [2025-03-24 06:03:17] Production.ERROR: pbx CDR StartTime 2025-03-24 03:03:05 - End Time 2025-03-24 06:03:05 [2025-03-24 06:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750192', 'tblTempUsageDetail_20' ) start [2025-03-24 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750192', 'tblTempUsageDetail_20' ) end [2025-03-24 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750192', 'tblTempVendorCDR_20' ) start [2025-03-24 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750192', 'tblTempVendorCDR_20' ) end [2025-03-24 06:03:17] Production.INFO: ProcessCDR(1,14750192,1,1,2) [2025-03-24 06:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750192', 'tblTempUsageDetail_20' ) start [2025-03-24 06:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750192', 'tblTempUsageDetail_20' ) end [2025-03-24 06:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 06:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 06:03:22] Production.INFO: ==22951== Releasing lock... [2025-03-24 06:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 06:03:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 03:04:05 [end_date_ymd] => 2025-03-24 06:04:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 03:04:05' and `end` < '2025-03-24 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-03-24 06:04:18] Production.INFO: count ==129 [2025-03-24 06:04:18] Production.ERROR: pbx CDR StartTime 2025-03-24 03:04:05 - End Time 2025-03-24 06:04:05 [2025-03-24 06:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750197', 'tblTempUsageDetail_20' ) start [2025-03-24 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750197', 'tblTempUsageDetail_20' ) end [2025-03-24 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750197', 'tblTempVendorCDR_20' ) start [2025-03-24 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750197', 'tblTempVendorCDR_20' ) end [2025-03-24 06:04:18] Production.INFO: ProcessCDR(1,14750197,1,1,2) [2025-03-24 06:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750197', 'tblTempUsageDetail_20' ) start [2025-03-24 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750197', 'tblTempUsageDetail_20' ) end [2025-03-24 06:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 06:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 06:04:21] Production.INFO: ==23042== Releasing lock... [2025-03-24 06:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 06:04:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 03:05:05 [end_date_ymd] => 2025-03-24 06:05:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 03:05:05' and `end` < '2025-03-24 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-03-24 06:05:17] Production.INFO: count ==129 [2025-03-24 06:05:17] Production.ERROR: pbx CDR StartTime 2025-03-24 03:05:05 - End Time 2025-03-24 06:05:05 [2025-03-24 06:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750202', 'tblTempUsageDetail_20' ) start [2025-03-24 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750202', 'tblTempUsageDetail_20' ) end [2025-03-24 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750202', 'tblTempVendorCDR_20' ) start [2025-03-24 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750202', 'tblTempVendorCDR_20' ) end [2025-03-24 06:05:17] Production.INFO: ProcessCDR(1,14750202,1,1,2) [2025-03-24 06:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750202', 'tblTempUsageDetail_20' ) start [2025-03-24 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750202', 'tblTempUsageDetail_20' ) end [2025-03-24 06:05:20] Production.ERROR: pbx prc_insertCDR start [2025-03-24 06:05:20] Production.ERROR: pbx prc_insertCDR end [2025-03-24 06:05:20] Production.INFO: ==23136== Releasing lock... [2025-03-24 06:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 06:05:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 06:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 03:06:06 [end_date_ymd] => 2025-03-24 06:06:06 [RateCDR] => 1 ) [2025-03-24 06: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-03-24 03:06:06' and `end` < '2025-03-24 06: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-03-24 06:06:18] Production.INFO: count ==130 [2025-03-24 06:06:18] Production.ERROR: pbx CDR StartTime 2025-03-24 03:06:06 - End Time 2025-03-24 06:06:06 [2025-03-24 06:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750207', 'tblTempUsageDetail_20' ) start [2025-03-24 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750207', 'tblTempUsageDetail_20' ) end [2025-03-24 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750207', 'tblTempVendorCDR_20' ) start [2025-03-24 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750207', 'tblTempVendorCDR_20' ) end [2025-03-24 06:06:18] Production.INFO: ProcessCDR(1,14750207,1,1,2) [2025-03-24 06:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750207', 'tblTempUsageDetail_20' ) start [2025-03-24 06:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750207', 'tblTempUsageDetail_20' ) end [2025-03-24 06:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 06:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 06:06:23] Production.INFO: ==23228== Releasing lock... [2025-03-24 06:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 06:06:23] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 03:07:05 [end_date_ymd] => 2025-03-24 06:07:05 [RateCDR] => 1 ) [2025-03-24 06:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 03:07:05' and `end` < '2025-03-24 06:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 06:07:17] Production.INFO: count ==130 [2025-03-24 06:07:17] Production.ERROR: pbx CDR StartTime 2025-03-24 03:07:05 - End Time 2025-03-24 06:07:05 [2025-03-24 06:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750212', 'tblTempUsageDetail_20' ) start [2025-03-24 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750212', 'tblTempUsageDetail_20' ) end [2025-03-24 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750212', 'tblTempVendorCDR_20' ) start [2025-03-24 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750212', 'tblTempVendorCDR_20' ) end [2025-03-24 06:07:17] Production.INFO: ProcessCDR(1,14750212,1,1,2) [2025-03-24 06:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750212', 'tblTempUsageDetail_20' ) start [2025-03-24 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750212', 'tblTempUsageDetail_20' ) end [2025-03-24 06:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 06:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 06:07:21] Production.INFO: ==23316== Releasing lock... [2025-03-24 06:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 06:07:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 03:08:05 [end_date_ymd] => 2025-03-24 06:08:05 [RateCDR] => 1 ) [2025-03-24 06:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 03:08:05' and `end` < '2025-03-24 06:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 06:08:17] Production.INFO: count ==129 [2025-03-24 06:08:17] Production.ERROR: pbx CDR StartTime 2025-03-24 03:08:05 - End Time 2025-03-24 06:08:05 [2025-03-24 06:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750217', 'tblTempUsageDetail_20' ) start [2025-03-24 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750217', 'tblTempUsageDetail_20' ) end [2025-03-24 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750217', 'tblTempVendorCDR_20' ) start [2025-03-24 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750217', 'tblTempVendorCDR_20' ) end [2025-03-24 06:08:17] Production.INFO: ProcessCDR(1,14750217,1,1,2) [2025-03-24 06:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750217', 'tblTempUsageDetail_20' ) start [2025-03-24 06:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750217', 'tblTempUsageDetail_20' ) end [2025-03-24 06:08:20] Production.ERROR: pbx prc_insertCDR start [2025-03-24 06:08:20] Production.ERROR: pbx prc_insertCDR end [2025-03-24 06:08:20] Production.INFO: ==23402== Releasing lock... [2025-03-24 06:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 06:08:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 03:09:05 [end_date_ymd] => 2025-03-24 06:09:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 03:09:05' and `end` < '2025-03-24 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-03-24 06:09:17] Production.INFO: count ==130 [2025-03-24 06:09:17] Production.ERROR: pbx CDR StartTime 2025-03-24 03:09:05 - End Time 2025-03-24 06:09:05 [2025-03-24 06:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750222', 'tblTempUsageDetail_20' ) start [2025-03-24 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750222', 'tblTempUsageDetail_20' ) end [2025-03-24 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750222', 'tblTempVendorCDR_20' ) start [2025-03-24 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750222', 'tblTempVendorCDR_20' ) end [2025-03-24 06:09:17] Production.INFO: ProcessCDR(1,14750222,1,1,2) [2025-03-24 06:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750222', 'tblTempUsageDetail_20' ) start [2025-03-24 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750222', 'tblTempUsageDetail_20' ) end [2025-03-24 06:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 06:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 06:09:21] Production.INFO: ==23491== Releasing lock... [2025-03-24 06:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 06:09:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 03:10:06 [end_date_ymd] => 2025-03-24 06:10:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 03:10:06' and `end` < '2025-03-24 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-03-24 06:10:18] Production.INFO: count ==121 [2025-03-24 06:10:18] Production.ERROR: pbx CDR StartTime 2025-03-24 03:10:06 - End Time 2025-03-24 06:10:06 [2025-03-24 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750227', 'tblTempUsageDetail_20' ) start [2025-03-24 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750227', 'tblTempUsageDetail_20' ) end [2025-03-24 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750227', 'tblTempVendorCDR_20' ) start [2025-03-24 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750227', 'tblTempVendorCDR_20' ) end [2025-03-24 06:10:18] Production.INFO: ProcessCDR(1,14750227,1,1,2) [2025-03-24 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750227', 'tblTempUsageDetail_20' ) start [2025-03-24 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750227', 'tblTempUsageDetail_20' ) end [2025-03-24 06:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 06:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 06:10:22] Production.INFO: ==23578== Releasing lock... [2025-03-24 06:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 06:10:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 03:11:05 [end_date_ymd] => 2025-03-24 06:11:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 03:11:05' and `end` < '2025-03-24 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-03-24 06:11:17] Production.INFO: count ==121 [2025-03-24 06:11:17] Production.ERROR: pbx CDR StartTime 2025-03-24 03:11:05 - End Time 2025-03-24 06:11:05 [2025-03-24 06:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750233', 'tblTempUsageDetail_20' ) start [2025-03-24 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750233', 'tblTempUsageDetail_20' ) end [2025-03-24 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750233', 'tblTempVendorCDR_20' ) start [2025-03-24 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750233', 'tblTempVendorCDR_20' ) end [2025-03-24 06:11:17] Production.INFO: ProcessCDR(1,14750233,1,1,2) [2025-03-24 06:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750233', 'tblTempUsageDetail_20' ) start [2025-03-24 06:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750233', 'tblTempUsageDetail_20' ) end [2025-03-24 06:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-24 06:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-24 06:11:21] Production.INFO: ==23667== Releasing lock... [2025-03-24 06:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 06:11:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 03:12:05 [end_date_ymd] => 2025-03-24 06:12:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 03:12:05' and `end` < '2025-03-24 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-03-24 06:12:17] Production.INFO: count ==121 [2025-03-24 06:12:17] Production.ERROR: pbx CDR StartTime 2025-03-24 03:12:05 - End Time 2025-03-24 06:12:05 [2025-03-24 06:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750238', 'tblTempUsageDetail_20' ) start [2025-03-24 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750238', 'tblTempUsageDetail_20' ) end [2025-03-24 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750238', 'tblTempVendorCDR_20' ) start [2025-03-24 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750238', 'tblTempVendorCDR_20' ) end [2025-03-24 06:12:17] Production.INFO: ProcessCDR(1,14750238,1,1,2) [2025-03-24 06:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750238', 'tblTempUsageDetail_20' ) start [2025-03-24 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750238', 'tblTempUsageDetail_20' ) end [2025-03-24 06:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 06:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 06:12:21] Production.INFO: ==23753== Releasing lock... [2025-03-24 06:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 06:12:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 03:13:05 [end_date_ymd] => 2025-03-24 06:13:05 [RateCDR] => 1 ) [2025-03-24 06:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 03:13:05' and `end` < '2025-03-24 06:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 06:13:17] Production.INFO: count ==121 [2025-03-24 06:13:17] Production.ERROR: pbx CDR StartTime 2025-03-24 03:13:05 - End Time 2025-03-24 06:13:05 [2025-03-24 06:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750243', 'tblTempUsageDetail_20' ) start [2025-03-24 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750243', 'tblTempUsageDetail_20' ) end [2025-03-24 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750243', 'tblTempVendorCDR_20' ) start [2025-03-24 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750243', 'tblTempVendorCDR_20' ) end [2025-03-24 06:13:17] Production.INFO: ProcessCDR(1,14750243,1,1,2) [2025-03-24 06:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750243', 'tblTempUsageDetail_20' ) start [2025-03-24 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750243', 'tblTempUsageDetail_20' ) end [2025-03-24 06:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 06:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 06:13:21] Production.INFO: ==23837== Releasing lock... [2025-03-24 06:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 06:13:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 03:14:05 [end_date_ymd] => 2025-03-24 06:14:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 03:14:05' and `end` < '2025-03-24 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-03-24 06:14:17] Production.INFO: count ==121 [2025-03-24 06:14:18] Production.ERROR: pbx CDR StartTime 2025-03-24 03:14:05 - End Time 2025-03-24 06:14:05 [2025-03-24 06:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750248', 'tblTempUsageDetail_20' ) start [2025-03-24 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750248', 'tblTempUsageDetail_20' ) end [2025-03-24 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750248', 'tblTempVendorCDR_20' ) start [2025-03-24 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750248', 'tblTempVendorCDR_20' ) end [2025-03-24 06:14:18] Production.INFO: ProcessCDR(1,14750248,1,1,2) [2025-03-24 06:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750248', 'tblTempUsageDetail_20' ) start [2025-03-24 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750248', 'tblTempUsageDetail_20' ) end [2025-03-24 06:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 06:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 06:14:21] Production.INFO: ==23970== Releasing lock... [2025-03-24 06:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 06:14:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 03:15:05 [end_date_ymd] => 2025-03-24 06:15:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 03:15:05' and `end` < '2025-03-24 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-03-24 06:15:17] Production.INFO: count ==121 [2025-03-24 06:15:17] Production.ERROR: pbx CDR StartTime 2025-03-24 03:15:05 - End Time 2025-03-24 06:15:05 [2025-03-24 06:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750253', 'tblTempUsageDetail_20' ) start [2025-03-24 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750253', 'tblTempUsageDetail_20' ) end [2025-03-24 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750253', 'tblTempVendorCDR_20' ) start [2025-03-24 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750253', 'tblTempVendorCDR_20' ) end [2025-03-24 06:15:17] Production.INFO: ProcessCDR(1,14750253,1,1,2) [2025-03-24 06:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750253', 'tblTempUsageDetail_20' ) start [2025-03-24 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750253', 'tblTempUsageDetail_20' ) end [2025-03-24 06:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 06:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 06:15:21] Production.INFO: ==24059== Releasing lock... [2025-03-24 06:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 06:15:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 06:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 03:16:04 [end_date_ymd] => 2025-03-24 06:16:04 [RateCDR] => 1 ) [2025-03-24 06:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 03:16:04' and `end` < '2025-03-24 06:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 06:16:16] Production.INFO: count ==121 [2025-03-24 06:16:16] Production.ERROR: pbx CDR StartTime 2025-03-24 03:16:04 - End Time 2025-03-24 06:16:04 [2025-03-24 06:16:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 06:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750254', 'tblTempUsageDetail_20' ) start [2025-03-24 06:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750254', 'tblTempUsageDetail_20' ) end [2025-03-24 06:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750254', 'tblTempVendorCDR_20' ) start [2025-03-24 06:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750254', 'tblTempVendorCDR_20' ) end [2025-03-24 06:16:16] Production.INFO: ProcessCDR(1,14750254,1,1,2) [2025-03-24 06:16:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:16:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:16:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750254', 'tblTempUsageDetail_20' ) start [2025-03-24 06:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750254', 'tblTempUsageDetail_20' ) end [2025-03-24 06:16:20] Production.ERROR: pbx prc_insertCDR start [2025-03-24 06:16:20] Production.ERROR: pbx prc_insertCDR end [2025-03-24 06:16:20] Production.INFO: ==24143== Releasing lock... [2025-03-24 06:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 06:16:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 03:17:05 [end_date_ymd] => 2025-03-24 06:17:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 03:17:05' and `end` < '2025-03-24 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-03-24 06:17:17] Production.INFO: count ==122 [2025-03-24 06:17:17] Production.ERROR: pbx CDR StartTime 2025-03-24 03:17:05 - End Time 2025-03-24 06:17:05 [2025-03-24 06:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750263', 'tblTempUsageDetail_20' ) start [2025-03-24 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750263', 'tblTempUsageDetail_20' ) end [2025-03-24 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750263', 'tblTempVendorCDR_20' ) start [2025-03-24 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750263', 'tblTempVendorCDR_20' ) end [2025-03-24 06:17:17] Production.INFO: ProcessCDR(1,14750263,1,1,2) [2025-03-24 06:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750263', 'tblTempUsageDetail_20' ) start [2025-03-24 06:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750263', 'tblTempUsageDetail_20' ) end [2025-03-24 06:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 06:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 06:17:22] Production.INFO: ==24228== Releasing lock... [2025-03-24 06:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 06:17:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 03:18:05 [end_date_ymd] => 2025-03-24 06:18:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 03:18:05' and `end` < '2025-03-24 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-03-24 06:18:17] Production.INFO: count ==126 [2025-03-24 06:18:17] Production.ERROR: pbx CDR StartTime 2025-03-24 03:18:05 - End Time 2025-03-24 06:18:05 [2025-03-24 06:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750268', 'tblTempUsageDetail_20' ) start [2025-03-24 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750268', 'tblTempUsageDetail_20' ) end [2025-03-24 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750268', 'tblTempVendorCDR_20' ) start [2025-03-24 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750268', 'tblTempVendorCDR_20' ) end [2025-03-24 06:18:17] Production.INFO: ProcessCDR(1,14750268,1,1,2) [2025-03-24 06:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750268', 'tblTempUsageDetail_20' ) start [2025-03-24 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750268', 'tblTempUsageDetail_20' ) end [2025-03-24 06:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 06:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 06:18:21] Production.INFO: ==24314== Releasing lock... [2025-03-24 06:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 06:18:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-24 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 03:19:05 [end_date_ymd] => 2025-03-24 06:19:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 03:19:05' and `end` < '2025-03-24 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-03-24 06:19:17] Production.INFO: count ==125 [2025-03-24 06:19:17] Production.ERROR: pbx CDR StartTime 2025-03-24 03:19:05 - End Time 2025-03-24 06:19:05 [2025-03-24 06:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750273', 'tblTempUsageDetail_20' ) start [2025-03-24 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750273', 'tblTempUsageDetail_20' ) end [2025-03-24 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750273', 'tblTempVendorCDR_20' ) start [2025-03-24 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750273', 'tblTempVendorCDR_20' ) end [2025-03-24 06:19:18] Production.INFO: ProcessCDR(1,14750273,1,1,2) [2025-03-24 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750273', 'tblTempUsageDetail_20' ) start [2025-03-24 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750273', 'tblTempUsageDetail_20' ) end [2025-03-24 06:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 06:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 06:19:21] Production.INFO: ==24403== Releasing lock... [2025-03-24 06:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 06:19:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-24 06:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 03:20:05 [end_date_ymd] => 2025-03-24 06:20:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 03:20:05' and `end` < '2025-03-24 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-03-24 06:20:17] Production.INFO: count ==122 [2025-03-24 06:20:17] Production.ERROR: pbx CDR StartTime 2025-03-24 03:20:05 - End Time 2025-03-24 06:20:05 [2025-03-24 06:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750279', 'tblTempUsageDetail_20' ) start [2025-03-24 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750279', 'tblTempUsageDetail_20' ) end [2025-03-24 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750279', 'tblTempVendorCDR_20' ) start [2025-03-24 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750279', 'tblTempVendorCDR_20' ) end [2025-03-24 06:20:17] Production.INFO: ProcessCDR(1,14750279,1,1,2) [2025-03-24 06:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750279', 'tblTempUsageDetail_20' ) start [2025-03-24 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750279', 'tblTempUsageDetail_20' ) end [2025-03-24 06:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 06:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 06:20:22] Production.INFO: ==24492== Releasing lock... [2025-03-24 06:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 06:20:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-24 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 03:21:05 [end_date_ymd] => 2025-03-24 06:21:05 [RateCDR] => 1 ) [2025-03-24 06:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 03:21:05' and `end` < '2025-03-24 06:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 06:21:17] Production.INFO: count ==121 [2025-03-24 06:21:17] Production.ERROR: pbx CDR StartTime 2025-03-24 03:21:05 - End Time 2025-03-24 06:21:05 [2025-03-24 06:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750284', 'tblTempUsageDetail_20' ) start [2025-03-24 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750284', 'tblTempUsageDetail_20' ) end [2025-03-24 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750284', 'tblTempVendorCDR_20' ) start [2025-03-24 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750284', 'tblTempVendorCDR_20' ) end [2025-03-24 06:21:17] Production.INFO: ProcessCDR(1,14750284,1,1,2) [2025-03-24 06:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750284', 'tblTempUsageDetail_20' ) start [2025-03-24 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750284', 'tblTempUsageDetail_20' ) end [2025-03-24 06:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 06:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 06:21:21] Production.INFO: ==24582== Releasing lock... [2025-03-24 06:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 06:21:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-24 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 03:22:05 [end_date_ymd] => 2025-03-24 06:22:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 03:22:05' and `end` < '2025-03-24 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-03-24 06:22:18] Production.INFO: count ==121 [2025-03-24 06:22:18] Production.ERROR: pbx CDR StartTime 2025-03-24 03:22:05 - End Time 2025-03-24 06:22:05 [2025-03-24 06:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750289', 'tblTempUsageDetail_20' ) start [2025-03-24 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750289', 'tblTempUsageDetail_20' ) end [2025-03-24 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750289', 'tblTempVendorCDR_20' ) start [2025-03-24 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750289', 'tblTempVendorCDR_20' ) end [2025-03-24 06:22:18] Production.INFO: ProcessCDR(1,14750289,1,1,2) [2025-03-24 06:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750289', 'tblTempUsageDetail_20' ) start [2025-03-24 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750289', 'tblTempUsageDetail_20' ) end [2025-03-24 06:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 06:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 06:22:21] Production.INFO: ==24668== Releasing lock... [2025-03-24 06:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 06:22:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-24 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 03:23:05 [end_date_ymd] => 2025-03-24 06:23:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 03:23:05' and `end` < '2025-03-24 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-03-24 06:23:18] Production.INFO: count ==121 [2025-03-24 06:23:18] Production.ERROR: pbx CDR StartTime 2025-03-24 03:23:05 - End Time 2025-03-24 06:23:05 [2025-03-24 06:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750294', 'tblTempUsageDetail_20' ) start [2025-03-24 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750294', 'tblTempUsageDetail_20' ) end [2025-03-24 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750294', 'tblTempVendorCDR_20' ) start [2025-03-24 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750294', 'tblTempVendorCDR_20' ) end [2025-03-24 06:23:18] Production.INFO: ProcessCDR(1,14750294,1,1,2) [2025-03-24 06:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750294', 'tblTempUsageDetail_20' ) start [2025-03-24 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750294', 'tblTempUsageDetail_20' ) end [2025-03-24 06:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 06:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 06:23:21] Production.INFO: ==24759== Releasing lock... [2025-03-24 06:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 06:23:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-24 06:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 03:24:06 [end_date_ymd] => 2025-03-24 06:24:06 [RateCDR] => 1 ) [2025-03-24 06:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 03:24:06' and `end` < '2025-03-24 06:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 06:24:18] Production.INFO: count ==121 [2025-03-24 06:24:18] Production.ERROR: pbx CDR StartTime 2025-03-24 03:24:06 - End Time 2025-03-24 06:24:06 [2025-03-24 06:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750299', 'tblTempUsageDetail_20' ) start [2025-03-24 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750299', 'tblTempUsageDetail_20' ) end [2025-03-24 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750299', 'tblTempVendorCDR_20' ) start [2025-03-24 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750299', 'tblTempVendorCDR_20' ) end [2025-03-24 06:24:18] Production.INFO: ProcessCDR(1,14750299,1,1,2) [2025-03-24 06:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750299', 'tblTempUsageDetail_20' ) start [2025-03-24 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750299', 'tblTempUsageDetail_20' ) end [2025-03-24 06:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 06:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 06:24:21] Production.INFO: ==24846== Releasing lock... [2025-03-24 06:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 06:24:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-24 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 03:25:05 [end_date_ymd] => 2025-03-24 06:25:05 [RateCDR] => 1 ) [2025-03-24 06:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 03:25:05' and `end` < '2025-03-24 06:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 06:25:17] Production.INFO: count ==120 [2025-03-24 06:25:17] Production.ERROR: pbx CDR StartTime 2025-03-24 03:25:05 - End Time 2025-03-24 06:25:05 [2025-03-24 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750304', 'tblTempUsageDetail_20' ) start [2025-03-24 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750304', 'tblTempUsageDetail_20' ) end [2025-03-24 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750304', 'tblTempVendorCDR_20' ) start [2025-03-24 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750304', 'tblTempVendorCDR_20' ) end [2025-03-24 06:25:17] Production.INFO: ProcessCDR(1,14750304,1,1,2) [2025-03-24 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750304', 'tblTempUsageDetail_20' ) start [2025-03-24 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750304', 'tblTempUsageDetail_20' ) end [2025-03-24 06:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-24 06:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-24 06:25:20] Production.INFO: ==24936== Releasing lock... [2025-03-24 06:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 06:25:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-24 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 03:26:05 [end_date_ymd] => 2025-03-24 06:26:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 03:26:05' and `end` < '2025-03-24 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-03-24 06:26:17] Production.INFO: count ==120 [2025-03-24 06:26:17] Production.ERROR: pbx CDR StartTime 2025-03-24 03:26:05 - End Time 2025-03-24 06:26:05 [2025-03-24 06:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750309', 'tblTempUsageDetail_20' ) start [2025-03-24 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750309', 'tblTempUsageDetail_20' ) end [2025-03-24 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750309', 'tblTempVendorCDR_20' ) start [2025-03-24 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750309', 'tblTempVendorCDR_20' ) end [2025-03-24 06:26:17] Production.INFO: ProcessCDR(1,14750309,1,1,2) [2025-03-24 06:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750309', 'tblTempUsageDetail_20' ) start [2025-03-24 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750309', 'tblTempUsageDetail_20' ) end [2025-03-24 06:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-24 06:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-24 06:26:20] Production.INFO: ==25024== Releasing lock... [2025-03-24 06:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 06:26:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-24 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 03:27:05 [end_date_ymd] => 2025-03-24 06:27:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 03:27:05' and `end` < '2025-03-24 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-03-24 06:27:17] Production.INFO: count ==120 [2025-03-24 06:27:17] Production.ERROR: pbx CDR StartTime 2025-03-24 03:27:05 - End Time 2025-03-24 06:27:05 [2025-03-24 06:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750314', 'tblTempUsageDetail_20' ) start [2025-03-24 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750314', 'tblTempUsageDetail_20' ) end [2025-03-24 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750314', 'tblTempVendorCDR_20' ) start [2025-03-24 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750314', 'tblTempVendorCDR_20' ) end [2025-03-24 06:27:17] Production.INFO: ProcessCDR(1,14750314,1,1,2) [2025-03-24 06:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750314', 'tblTempUsageDetail_20' ) start [2025-03-24 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750314', 'tblTempUsageDetail_20' ) end [2025-03-24 06:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 06:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 06:27:21] Production.INFO: ==25110== Releasing lock... [2025-03-24 06:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 06:27:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-24 06:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 03:28:06 [end_date_ymd] => 2025-03-24 06:28:06 [RateCDR] => 1 ) [2025-03-24 06: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-03-24 03:28:06' and `end` < '2025-03-24 06: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-03-24 06:28:18] Production.INFO: count ==120 [2025-03-24 06:28:18] Production.ERROR: pbx CDR StartTime 2025-03-24 03:28:06 - End Time 2025-03-24 06:28:06 [2025-03-24 06:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750319', 'tblTempUsageDetail_20' ) start [2025-03-24 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750319', 'tblTempUsageDetail_20' ) end [2025-03-24 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750319', 'tblTempVendorCDR_20' ) start [2025-03-24 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750319', 'tblTempVendorCDR_20' ) end [2025-03-24 06:28:18] Production.INFO: ProcessCDR(1,14750319,1,1,2) [2025-03-24 06:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750319', 'tblTempUsageDetail_20' ) start [2025-03-24 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750319', 'tblTempUsageDetail_20' ) end [2025-03-24 06:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 06:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 06:28:21] Production.INFO: ==25198== Releasing lock... [2025-03-24 06:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 06:28:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-24 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 03:29:05 [end_date_ymd] => 2025-03-24 06:29:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 03:29:05' and `end` < '2025-03-24 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-03-24 06:29:17] Production.INFO: count ==120 [2025-03-24 06:29:17] Production.ERROR: pbx CDR StartTime 2025-03-24 03:29:05 - End Time 2025-03-24 06:29:05 [2025-03-24 06:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750324', 'tblTempUsageDetail_20' ) start [2025-03-24 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750324', 'tblTempUsageDetail_20' ) end [2025-03-24 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750324', 'tblTempVendorCDR_20' ) start [2025-03-24 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750324', 'tblTempVendorCDR_20' ) end [2025-03-24 06:29:17] Production.INFO: ProcessCDR(1,14750324,1,1,2) [2025-03-24 06:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750324', 'tblTempUsageDetail_20' ) start [2025-03-24 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750324', 'tblTempUsageDetail_20' ) end [2025-03-24 06:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-24 06:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-24 06:29:20] Production.INFO: ==25322== Releasing lock... [2025-03-24 06:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 06:29:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-24 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 03:30:06 [end_date_ymd] => 2025-03-24 06:30:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 03:30:06' and `end` < '2025-03-24 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-03-24 06:30:18] Production.INFO: count ==130 [2025-03-24 06:30:18] Production.ERROR: pbx CDR StartTime 2025-03-24 03:30:06 - End Time 2025-03-24 06:30:06 [2025-03-24 06:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750329', 'tblTempUsageDetail_20' ) start [2025-03-24 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750329', 'tblTempUsageDetail_20' ) end [2025-03-24 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750329', 'tblTempVendorCDR_20' ) start [2025-03-24 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750329', 'tblTempVendorCDR_20' ) end [2025-03-24 06:30:18] Production.INFO: ProcessCDR(1,14750329,1,1,2) [2025-03-24 06:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750329', 'tblTempUsageDetail_20' ) start [2025-03-24 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750329', 'tblTempUsageDetail_20' ) end [2025-03-24 06:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 06:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 06:30:22] Production.INFO: ==25412== Releasing lock... [2025-03-24 06:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 06:30:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-24 06:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 03:31:04 [end_date_ymd] => 2025-03-24 06:31:04 [RateCDR] => 1 ) [2025-03-24 06:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 03:31:04' and `end` < '2025-03-24 06:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 06:31:17] Production.INFO: count ==135 [2025-03-24 06:31:17] Production.ERROR: pbx CDR StartTime 2025-03-24 03:31:04 - End Time 2025-03-24 06:31:04 [2025-03-24 06:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750335', 'tblTempUsageDetail_20' ) start [2025-03-24 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750335', 'tblTempUsageDetail_20' ) end [2025-03-24 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750335', 'tblTempVendorCDR_20' ) start [2025-03-24 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750335', 'tblTempVendorCDR_20' ) end [2025-03-24 06:31:17] Production.INFO: ProcessCDR(1,14750335,1,1,2) [2025-03-24 06:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750335', 'tblTempUsageDetail_20' ) start [2025-03-24 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750335', 'tblTempUsageDetail_20' ) end [2025-03-24 06:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 06:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 06:31:21] Production.INFO: ==25501== Releasing lock... [2025-03-24 06:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 06:31:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-24 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 03:32:05 [end_date_ymd] => 2025-03-24 06:32:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 03:32:05' and `end` < '2025-03-24 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-03-24 06:32:17] Production.INFO: count ==135 [2025-03-24 06:32:18] Production.ERROR: pbx CDR StartTime 2025-03-24 03:32:05 - End Time 2025-03-24 06:32:05 [2025-03-24 06:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750340', 'tblTempUsageDetail_20' ) start [2025-03-24 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750340', 'tblTempUsageDetail_20' ) end [2025-03-24 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750340', 'tblTempVendorCDR_20' ) start [2025-03-24 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750340', 'tblTempVendorCDR_20' ) end [2025-03-24 06:32:18] Production.INFO: ProcessCDR(1,14750340,1,1,2) [2025-03-24 06:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750340', 'tblTempUsageDetail_20' ) start [2025-03-24 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750340', 'tblTempUsageDetail_20' ) end [2025-03-24 06:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 06:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 06:32:21] Production.INFO: ==25586== Releasing lock... [2025-03-24 06:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 06:32:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-24 06:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 03:33:04 [end_date_ymd] => 2025-03-24 06:33:04 [RateCDR] => 1 ) [2025-03-24 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-03-24 03:33:04' and `end` < '2025-03-24 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-03-24 06:33:17] Production.INFO: count ==135 [2025-03-24 06:33:17] Production.ERROR: pbx CDR StartTime 2025-03-24 03:33:04 - End Time 2025-03-24 06:33:04 [2025-03-24 06:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750345', 'tblTempUsageDetail_20' ) start [2025-03-24 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750345', 'tblTempUsageDetail_20' ) end [2025-03-24 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750345', 'tblTempVendorCDR_20' ) start [2025-03-24 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750345', 'tblTempVendorCDR_20' ) end [2025-03-24 06:33:17] Production.INFO: ProcessCDR(1,14750345,1,1,2) [2025-03-24 06:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750345', 'tblTempUsageDetail_20' ) start [2025-03-24 06:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750345', 'tblTempUsageDetail_20' ) end [2025-03-24 06:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-24 06:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-24 06:33:20] Production.INFO: ==25674== Releasing lock... [2025-03-24 06:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 06:33:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-24 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 03:34:05 [end_date_ymd] => 2025-03-24 06:34:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 03:34:05' and `end` < '2025-03-24 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-03-24 06:34:17] Production.INFO: count ==135 [2025-03-24 06:34:17] Production.ERROR: pbx CDR StartTime 2025-03-24 03:34:05 - End Time 2025-03-24 06:34:05 [2025-03-24 06:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750350', 'tblTempUsageDetail_20' ) start [2025-03-24 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750350', 'tblTempUsageDetail_20' ) end [2025-03-24 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750350', 'tblTempVendorCDR_20' ) start [2025-03-24 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750350', 'tblTempVendorCDR_20' ) end [2025-03-24 06:34:17] Production.INFO: ProcessCDR(1,14750350,1,1,2) [2025-03-24 06:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750350', 'tblTempUsageDetail_20' ) start [2025-03-24 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750350', 'tblTempUsageDetail_20' ) end [2025-03-24 06:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 06:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 06:34:21] Production.INFO: ==25764== Releasing lock... [2025-03-24 06:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 06:34:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-24 06:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 03:35:06 [end_date_ymd] => 2025-03-24 06:35:06 [RateCDR] => 1 ) [2025-03-24 06: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-03-24 03:35:06' and `end` < '2025-03-24 06: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-03-24 06:35:18] Production.INFO: count ==139 [2025-03-24 06:35:18] Production.ERROR: pbx CDR StartTime 2025-03-24 03:35:06 - End Time 2025-03-24 06:35:06 [2025-03-24 06:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750355', 'tblTempUsageDetail_20' ) start [2025-03-24 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750355', 'tblTempUsageDetail_20' ) end [2025-03-24 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750355', 'tblTempVendorCDR_20' ) start [2025-03-24 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750355', 'tblTempVendorCDR_20' ) end [2025-03-24 06:35:18] Production.INFO: ProcessCDR(1,14750355,1,1,2) [2025-03-24 06:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750355', 'tblTempUsageDetail_20' ) start [2025-03-24 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750355', 'tblTempUsageDetail_20' ) end [2025-03-24 06:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 06:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 06:35:21] Production.INFO: ==25847== Releasing lock... [2025-03-24 06:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 06:35:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 03:36:05 [end_date_ymd] => 2025-03-24 06:36:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 03:36:05' and `end` < '2025-03-24 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-03-24 06:36:17] Production.INFO: count ==139 [2025-03-24 06:36:17] Production.ERROR: pbx CDR StartTime 2025-03-24 03:36:05 - End Time 2025-03-24 06:36:05 [2025-03-24 06:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750360', 'tblTempUsageDetail_20' ) start [2025-03-24 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750360', 'tblTempUsageDetail_20' ) end [2025-03-24 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750360', 'tblTempVendorCDR_20' ) start [2025-03-24 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750360', 'tblTempVendorCDR_20' ) end [2025-03-24 06:36:17] Production.INFO: ProcessCDR(1,14750360,1,1,2) [2025-03-24 06:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750360', 'tblTempUsageDetail_20' ) start [2025-03-24 06:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750360', 'tblTempUsageDetail_20' ) end [2025-03-24 06:36:20] Production.ERROR: pbx prc_insertCDR start [2025-03-24 06:36:20] Production.ERROR: pbx prc_insertCDR end [2025-03-24 06:36:20] Production.INFO: ==25934== Releasing lock... [2025-03-24 06:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 06:36:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 06:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 03:37:06 [end_date_ymd] => 2025-03-24 06:37:06 [RateCDR] => 1 ) [2025-03-24 06: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-03-24 03:37:06' and `end` < '2025-03-24 06: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-03-24 06:37:18] Production.INFO: count ==140 [2025-03-24 06:37:18] Production.ERROR: pbx CDR StartTime 2025-03-24 03:37:06 - End Time 2025-03-24 06:37:06 [2025-03-24 06:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750365', 'tblTempUsageDetail_20' ) start [2025-03-24 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750365', 'tblTempUsageDetail_20' ) end [2025-03-24 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750365', 'tblTempVendorCDR_20' ) start [2025-03-24 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750365', 'tblTempVendorCDR_20' ) end [2025-03-24 06:37:18] Production.INFO: ProcessCDR(1,14750365,1,1,2) [2025-03-24 06:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750365', 'tblTempUsageDetail_20' ) start [2025-03-24 06:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750365', 'tblTempUsageDetail_20' ) end [2025-03-24 06:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 06:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 06:37:22] Production.INFO: ==26024== Releasing lock... [2025-03-24 06:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 06:37:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 03:38:05 [end_date_ymd] => 2025-03-24 06:38:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 03:38:05' and `end` < '2025-03-24 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-03-24 06:38:17] Production.INFO: count ==140 [2025-03-24 06:38:17] Production.ERROR: pbx CDR StartTime 2025-03-24 03:38:05 - End Time 2025-03-24 06:38:05 [2025-03-24 06:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750370', 'tblTempUsageDetail_20' ) start [2025-03-24 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750370', 'tblTempUsageDetail_20' ) end [2025-03-24 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750370', 'tblTempVendorCDR_20' ) start [2025-03-24 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750370', 'tblTempVendorCDR_20' ) end [2025-03-24 06:38:17] Production.INFO: ProcessCDR(1,14750370,1,1,2) [2025-03-24 06:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750370', 'tblTempUsageDetail_20' ) start [2025-03-24 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750370', 'tblTempUsageDetail_20' ) end [2025-03-24 06:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 06:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 06:38:21] Production.INFO: ==26114== Releasing lock... [2025-03-24 06:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 06:38:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 03:39:05 [end_date_ymd] => 2025-03-24 06:39:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 03:39:05' and `end` < '2025-03-24 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-03-24 06:39:17] Production.INFO: count ==140 [2025-03-24 06:39:17] Production.ERROR: pbx CDR StartTime 2025-03-24 03:39:05 - End Time 2025-03-24 06:39:05 [2025-03-24 06:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750375', 'tblTempUsageDetail_20' ) start [2025-03-24 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750375', 'tblTempUsageDetail_20' ) end [2025-03-24 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750375', 'tblTempVendorCDR_20' ) start [2025-03-24 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750375', 'tblTempVendorCDR_20' ) end [2025-03-24 06:39:17] Production.INFO: ProcessCDR(1,14750375,1,1,2) [2025-03-24 06:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750375', 'tblTempUsageDetail_20' ) start [2025-03-24 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750375', 'tblTempUsageDetail_20' ) end [2025-03-24 06:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 06:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 06:39:21] Production.INFO: ==26199== Releasing lock... [2025-03-24 06:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 06:39:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 06:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 03:40:05 [end_date_ymd] => 2025-03-24 06:40:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 03:40:05' and `end` < '2025-03-24 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-03-24 06:40:18] Production.INFO: count ==140 [2025-03-24 06:40:18] Production.ERROR: pbx CDR StartTime 2025-03-24 03:40:05 - End Time 2025-03-24 06:40:05 [2025-03-24 06:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750380', 'tblTempUsageDetail_20' ) start [2025-03-24 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750380', 'tblTempUsageDetail_20' ) end [2025-03-24 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750380', 'tblTempVendorCDR_20' ) start [2025-03-24 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750380', 'tblTempVendorCDR_20' ) end [2025-03-24 06:40:18] Production.INFO: ProcessCDR(1,14750380,1,1,2) [2025-03-24 06:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750380', 'tblTempUsageDetail_20' ) start [2025-03-24 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750380', 'tblTempUsageDetail_20' ) end [2025-03-24 06:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 06:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 06:40:21] Production.INFO: ==26287== Releasing lock... [2025-03-24 06:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 06:40:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 03:41:05 [end_date_ymd] => 2025-03-24 06:41:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 03:41:05' and `end` < '2025-03-24 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-03-24 06:41:17] Production.INFO: count ==140 [2025-03-24 06:41:17] Production.ERROR: pbx CDR StartTime 2025-03-24 03:41:05 - End Time 2025-03-24 06:41:05 [2025-03-24 06:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750386', 'tblTempUsageDetail_20' ) start [2025-03-24 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750386', 'tblTempUsageDetail_20' ) end [2025-03-24 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750386', 'tblTempVendorCDR_20' ) start [2025-03-24 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750386', 'tblTempVendorCDR_20' ) end [2025-03-24 06:41:17] Production.INFO: ProcessCDR(1,14750386,1,1,2) [2025-03-24 06:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750386', 'tblTempUsageDetail_20' ) start [2025-03-24 06:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750386', 'tblTempUsageDetail_20' ) end [2025-03-24 06:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-24 06:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-24 06:41:20] Production.INFO: ==26383== Releasing lock... [2025-03-24 06:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 06:41:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 06:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 03:42:06 [end_date_ymd] => 2025-03-24 06:42:06 [RateCDR] => 1 ) [2025-03-24 06:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 03:42:06' and `end` < '2025-03-24 06:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 06:42:18] Production.INFO: count ==140 [2025-03-24 06:42:18] Production.ERROR: pbx CDR StartTime 2025-03-24 03:42:06 - End Time 2025-03-24 06:42:06 [2025-03-24 06:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750391', 'tblTempUsageDetail_20' ) start [2025-03-24 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750391', 'tblTempUsageDetail_20' ) end [2025-03-24 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750391', 'tblTempVendorCDR_20' ) start [2025-03-24 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750391', 'tblTempVendorCDR_20' ) end [2025-03-24 06:42:18] Production.INFO: ProcessCDR(1,14750391,1,1,2) [2025-03-24 06:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750391', 'tblTempUsageDetail_20' ) start [2025-03-24 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750391', 'tblTempUsageDetail_20' ) end [2025-03-24 06:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 06:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 06:42:21] Production.INFO: ==26480== Releasing lock... [2025-03-24 06:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 06:42:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 03:43:05 [end_date_ymd] => 2025-03-24 06:43:05 [RateCDR] => 1 ) [2025-03-24 06:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 03:43:05' and `end` < '2025-03-24 06:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 06:43:17] Production.INFO: count ==140 [2025-03-24 06:43:17] Production.ERROR: pbx CDR StartTime 2025-03-24 03:43:05 - End Time 2025-03-24 06:43:05 [2025-03-24 06:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750396', 'tblTempUsageDetail_20' ) start [2025-03-24 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750396', 'tblTempUsageDetail_20' ) end [2025-03-24 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750396', 'tblTempVendorCDR_20' ) start [2025-03-24 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750396', 'tblTempVendorCDR_20' ) end [2025-03-24 06:43:17] Production.INFO: ProcessCDR(1,14750396,1,1,2) [2025-03-24 06:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750396', 'tblTempUsageDetail_20' ) start [2025-03-24 06:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750396', 'tblTempUsageDetail_20' ) end [2025-03-24 06:43:20] Production.ERROR: pbx prc_insertCDR start [2025-03-24 06:43:20] Production.ERROR: pbx prc_insertCDR end [2025-03-24 06:43:20] Production.INFO: ==26577== Releasing lock... [2025-03-24 06:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 06:43:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 06:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 03:44:06 [end_date_ymd] => 2025-03-24 06:44:06 [RateCDR] => 1 ) [2025-03-24 06: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-03-24 03:44:06' and `end` < '2025-03-24 06: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-03-24 06:44:18] Production.INFO: count ==140 [2025-03-24 06:44:18] Production.ERROR: pbx CDR StartTime 2025-03-24 03:44:06 - End Time 2025-03-24 06:44:06 [2025-03-24 06:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750401', 'tblTempUsageDetail_20' ) start [2025-03-24 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750401', 'tblTempUsageDetail_20' ) end [2025-03-24 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750401', 'tblTempVendorCDR_20' ) start [2025-03-24 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750401', 'tblTempVendorCDR_20' ) end [2025-03-24 06:44:18] Production.INFO: ProcessCDR(1,14750401,1,1,2) [2025-03-24 06:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750401', 'tblTempUsageDetail_20' ) start [2025-03-24 06:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750401', 'tblTempUsageDetail_20' ) end [2025-03-24 06:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 06:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 06:44:22] Production.INFO: ==26675== Releasing lock... [2025-03-24 06:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 06:44:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 03:45:05 [end_date_ymd] => 2025-03-24 06:45:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 03:45:05' and `end` < '2025-03-24 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-03-24 06:45:17] Production.INFO: count ==140 [2025-03-24 06:45:17] Production.ERROR: pbx CDR StartTime 2025-03-24 03:45:05 - End Time 2025-03-24 06:45:05 [2025-03-24 06:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750406', 'tblTempUsageDetail_20' ) start [2025-03-24 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750406', 'tblTempUsageDetail_20' ) end [2025-03-24 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750406', 'tblTempVendorCDR_20' ) start [2025-03-24 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750406', 'tblTempVendorCDR_20' ) end [2025-03-24 06:45:17] Production.INFO: ProcessCDR(1,14750406,1,1,2) [2025-03-24 06:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750406', 'tblTempUsageDetail_20' ) start [2025-03-24 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750406', 'tblTempUsageDetail_20' ) end [2025-03-24 06:45:20] Production.ERROR: pbx prc_insertCDR start [2025-03-24 06:45:20] Production.ERROR: pbx prc_insertCDR end [2025-03-24 06:45:21] Production.INFO: ==26817== Releasing lock... [2025-03-24 06:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 06:45:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 03:46:05 [end_date_ymd] => 2025-03-24 06:46:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 03:46:05' and `end` < '2025-03-24 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-03-24 06:46:17] Production.INFO: count ==140 [2025-03-24 06:46:17] Production.ERROR: pbx CDR StartTime 2025-03-24 03:46:05 - End Time 2025-03-24 06:46:05 [2025-03-24 06:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750410', 'tblTempUsageDetail_20' ) start [2025-03-24 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750410', 'tblTempUsageDetail_20' ) end [2025-03-24 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750410', 'tblTempVendorCDR_20' ) start [2025-03-24 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750410', 'tblTempVendorCDR_20' ) end [2025-03-24 06:46:17] Production.INFO: ProcessCDR(1,14750410,1,1,2) [2025-03-24 06:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750410', 'tblTempUsageDetail_20' ) start [2025-03-24 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750410', 'tblTempUsageDetail_20' ) end [2025-03-24 06:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 06:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 06:46:21] Production.INFO: ==26918== Releasing lock... [2025-03-24 06:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 06:46:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 06:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 03:47:04 [end_date_ymd] => 2025-03-24 06:47:04 [RateCDR] => 1 ) [2025-03-24 06:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 03:47:04' and `end` < '2025-03-24 06:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 06:47:17] Production.INFO: count ==140 [2025-03-24 06:47:17] Production.ERROR: pbx CDR StartTime 2025-03-24 03:47:04 - End Time 2025-03-24 06:47:04 [2025-03-24 06:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750416', 'tblTempUsageDetail_20' ) start [2025-03-24 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750416', 'tblTempUsageDetail_20' ) end [2025-03-24 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750416', 'tblTempVendorCDR_20' ) start [2025-03-24 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750416', 'tblTempVendorCDR_20' ) end [2025-03-24 06:47:17] Production.INFO: ProcessCDR(1,14750416,1,1,2) [2025-03-24 06:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750416', 'tblTempUsageDetail_20' ) start [2025-03-24 06:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750416', 'tblTempUsageDetail_20' ) end [2025-03-24 06:47:20] Production.ERROR: pbx prc_insertCDR start [2025-03-24 06:47:20] Production.ERROR: pbx prc_insertCDR end [2025-03-24 06:47:20] Production.INFO: ==27015== Releasing lock... [2025-03-24 06:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 06:47:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 03:48:05 [end_date_ymd] => 2025-03-24 06:48:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 03:48:05' and `end` < '2025-03-24 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-03-24 06:48:18] Production.INFO: count ==140 [2025-03-24 06:48:18] Production.ERROR: pbx CDR StartTime 2025-03-24 03:48:05 - End Time 2025-03-24 06:48:05 [2025-03-24 06:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750421', 'tblTempUsageDetail_20' ) start [2025-03-24 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750421', 'tblTempUsageDetail_20' ) end [2025-03-24 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750421', 'tblTempVendorCDR_20' ) start [2025-03-24 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750421', 'tblTempVendorCDR_20' ) end [2025-03-24 06:48:18] Production.INFO: ProcessCDR(1,14750421,1,1,2) [2025-03-24 06:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750421', 'tblTempUsageDetail_20' ) start [2025-03-24 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750421', 'tblTempUsageDetail_20' ) end [2025-03-24 06:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 06:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 06:48:21] Production.INFO: ==27113== Releasing lock... [2025-03-24 06:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 06:48:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 03:49:05 [end_date_ymd] => 2025-03-24 06:49:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 03:49:05' and `end` < '2025-03-24 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-03-24 06:49:17] Production.INFO: count ==140 [2025-03-24 06:49:17] Production.ERROR: pbx CDR StartTime 2025-03-24 03:49:05 - End Time 2025-03-24 06:49:05 [2025-03-24 06:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750426', 'tblTempUsageDetail_20' ) start [2025-03-24 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750426', 'tblTempUsageDetail_20' ) end [2025-03-24 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750426', 'tblTempVendorCDR_20' ) start [2025-03-24 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750426', 'tblTempVendorCDR_20' ) end [2025-03-24 06:49:17] Production.INFO: ProcessCDR(1,14750426,1,1,2) [2025-03-24 06:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750426', 'tblTempUsageDetail_20' ) start [2025-03-24 06:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750426', 'tblTempUsageDetail_20' ) end [2025-03-24 06:49:20] Production.ERROR: pbx prc_insertCDR start [2025-03-24 06:49:20] Production.ERROR: pbx prc_insertCDR end [2025-03-24 06:49:20] Production.INFO: ==27211== Releasing lock... [2025-03-24 06:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 06:49:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 03:50:06 [end_date_ymd] => 2025-03-24 06:50:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 03:50:06' and `end` < '2025-03-24 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-03-24 06:50:18] Production.INFO: count ==130 [2025-03-24 06:50:18] Production.ERROR: pbx CDR StartTime 2025-03-24 03:50:06 - End Time 2025-03-24 06:50:06 [2025-03-24 06:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750432', 'tblTempUsageDetail_20' ) start [2025-03-24 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750432', 'tblTempUsageDetail_20' ) end [2025-03-24 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750432', 'tblTempVendorCDR_20' ) start [2025-03-24 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750432', 'tblTempVendorCDR_20' ) end [2025-03-24 06:50:18] Production.INFO: ProcessCDR(1,14750432,1,1,2) [2025-03-24 06:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750432', 'tblTempUsageDetail_20' ) start [2025-03-24 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750432', 'tblTempUsageDetail_20' ) end [2025-03-24 06:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 06:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 06:50:21] Production.INFO: ==27310== Releasing lock... [2025-03-24 06:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 06:50:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-24 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 03:51:05 [end_date_ymd] => 2025-03-24 06:51:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 03:51:05' and `end` < '2025-03-24 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-03-24 06:51:17] Production.INFO: count ==129 [2025-03-24 06:51:17] Production.ERROR: pbx CDR StartTime 2025-03-24 03:51:05 - End Time 2025-03-24 06:51:05 [2025-03-24 06:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750437', 'tblTempUsageDetail_20' ) start [2025-03-24 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750437', 'tblTempUsageDetail_20' ) end [2025-03-24 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750437', 'tblTempVendorCDR_20' ) start [2025-03-24 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750437', 'tblTempVendorCDR_20' ) end [2025-03-24 06:51:17] Production.INFO: ProcessCDR(1,14750437,1,1,2) [2025-03-24 06:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750437', 'tblTempUsageDetail_20' ) start [2025-03-24 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750437', 'tblTempUsageDetail_20' ) end [2025-03-24 06:51:20] Production.ERROR: pbx prc_insertCDR start [2025-03-24 06:51:20] Production.ERROR: pbx prc_insertCDR end [2025-03-24 06:51:20] Production.INFO: ==27408== Releasing lock... [2025-03-24 06:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 06:51:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-24 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 03:52:05 [end_date_ymd] => 2025-03-24 06:52:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 03:52:05' and `end` < '2025-03-24 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-03-24 06:52:18] Production.INFO: count ==128 [2025-03-24 06:52:18] Production.ERROR: pbx CDR StartTime 2025-03-24 03:52:05 - End Time 2025-03-24 06:52:05 [2025-03-24 06:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750442', 'tblTempUsageDetail_20' ) start [2025-03-24 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750442', 'tblTempUsageDetail_20' ) end [2025-03-24 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750442', 'tblTempVendorCDR_20' ) start [2025-03-24 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750442', 'tblTempVendorCDR_20' ) end [2025-03-24 06:52:18] Production.INFO: ProcessCDR(1,14750442,1,1,2) [2025-03-24 06:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750442', 'tblTempUsageDetail_20' ) start [2025-03-24 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750442', 'tblTempUsageDetail_20' ) end [2025-03-24 06:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 06:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 06:52:21] Production.INFO: ==27511== Releasing lock... [2025-03-24 06:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 06:52:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-24 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 03:53:05 [end_date_ymd] => 2025-03-24 06:53:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 03:53:05' and `end` < '2025-03-24 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-03-24 06:53:17] Production.INFO: count ==128 [2025-03-24 06:53:17] Production.ERROR: pbx CDR StartTime 2025-03-24 03:53:05 - End Time 2025-03-24 06:53:05 [2025-03-24 06:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750447', 'tblTempUsageDetail_20' ) start [2025-03-24 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750447', 'tblTempUsageDetail_20' ) end [2025-03-24 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750447', 'tblTempVendorCDR_20' ) start [2025-03-24 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750447', 'tblTempVendorCDR_20' ) end [2025-03-24 06:53:17] Production.INFO: ProcessCDR(1,14750447,1,1,2) [2025-03-24 06:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750447', 'tblTempUsageDetail_20' ) start [2025-03-24 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750447', 'tblTempUsageDetail_20' ) end [2025-03-24 06:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 06:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 06:53:21] Production.INFO: ==27612== Releasing lock... [2025-03-24 06:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 06:53:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-24 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 03:54:05 [end_date_ymd] => 2025-03-24 06:54:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 03:54:05' and `end` < '2025-03-24 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-03-24 06:54:18] Production.INFO: count ==128 [2025-03-24 06:54:18] Production.ERROR: pbx CDR StartTime 2025-03-24 03:54:05 - End Time 2025-03-24 06:54:05 [2025-03-24 06:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750452', 'tblTempUsageDetail_20' ) start [2025-03-24 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750452', 'tblTempUsageDetail_20' ) end [2025-03-24 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750452', 'tblTempVendorCDR_20' ) start [2025-03-24 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750452', 'tblTempVendorCDR_20' ) end [2025-03-24 06:54:18] Production.INFO: ProcessCDR(1,14750452,1,1,2) [2025-03-24 06:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750452', 'tblTempUsageDetail_20' ) start [2025-03-24 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750452', 'tblTempUsageDetail_20' ) end [2025-03-24 06:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 06:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 06:54:21] Production.INFO: ==27712== Releasing lock... [2025-03-24 06:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 06:54:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-24 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 03:55:05 [end_date_ymd] => 2025-03-24 06:55:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 03:55:05' and `end` < '2025-03-24 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-03-24 06:55:17] Production.INFO: count ==128 [2025-03-24 06:55:17] Production.ERROR: pbx CDR StartTime 2025-03-24 03:55:05 - End Time 2025-03-24 06:55:05 [2025-03-24 06:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750457', 'tblTempUsageDetail_20' ) start [2025-03-24 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750457', 'tblTempUsageDetail_20' ) end [2025-03-24 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750457', 'tblTempVendorCDR_20' ) start [2025-03-24 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750457', 'tblTempVendorCDR_20' ) end [2025-03-24 06:55:17] Production.INFO: ProcessCDR(1,14750457,1,1,2) [2025-03-24 06:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750457', 'tblTempUsageDetail_20' ) start [2025-03-24 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750457', 'tblTempUsageDetail_20' ) end [2025-03-24 06:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 06:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 06:55:21] Production.INFO: ==27808== Releasing lock... [2025-03-24 06:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 06:55:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-24 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 03:56:05 [end_date_ymd] => 2025-03-24 06:56:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 03:56:05' and `end` < '2025-03-24 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-03-24 06:56:17] Production.INFO: count ==129 [2025-03-24 06:56:18] Production.ERROR: pbx CDR StartTime 2025-03-24 03:56:05 - End Time 2025-03-24 06:56:05 [2025-03-24 06:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750462', 'tblTempUsageDetail_20' ) start [2025-03-24 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750462', 'tblTempUsageDetail_20' ) end [2025-03-24 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750462', 'tblTempVendorCDR_20' ) start [2025-03-24 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750462', 'tblTempVendorCDR_20' ) end [2025-03-24 06:56:18] Production.INFO: ProcessCDR(1,14750462,1,1,2) [2025-03-24 06:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750462', 'tblTempUsageDetail_20' ) start [2025-03-24 06:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750462', 'tblTempUsageDetail_20' ) end [2025-03-24 06:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 06:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 06:56:22] Production.INFO: ==27908== Releasing lock... [2025-03-24 06:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 06:56:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-24 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 03:57:05 [end_date_ymd] => 2025-03-24 06:57:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 03:57:05' and `end` < '2025-03-24 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-03-24 06:57:18] Production.INFO: count ==130 [2025-03-24 06:57:18] Production.ERROR: pbx CDR StartTime 2025-03-24 03:57:05 - End Time 2025-03-24 06:57:05 [2025-03-24 06:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750467', 'tblTempUsageDetail_20' ) start [2025-03-24 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750467', 'tblTempUsageDetail_20' ) end [2025-03-24 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750467', 'tblTempVendorCDR_20' ) start [2025-03-24 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750467', 'tblTempVendorCDR_20' ) end [2025-03-24 06:57:18] Production.INFO: ProcessCDR(1,14750467,1,1,2) [2025-03-24 06:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750467', 'tblTempUsageDetail_20' ) start [2025-03-24 06:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750467', 'tblTempUsageDetail_20' ) end [2025-03-24 06:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 06:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 06:57:22] Production.INFO: ==28007== Releasing lock... [2025-03-24 06:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 06:57:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 03:58:05 [end_date_ymd] => 2025-03-24 06:58:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 03:58:05' and `end` < '2025-03-24 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-03-24 06:58:18] Production.INFO: count ==130 [2025-03-24 06:58:18] Production.ERROR: pbx CDR StartTime 2025-03-24 03:58:05 - End Time 2025-03-24 06:58:05 [2025-03-24 06:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750472', 'tblTempUsageDetail_20' ) start [2025-03-24 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750472', 'tblTempUsageDetail_20' ) end [2025-03-24 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750472', 'tblTempVendorCDR_20' ) start [2025-03-24 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750472', 'tblTempVendorCDR_20' ) end [2025-03-24 06:58:18] Production.INFO: ProcessCDR(1,14750472,1,1,2) [2025-03-24 06:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750472', 'tblTempUsageDetail_20' ) start [2025-03-24 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750472', 'tblTempUsageDetail_20' ) end [2025-03-24 06:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 06:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 06:58:21] Production.INFO: ==28109== Releasing lock... [2025-03-24 06:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 06:58:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 03:59:05 [end_date_ymd] => 2025-03-24 06:59:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 03:59:05' and `end` < '2025-03-24 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-03-24 06:59:17] Production.INFO: count ==130 [2025-03-24 06:59:17] Production.ERROR: pbx CDR StartTime 2025-03-24 03:59:05 - End Time 2025-03-24 06:59:05 [2025-03-24 06:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750477', 'tblTempUsageDetail_20' ) start [2025-03-24 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750477', 'tblTempUsageDetail_20' ) end [2025-03-24 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750477', 'tblTempVendorCDR_20' ) start [2025-03-24 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750477', 'tblTempVendorCDR_20' ) end [2025-03-24 06:59:17] Production.INFO: ProcessCDR(1,14750477,1,1,2) [2025-03-24 06:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 06:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750477', 'tblTempUsageDetail_20' ) start [2025-03-24 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750477', 'tblTempUsageDetail_20' ) end [2025-03-24 06:59:20] Production.ERROR: pbx prc_insertCDR start [2025-03-24 06:59:20] Production.ERROR: pbx prc_insertCDR end [2025-03-24 06:59:20] Production.INFO: ==28208== Releasing lock... [2025-03-24 06:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 06:59:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 04:00:06 [end_date_ymd] => 2025-03-24 07:00:06 [RateCDR] => 1 ) [2025-03-24 07:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 04:00:06' and `end` < '2025-03-24 07:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 07:00:18] Production.INFO: count ==130 [2025-03-24 07:00:18] Production.ERROR: pbx CDR StartTime 2025-03-24 04:00:06 - End Time 2025-03-24 07:00:06 [2025-03-24 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750483', 'tblTempUsageDetail_20' ) start [2025-03-24 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750483', 'tblTempUsageDetail_20' ) end [2025-03-24 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750483', 'tblTempVendorCDR_20' ) start [2025-03-24 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750483', 'tblTempVendorCDR_20' ) end [2025-03-24 07:00:18] Production.INFO: ProcessCDR(1,14750483,1,1,2) [2025-03-24 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750483', 'tblTempUsageDetail_20' ) start [2025-03-24 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750483', 'tblTempUsageDetail_20' ) end [2025-03-24 07:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 07:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 07:00:22] Production.INFO: ==28351== Releasing lock... [2025-03-24 07:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 07:00:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 04:01:05 [end_date_ymd] => 2025-03-24 07:01:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 04:01:05' and `end` < '2025-03-24 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-03-24 07:01:18] Production.INFO: count ==130 [2025-03-24 07:01:18] Production.ERROR: pbx CDR StartTime 2025-03-24 04:01:05 - End Time 2025-03-24 07:01:05 [2025-03-24 07:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750488', 'tblTempUsageDetail_20' ) start [2025-03-24 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750488', 'tblTempUsageDetail_20' ) end [2025-03-24 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750488', 'tblTempVendorCDR_20' ) start [2025-03-24 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750488', 'tblTempVendorCDR_20' ) end [2025-03-24 07:01:18] Production.INFO: ProcessCDR(1,14750488,1,1,2) [2025-03-24 07:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750488', 'tblTempUsageDetail_20' ) start [2025-03-24 07:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750488', 'tblTempUsageDetail_20' ) end [2025-03-24 07:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 07:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 07:01:21] Production.INFO: ==28468== Releasing lock... [2025-03-24 07:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 07:01:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 04:02:05 [end_date_ymd] => 2025-03-24 07:02:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 04:02:05' and `end` < '2025-03-24 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-03-24 07:02:17] Production.INFO: count ==130 [2025-03-24 07:02:17] Production.ERROR: pbx CDR StartTime 2025-03-24 04:02:05 - End Time 2025-03-24 07:02:05 [2025-03-24 07:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750493', 'tblTempUsageDetail_20' ) start [2025-03-24 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750493', 'tblTempUsageDetail_20' ) end [2025-03-24 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750493', 'tblTempVendorCDR_20' ) start [2025-03-24 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750493', 'tblTempVendorCDR_20' ) end [2025-03-24 07:02:17] Production.INFO: ProcessCDR(1,14750493,1,1,2) [2025-03-24 07:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750493', 'tblTempUsageDetail_20' ) start [2025-03-24 07:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750493', 'tblTempUsageDetail_20' ) end [2025-03-24 07:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 07:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 07:02:21] Production.INFO: ==28644== Releasing lock... [2025-03-24 07:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 07:02:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 07:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 04:03:06 [end_date_ymd] => 2025-03-24 07:03:06 [RateCDR] => 1 ) [2025-03-24 07:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 04:03:06' and `end` < '2025-03-24 07:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 07:03:18] Production.INFO: count ==126 [2025-03-24 07:03:18] Production.ERROR: pbx CDR StartTime 2025-03-24 04:03:06 - End Time 2025-03-24 07:03:06 [2025-03-24 07:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750498', 'tblTempUsageDetail_20' ) start [2025-03-24 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750498', 'tblTempUsageDetail_20' ) end [2025-03-24 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750498', 'tblTempVendorCDR_20' ) start [2025-03-24 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750498', 'tblTempVendorCDR_20' ) end [2025-03-24 07:03:18] Production.INFO: ProcessCDR(1,14750498,1,1,2) [2025-03-24 07:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750498', 'tblTempUsageDetail_20' ) start [2025-03-24 07:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750498', 'tblTempUsageDetail_20' ) end [2025-03-24 07:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 07:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 07:03:22] Production.INFO: ==28744== Releasing lock... [2025-03-24 07:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 07:03:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-24 07:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 04:04:06 [end_date_ymd] => 2025-03-24 07:04:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 04:04:06' and `end` < '2025-03-24 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-03-24 07:04:18] Production.INFO: count ==126 [2025-03-24 07:04:18] Production.ERROR: pbx CDR StartTime 2025-03-24 04:04:06 - End Time 2025-03-24 07:04:06 [2025-03-24 07:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750503', 'tblTempUsageDetail_20' ) start [2025-03-24 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750503', 'tblTempUsageDetail_20' ) end [2025-03-24 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750503', 'tblTempVendorCDR_20' ) start [2025-03-24 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750503', 'tblTempVendorCDR_20' ) end [2025-03-24 07:04:18] Production.INFO: ProcessCDR(1,14750503,1,1,2) [2025-03-24 07:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750503', 'tblTempUsageDetail_20' ) start [2025-03-24 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750503', 'tblTempUsageDetail_20' ) end [2025-03-24 07:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 07:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 07:04:22] Production.INFO: ==28851== Releasing lock... [2025-03-24 07:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 07:04:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-24 07:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 04:05:06 [end_date_ymd] => 2025-03-24 07:05:06 [RateCDR] => 1 ) [2025-03-24 07: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-03-24 04:05:06' and `end` < '2025-03-24 07: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-03-24 07:05:20] Production.INFO: count ==126 [2025-03-24 07:05:20] Production.ERROR: pbx CDR StartTime 2025-03-24 04:05:06 - End Time 2025-03-24 07:05:06 [2025-03-24 07:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750508', 'tblTempUsageDetail_20' ) start [2025-03-24 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750508', 'tblTempUsageDetail_20' ) end [2025-03-24 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750508', 'tblTempVendorCDR_20' ) start [2025-03-24 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750508', 'tblTempVendorCDR_20' ) end [2025-03-24 07:05:20] Production.INFO: ProcessCDR(1,14750508,1,1,2) [2025-03-24 07:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750508', 'tblTempUsageDetail_20' ) start [2025-03-24 07:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750508', 'tblTempUsageDetail_20' ) end [2025-03-24 07:05:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 07:05:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 07:05:24] Production.INFO: ==29027== Releasing lock... [2025-03-24 07:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 07:05:24] Production.INFO: 29.25 MB #Memory Used# [2025-03-24 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 04:06:05 [end_date_ymd] => 2025-03-24 07:06:05 [RateCDR] => 1 ) [2025-03-24 07:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 04:06:05' and `end` < '2025-03-24 07:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 07:06:17] Production.INFO: count ==126 [2025-03-24 07:06:18] Production.ERROR: pbx CDR StartTime 2025-03-24 04:06:05 - End Time 2025-03-24 07:06:05 [2025-03-24 07:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750513', 'tblTempUsageDetail_20' ) start [2025-03-24 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750513', 'tblTempUsageDetail_20' ) end [2025-03-24 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750513', 'tblTempVendorCDR_20' ) start [2025-03-24 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750513', 'tblTempVendorCDR_20' ) end [2025-03-24 07:06:18] Production.INFO: ProcessCDR(1,14750513,1,1,2) [2025-03-24 07:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750513', 'tblTempUsageDetail_20' ) start [2025-03-24 07:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750513', 'tblTempUsageDetail_20' ) end [2025-03-24 07:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 07:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 07:06:22] Production.INFO: ==29126== Releasing lock... [2025-03-24 07:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 07:06:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-24 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 04:07:05 [end_date_ymd] => 2025-03-24 07:07:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 04:07:05' and `end` < '2025-03-24 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-03-24 07:07:18] Production.INFO: count ==126 [2025-03-24 07:07:18] Production.ERROR: pbx CDR StartTime 2025-03-24 04:07:05 - End Time 2025-03-24 07:07:05 [2025-03-24 07:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750518', 'tblTempUsageDetail_20' ) start [2025-03-24 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750518', 'tblTempUsageDetail_20' ) end [2025-03-24 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750518', 'tblTempVendorCDR_20' ) start [2025-03-24 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750518', 'tblTempVendorCDR_20' ) end [2025-03-24 07:07:18] Production.INFO: ProcessCDR(1,14750518,1,1,2) [2025-03-24 07:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750518', 'tblTempUsageDetail_20' ) start [2025-03-24 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750518', 'tblTempUsageDetail_20' ) end [2025-03-24 07:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 07:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 07:07:22] Production.INFO: ==29224== Releasing lock... [2025-03-24 07:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 07:07:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-24 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 04:08:05 [end_date_ymd] => 2025-03-24 07:08:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 04:08:05' and `end` < '2025-03-24 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-03-24 07:08:18] Production.INFO: count ==126 [2025-03-24 07:08:18] Production.ERROR: pbx CDR StartTime 2025-03-24 04:08:05 - End Time 2025-03-24 07:08:05 [2025-03-24 07:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750523', 'tblTempUsageDetail_20' ) start [2025-03-24 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750523', 'tblTempUsageDetail_20' ) end [2025-03-24 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750523', 'tblTempVendorCDR_20' ) start [2025-03-24 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750523', 'tblTempVendorCDR_20' ) end [2025-03-24 07:08:18] Production.INFO: ProcessCDR(1,14750523,1,1,2) [2025-03-24 07:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750523', 'tblTempUsageDetail_20' ) start [2025-03-24 07:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750523', 'tblTempUsageDetail_20' ) end [2025-03-24 07:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 07:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 07:08:21] Production.INFO: ==29401== Releasing lock... [2025-03-24 07:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 07:08:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-24 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 04:09:05 [end_date_ymd] => 2025-03-24 07:09:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 04:09:05' and `end` < '2025-03-24 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-03-24 07:09:18] Production.INFO: count ==126 [2025-03-24 07:09:18] Production.ERROR: pbx CDR StartTime 2025-03-24 04:09:05 - End Time 2025-03-24 07:09:05 [2025-03-24 07:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750528', 'tblTempUsageDetail_20' ) start [2025-03-24 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750528', 'tblTempUsageDetail_20' ) end [2025-03-24 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750528', 'tblTempVendorCDR_20' ) start [2025-03-24 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750528', 'tblTempVendorCDR_20' ) end [2025-03-24 07:09:18] Production.INFO: ProcessCDR(1,14750528,1,1,2) [2025-03-24 07:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750528', 'tblTempUsageDetail_20' ) start [2025-03-24 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750528', 'tblTempUsageDetail_20' ) end [2025-03-24 07:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 07:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 07:09:22] Production.INFO: ==29499== Releasing lock... [2025-03-24 07:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 07:09:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-24 07:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 04:10:05 [end_date_ymd] => 2025-03-24 07:10:05 [RateCDR] => 1 ) [2025-03-24 07:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 04:10:05' and `end` < '2025-03-24 07:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 07:10:19] Production.INFO: count ==126 [2025-03-24 07:10:19] Production.ERROR: pbx CDR StartTime 2025-03-24 04:10:05 - End Time 2025-03-24 07:10:05 [2025-03-24 07:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750533', 'tblTempUsageDetail_20' ) start [2025-03-24 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750533', 'tblTempUsageDetail_20' ) end [2025-03-24 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750533', 'tblTempVendorCDR_20' ) start [2025-03-24 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750533', 'tblTempVendorCDR_20' ) end [2025-03-24 07:10:19] Production.INFO: ProcessCDR(1,14750533,1,1,2) [2025-03-24 07:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750533', 'tblTempUsageDetail_20' ) start [2025-03-24 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750533', 'tblTempUsageDetail_20' ) end [2025-03-24 07:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 07:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 07:10:22] Production.INFO: ==29602== Releasing lock... [2025-03-24 07:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 07:10:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-24 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 04:11:05 [end_date_ymd] => 2025-03-24 07:11:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 04:11:05' and `end` < '2025-03-24 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-03-24 07:11:19] Production.INFO: count ==126 [2025-03-24 07:11:19] Production.ERROR: pbx CDR StartTime 2025-03-24 04:11:05 - End Time 2025-03-24 07:11:05 [2025-03-24 07:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750539', 'tblTempUsageDetail_20' ) start [2025-03-24 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750539', 'tblTempUsageDetail_20' ) end [2025-03-24 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750539', 'tblTempVendorCDR_20' ) start [2025-03-24 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750539', 'tblTempVendorCDR_20' ) end [2025-03-24 07:11:19] Production.INFO: ProcessCDR(1,14750539,1,1,2) [2025-03-24 07:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750539', 'tblTempUsageDetail_20' ) start [2025-03-24 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750539', 'tblTempUsageDetail_20' ) end [2025-03-24 07:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 07:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 07:11:22] Production.INFO: ==29700== Releasing lock... [2025-03-24 07:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 07:11:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-24 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 04:12:05 [end_date_ymd] => 2025-03-24 07:12:05 [RateCDR] => 1 ) [2025-03-24 07:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 04:12:05' and `end` < '2025-03-24 07:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 07:12:18] Production.INFO: count ==126 [2025-03-24 07:12:18] Production.ERROR: pbx CDR StartTime 2025-03-24 04:12:05 - End Time 2025-03-24 07:12:05 [2025-03-24 07:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750544', 'tblTempUsageDetail_20' ) start [2025-03-24 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750544', 'tblTempUsageDetail_20' ) end [2025-03-24 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750544', 'tblTempVendorCDR_20' ) start [2025-03-24 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750544', 'tblTempVendorCDR_20' ) end [2025-03-24 07:12:18] Production.INFO: ProcessCDR(1,14750544,1,1,2) [2025-03-24 07:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750544', 'tblTempUsageDetail_20' ) start [2025-03-24 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750544', 'tblTempUsageDetail_20' ) end [2025-03-24 07:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 07:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 07:12:21] Production.INFO: ==29878== Releasing lock... [2025-03-24 07:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 07:12:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-24 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 04:13:05 [end_date_ymd] => 2025-03-24 07:13:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 04:13:05' and `end` < '2025-03-24 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-03-24 07:13:19] Production.INFO: count ==130 [2025-03-24 07:13:19] Production.ERROR: pbx CDR StartTime 2025-03-24 04:13:05 - End Time 2025-03-24 07:13:05 [2025-03-24 07:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750549', 'tblTempUsageDetail_20' ) start [2025-03-24 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750549', 'tblTempUsageDetail_20' ) end [2025-03-24 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750549', 'tblTempVendorCDR_20' ) start [2025-03-24 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750549', 'tblTempVendorCDR_20' ) end [2025-03-24 07:13:19] Production.INFO: ProcessCDR(1,14750549,1,1,2) [2025-03-24 07:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750549', 'tblTempUsageDetail_20' ) start [2025-03-24 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750549', 'tblTempUsageDetail_20' ) end [2025-03-24 07:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 07:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 07:13:22] Production.INFO: ==29977== Releasing lock... [2025-03-24 07:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 07:13:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 04:14:05 [end_date_ymd] => 2025-03-24 07:14:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 04:14:05' and `end` < '2025-03-24 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-03-24 07:14:17] Production.INFO: count ==130 [2025-03-24 07:14:17] Production.ERROR: pbx CDR StartTime 2025-03-24 04:14:05 - End Time 2025-03-24 07:14:05 [2025-03-24 07:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 07:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750554', 'tblTempUsageDetail_20' ) start [2025-03-24 07:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750554', 'tblTempUsageDetail_20' ) end [2025-03-24 07:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750554', 'tblTempVendorCDR_20' ) start [2025-03-24 07:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750554', 'tblTempVendorCDR_20' ) end [2025-03-24 07:14:17] Production.INFO: ProcessCDR(1,14750554,1,1,2) [2025-03-24 07:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750554', 'tblTempUsageDetail_20' ) start [2025-03-24 07:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750554', 'tblTempUsageDetail_20' ) end [2025-03-24 07:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 07:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 07:14:21] Production.INFO: ==30086== Releasing lock... [2025-03-24 07:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 07:14:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 07:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 04:15:06 [end_date_ymd] => 2025-03-24 07:15:06 [RateCDR] => 1 ) [2025-03-24 07: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-03-24 04:15:06' and `end` < '2025-03-24 07: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-03-24 07:15:19] Production.INFO: count ==130 [2025-03-24 07:15:19] Production.ERROR: pbx CDR StartTime 2025-03-24 04:15:06 - End Time 2025-03-24 07:15:06 [2025-03-24 07:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750559', 'tblTempUsageDetail_20' ) start [2025-03-24 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750559', 'tblTempUsageDetail_20' ) end [2025-03-24 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750559', 'tblTempVendorCDR_20' ) start [2025-03-24 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750559', 'tblTempVendorCDR_20' ) end [2025-03-24 07:15:19] Production.INFO: ProcessCDR(1,14750559,1,1,2) [2025-03-24 07:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750559', 'tblTempUsageDetail_20' ) start [2025-03-24 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750559', 'tblTempUsageDetail_20' ) end [2025-03-24 07:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 07:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 07:15:22] Production.INFO: ==30265== Releasing lock... [2025-03-24 07:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 07:15:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 07:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 04:16:04 [end_date_ymd] => 2025-03-24 07:16:04 [RateCDR] => 1 ) [2025-03-24 07:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 04:16:04' and `end` < '2025-03-24 07:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 07:16:18] Production.INFO: count ==130 [2025-03-24 07:16:18] Production.ERROR: pbx CDR StartTime 2025-03-24 04:16:04 - End Time 2025-03-24 07:16:04 [2025-03-24 07:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750564', 'tblTempUsageDetail_20' ) start [2025-03-24 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750564', 'tblTempUsageDetail_20' ) end [2025-03-24 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750564', 'tblTempVendorCDR_20' ) start [2025-03-24 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750564', 'tblTempVendorCDR_20' ) end [2025-03-24 07:16:18] Production.INFO: ProcessCDR(1,14750564,1,1,2) [2025-03-24 07:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750564', 'tblTempUsageDetail_20' ) start [2025-03-24 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750564', 'tblTempUsageDetail_20' ) end [2025-03-24 07:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 07:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 07:16:21] Production.INFO: ==30402== Releasing lock... [2025-03-24 07:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 07:16:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 07:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 04:17:06 [end_date_ymd] => 2025-03-24 07:17:06 [RateCDR] => 1 ) [2025-03-24 07: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-03-24 04:17:06' and `end` < '2025-03-24 07: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-03-24 07:17:18] Production.INFO: count ==130 [2025-03-24 07:17:18] Production.ERROR: pbx CDR StartTime 2025-03-24 04:17:06 - End Time 2025-03-24 07:17:06 [2025-03-24 07:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750569', 'tblTempUsageDetail_20' ) start [2025-03-24 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750569', 'tblTempUsageDetail_20' ) end [2025-03-24 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750569', 'tblTempVendorCDR_20' ) start [2025-03-24 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750569', 'tblTempVendorCDR_20' ) end [2025-03-24 07:17:18] Production.INFO: ProcessCDR(1,14750569,1,1,2) [2025-03-24 07:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750569', 'tblTempUsageDetail_20' ) start [2025-03-24 07:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750569', 'tblTempUsageDetail_20' ) end [2025-03-24 07:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 07:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 07:17:22] Production.INFO: ==30500== Releasing lock... [2025-03-24 07:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 07:17:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 04:18:05 [end_date_ymd] => 2025-03-24 07:18:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 04:18:05' and `end` < '2025-03-24 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-03-24 07:18:18] Production.INFO: count ==130 [2025-03-24 07:18:18] Production.ERROR: pbx CDR StartTime 2025-03-24 04:18:05 - End Time 2025-03-24 07:18:05 [2025-03-24 07:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750574', 'tblTempUsageDetail_20' ) start [2025-03-24 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750574', 'tblTempUsageDetail_20' ) end [2025-03-24 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750574', 'tblTempVendorCDR_20' ) start [2025-03-24 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750574', 'tblTempVendorCDR_20' ) end [2025-03-24 07:18:18] Production.INFO: ProcessCDR(1,14750574,1,1,2) [2025-03-24 07:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750574', 'tblTempUsageDetail_20' ) start [2025-03-24 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750574', 'tblTempUsageDetail_20' ) end [2025-03-24 07:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 07:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 07:18:22] Production.INFO: ==30599== Releasing lock... [2025-03-24 07:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 07:18:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 07:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 04:19:06 [end_date_ymd] => 2025-03-24 07:19:06 [RateCDR] => 1 ) [2025-03-24 07: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-03-24 04:19:06' and `end` < '2025-03-24 07: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-03-24 07:19:18] Production.INFO: count ==128 [2025-03-24 07:19:18] Production.ERROR: pbx CDR StartTime 2025-03-24 04:19:06 - End Time 2025-03-24 07:19:06 [2025-03-24 07:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750579', 'tblTempUsageDetail_20' ) start [2025-03-24 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750579', 'tblTempUsageDetail_20' ) end [2025-03-24 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750579', 'tblTempVendorCDR_20' ) start [2025-03-24 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750579', 'tblTempVendorCDR_20' ) end [2025-03-24 07:19:18] Production.INFO: ProcessCDR(1,14750579,1,1,2) [2025-03-24 07:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750579', 'tblTempUsageDetail_20' ) start [2025-03-24 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750579', 'tblTempUsageDetail_20' ) end [2025-03-24 07:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 07:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 07:19:22] Production.INFO: ==30697== Releasing lock... [2025-03-24 07:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 07:19:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-24 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 04:20:06 [end_date_ymd] => 2025-03-24 07:20:06 [RateCDR] => 1 ) [2025-03-24 07:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 04:20:06' and `end` < '2025-03-24 07:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 07:20:19] Production.INFO: count ==127 [2025-03-24 07:20:19] Production.ERROR: pbx CDR StartTime 2025-03-24 04:20:06 - End Time 2025-03-24 07:20:06 [2025-03-24 07:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750585', 'tblTempUsageDetail_20' ) start [2025-03-24 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750585', 'tblTempUsageDetail_20' ) end [2025-03-24 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750585', 'tblTempVendorCDR_20' ) start [2025-03-24 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750585', 'tblTempVendorCDR_20' ) end [2025-03-24 07:20:19] Production.INFO: ProcessCDR(1,14750585,1,1,2) [2025-03-24 07:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750585', 'tblTempUsageDetail_20' ) start [2025-03-24 07:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750585', 'tblTempUsageDetail_20' ) end [2025-03-24 07:20:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 07:20:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 07:20:24] Production.INFO: ==30797== Releasing lock... [2025-03-24 07:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 07:20:24] Production.INFO: 29.25 MB #Memory Used# [2025-03-24 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 04:21:05 [end_date_ymd] => 2025-03-24 07:21:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 04:21:05' and `end` < '2025-03-24 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-03-24 07:21:18] Production.INFO: count ==123 [2025-03-24 07:21:18] Production.ERROR: pbx CDR StartTime 2025-03-24 04:21:05 - End Time 2025-03-24 07:21:05 [2025-03-24 07:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750590', 'tblTempUsageDetail_20' ) start [2025-03-24 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750590', 'tblTempUsageDetail_20' ) end [2025-03-24 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750590', 'tblTempVendorCDR_20' ) start [2025-03-24 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750590', 'tblTempVendorCDR_20' ) end [2025-03-24 07:21:18] Production.INFO: ProcessCDR(1,14750590,1,1,2) [2025-03-24 07:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750590', 'tblTempUsageDetail_20' ) start [2025-03-24 07:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750590', 'tblTempUsageDetail_20' ) end [2025-03-24 07:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 07:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 07:21:21] Production.INFO: ==30898== Releasing lock... [2025-03-24 07:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 07:21:21] Production.INFO: 29 MB #Memory Used# [2025-03-24 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 04:22:05 [end_date_ymd] => 2025-03-24 07:22:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 04:22:05' and `end` < '2025-03-24 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-03-24 07:22:18] Production.INFO: count ==123 [2025-03-24 07:22:19] Production.ERROR: pbx CDR StartTime 2025-03-24 04:22:05 - End Time 2025-03-24 07:22:05 [2025-03-24 07:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750595', 'tblTempUsageDetail_20' ) start [2025-03-24 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750595', 'tblTempUsageDetail_20' ) end [2025-03-24 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750595', 'tblTempVendorCDR_20' ) start [2025-03-24 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750595', 'tblTempVendorCDR_20' ) end [2025-03-24 07:22:19] Production.INFO: ProcessCDR(1,14750595,1,1,2) [2025-03-24 07:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750595', 'tblTempUsageDetail_20' ) start [2025-03-24 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750595', 'tblTempUsageDetail_20' ) end [2025-03-24 07:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 07:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 07:22:22] Production.INFO: ==30997== Releasing lock... [2025-03-24 07:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 07:22:22] Production.INFO: 29 MB #Memory Used# [2025-03-24 07:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 04:23:06 [end_date_ymd] => 2025-03-24 07:23:06 [RateCDR] => 1 ) [2025-03-24 07: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-03-24 04:23:06' and `end` < '2025-03-24 07: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-03-24 07:23:18] Production.INFO: count ==133 [2025-03-24 07:23:18] Production.ERROR: pbx CDR StartTime 2025-03-24 04:23:06 - End Time 2025-03-24 07:23:06 [2025-03-24 07:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750600', 'tblTempUsageDetail_20' ) start [2025-03-24 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750600', 'tblTempUsageDetail_20' ) end [2025-03-24 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750600', 'tblTempVendorCDR_20' ) start [2025-03-24 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750600', 'tblTempVendorCDR_20' ) end [2025-03-24 07:23:18] Production.INFO: ProcessCDR(1,14750600,1,1,2) [2025-03-24 07:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750600', 'tblTempUsageDetail_20' ) start [2025-03-24 07:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750600', 'tblTempUsageDetail_20' ) end [2025-03-24 07:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 07:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 07:23:22] Production.INFO: ==31102== Releasing lock... [2025-03-24 07:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 07:23:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 04:24:05 [end_date_ymd] => 2025-03-24 07:24:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 04:24:05' and `end` < '2025-03-24 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-03-24 07:24:17] Production.INFO: count ==153 [2025-03-24 07:24:17] Production.ERROR: pbx CDR StartTime 2025-03-24 04:24:05 - End Time 2025-03-24 07:24:05 [2025-03-24 07:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750605', 'tblTempUsageDetail_20' ) start [2025-03-24 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750605', 'tblTempUsageDetail_20' ) end [2025-03-24 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750605', 'tblTempVendorCDR_20' ) start [2025-03-24 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750605', 'tblTempVendorCDR_20' ) end [2025-03-24 07:24:18] Production.INFO: ProcessCDR(1,14750605,1,1,2) [2025-03-24 07:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750605', 'tblTempUsageDetail_20' ) start [2025-03-24 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750605', 'tblTempUsageDetail_20' ) end [2025-03-24 07:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 07:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 07:24:21] Production.INFO: ==31200== Releasing lock... [2025-03-24 07:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 07:24:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 04:25:05 [end_date_ymd] => 2025-03-24 07:25:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 04:25:05' and `end` < '2025-03-24 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-03-24 07:25:18] Production.INFO: count ==154 [2025-03-24 07:25:18] Production.ERROR: pbx CDR StartTime 2025-03-24 04:25:05 - End Time 2025-03-24 07:25:05 [2025-03-24 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750610', 'tblTempUsageDetail_20' ) start [2025-03-24 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750610', 'tblTempUsageDetail_20' ) end [2025-03-24 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750610', 'tblTempVendorCDR_20' ) start [2025-03-24 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750610', 'tblTempVendorCDR_20' ) end [2025-03-24 07:25:18] Production.INFO: ProcessCDR(1,14750610,1,1,2) [2025-03-24 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750610', 'tblTempUsageDetail_20' ) start [2025-03-24 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750610', 'tblTempUsageDetail_20' ) end [2025-03-24 07:25:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 07:25:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 07:25:24] Production.INFO: ==31298== Releasing lock... [2025-03-24 07:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 07:25:24] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 07:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 04:26:06 [end_date_ymd] => 2025-03-24 07:26:06 [RateCDR] => 1 ) [2025-03-24 07: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-03-24 04:26:06' and `end` < '2025-03-24 07: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-03-24 07:26:18] Production.INFO: count ==154 [2025-03-24 07:26:18] Production.ERROR: pbx CDR StartTime 2025-03-24 04:26:06 - End Time 2025-03-24 07:26:06 [2025-03-24 07:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750615', 'tblTempUsageDetail_20' ) start [2025-03-24 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750615', 'tblTempUsageDetail_20' ) end [2025-03-24 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750615', 'tblTempVendorCDR_20' ) start [2025-03-24 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750615', 'tblTempVendorCDR_20' ) end [2025-03-24 07:26:18] Production.INFO: ProcessCDR(1,14750615,1,1,2) [2025-03-24 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750615', 'tblTempUsageDetail_20' ) start [2025-03-24 07:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750615', 'tblTempUsageDetail_20' ) end [2025-03-24 07:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 07:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 07:26:22] Production.INFO: ==31397== Releasing lock... [2025-03-24 07:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 07:26:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 07:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 04:27:06 [end_date_ymd] => 2025-03-24 07:27:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 04:27:06' and `end` < '2025-03-24 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-03-24 07:27:18] Production.INFO: count ==154 [2025-03-24 07:27:18] Production.ERROR: pbx CDR StartTime 2025-03-24 04:27:06 - End Time 2025-03-24 07:27:06 [2025-03-24 07:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750620', 'tblTempUsageDetail_20' ) start [2025-03-24 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750620', 'tblTempUsageDetail_20' ) end [2025-03-24 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750620', 'tblTempVendorCDR_20' ) start [2025-03-24 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750620', 'tblTempVendorCDR_20' ) end [2025-03-24 07:27:18] Production.INFO: ProcessCDR(1,14750620,1,1,2) [2025-03-24 07:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750620', 'tblTempUsageDetail_20' ) start [2025-03-24 07:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750620', 'tblTempUsageDetail_20' ) end [2025-03-24 07:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 07:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 07:27:22] Production.INFO: ==31494== Releasing lock... [2025-03-24 07:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 07:27:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 07:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 04:28:06 [end_date_ymd] => 2025-03-24 07:28:06 [RateCDR] => 1 ) [2025-03-24 07:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 04:28:06' and `end` < '2025-03-24 07:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 07:28:18] Production.INFO: count ==154 [2025-03-24 07:28:18] Production.ERROR: pbx CDR StartTime 2025-03-24 04:28:06 - End Time 2025-03-24 07:28:06 [2025-03-24 07:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750625', 'tblTempUsageDetail_20' ) start [2025-03-24 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750625', 'tblTempUsageDetail_20' ) end [2025-03-24 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750625', 'tblTempVendorCDR_20' ) start [2025-03-24 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750625', 'tblTempVendorCDR_20' ) end [2025-03-24 07:28:18] Production.INFO: ProcessCDR(1,14750625,1,1,2) [2025-03-24 07:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750625', 'tblTempUsageDetail_20' ) start [2025-03-24 07:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750625', 'tblTempUsageDetail_20' ) end [2025-03-24 07:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 07:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 07:28:22] Production.INFO: ==31599== Releasing lock... [2025-03-24 07:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 07:28:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 07:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 04:29:06 [end_date_ymd] => 2025-03-24 07:29:06 [RateCDR] => 1 ) [2025-03-24 07: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-03-24 04:29:06' and `end` < '2025-03-24 07: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-03-24 07:29:18] Production.INFO: count ==154 [2025-03-24 07:29:18] Production.ERROR: pbx CDR StartTime 2025-03-24 04:29:06 - End Time 2025-03-24 07:29:06 [2025-03-24 07:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750630', 'tblTempUsageDetail_20' ) start [2025-03-24 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750630', 'tblTempUsageDetail_20' ) end [2025-03-24 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750630', 'tblTempVendorCDR_20' ) start [2025-03-24 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750630', 'tblTempVendorCDR_20' ) end [2025-03-24 07:29:18] Production.INFO: ProcessCDR(1,14750630,1,1,2) [2025-03-24 07:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750630', 'tblTempUsageDetail_20' ) start [2025-03-24 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750630', 'tblTempUsageDetail_20' ) end [2025-03-24 07:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 07:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 07:29:22] Production.INFO: ==31698== Releasing lock... [2025-03-24 07:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 07:29:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 07:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 04:30:07 [end_date_ymd] => 2025-03-24 07:30:07 [RateCDR] => 1 ) [2025-03-24 07: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-03-24 04:30:07' and `end` < '2025-03-24 07: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-03-24 07:30:19] Production.INFO: count ==152 [2025-03-24 07:30:19] Production.ERROR: pbx CDR StartTime 2025-03-24 04:30:07 - End Time 2025-03-24 07:30:07 [2025-03-24 07:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750636', 'tblTempUsageDetail_20' ) start [2025-03-24 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750636', 'tblTempUsageDetail_20' ) end [2025-03-24 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750636', 'tblTempVendorCDR_20' ) start [2025-03-24 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750636', 'tblTempVendorCDR_20' ) end [2025-03-24 07:30:19] Production.INFO: ProcessCDR(1,14750636,1,1,2) [2025-03-24 07:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750636', 'tblTempUsageDetail_20' ) start [2025-03-24 07:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750636', 'tblTempUsageDetail_20' ) end [2025-03-24 07:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 07:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 07:30:23] Production.INFO: ==31798== Releasing lock... [2025-03-24 07:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 07:30:23] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 07:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 04:31:06 [end_date_ymd] => 2025-03-24 07:31:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 04:31:06' and `end` < '2025-03-24 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-03-24 07:31:18] Production.INFO: count ==152 [2025-03-24 07:31:18] Production.ERROR: pbx CDR StartTime 2025-03-24 04:31:06 - End Time 2025-03-24 07:31:06 [2025-03-24 07:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750641', 'tblTempUsageDetail_20' ) start [2025-03-24 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750641', 'tblTempUsageDetail_20' ) end [2025-03-24 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750641', 'tblTempVendorCDR_20' ) start [2025-03-24 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750641', 'tblTempVendorCDR_20' ) end [2025-03-24 07:31:18] Production.INFO: ProcessCDR(1,14750641,1,1,2) [2025-03-24 07:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750641', 'tblTempUsageDetail_20' ) start [2025-03-24 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750641', 'tblTempUsageDetail_20' ) end [2025-03-24 07:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 07:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 07:31:21] Production.INFO: ==31942== Releasing lock... [2025-03-24 07:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 07:31:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 07:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 04:32:06 [end_date_ymd] => 2025-03-24 07:32:06 [RateCDR] => 1 ) [2025-03-24 07: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-03-24 04:32:06' and `end` < '2025-03-24 07: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-03-24 07:32:18] Production.INFO: count ==152 [2025-03-24 07:32:19] Production.ERROR: pbx CDR StartTime 2025-03-24 04:32:06 - End Time 2025-03-24 07:32:06 [2025-03-24 07:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750646', 'tblTempUsageDetail_20' ) start [2025-03-24 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750646', 'tblTempUsageDetail_20' ) end [2025-03-24 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750646', 'tblTempVendorCDR_20' ) start [2025-03-24 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750646', 'tblTempVendorCDR_20' ) end [2025-03-24 07:32:19] Production.INFO: ProcessCDR(1,14750646,1,1,2) [2025-03-24 07:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750646', 'tblTempUsageDetail_20' ) start [2025-03-24 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750646', 'tblTempUsageDetail_20' ) end [2025-03-24 07:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 07:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 07:32:22] Production.INFO: ==32044== Releasing lock... [2025-03-24 07:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 07:32:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 04:33:05 [end_date_ymd] => 2025-03-24 07:33:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 04:33:05' and `end` < '2025-03-24 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-03-24 07:33:18] Production.INFO: count ==152 [2025-03-24 07:33:18] Production.ERROR: pbx CDR StartTime 2025-03-24 04:33:05 - End Time 2025-03-24 07:33:05 [2025-03-24 07:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750651', 'tblTempUsageDetail_20' ) start [2025-03-24 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750651', 'tblTempUsageDetail_20' ) end [2025-03-24 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750651', 'tblTempVendorCDR_20' ) start [2025-03-24 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750651', 'tblTempVendorCDR_20' ) end [2025-03-24 07:33:18] Production.INFO: ProcessCDR(1,14750651,1,1,2) [2025-03-24 07:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750651', 'tblTempUsageDetail_20' ) start [2025-03-24 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750651', 'tblTempUsageDetail_20' ) end [2025-03-24 07:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 07:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 07:33:21] Production.INFO: ==32140== Releasing lock... [2025-03-24 07:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 07:33:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 07:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 04:34:06 [end_date_ymd] => 2025-03-24 07:34:06 [RateCDR] => 1 ) [2025-03-24 07: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-03-24 04:34:06' and `end` < '2025-03-24 07: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-03-24 07:34:18] Production.INFO: count ==152 [2025-03-24 07:34:18] Production.ERROR: pbx CDR StartTime 2025-03-24 04:34:06 - End Time 2025-03-24 07:34:06 [2025-03-24 07:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750656', 'tblTempUsageDetail_20' ) start [2025-03-24 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750656', 'tblTempUsageDetail_20' ) end [2025-03-24 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750656', 'tblTempVendorCDR_20' ) start [2025-03-24 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750656', 'tblTempVendorCDR_20' ) end [2025-03-24 07:34:18] Production.INFO: ProcessCDR(1,14750656,1,1,2) [2025-03-24 07:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750656', 'tblTempUsageDetail_20' ) start [2025-03-24 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750656', 'tblTempUsageDetail_20' ) end [2025-03-24 07:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 07:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 07:34:21] Production.INFO: ==32244== Releasing lock... [2025-03-24 07:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 07:34:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 04:35:05 [end_date_ymd] => 2025-03-24 07:35:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 04:35:05' and `end` < '2025-03-24 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-03-24 07:35:18] Production.INFO: count ==149 [2025-03-24 07:35:18] Production.ERROR: pbx CDR StartTime 2025-03-24 04:35:05 - End Time 2025-03-24 07:35:05 [2025-03-24 07:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750661', 'tblTempUsageDetail_20' ) start [2025-03-24 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750661', 'tblTempUsageDetail_20' ) end [2025-03-24 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750661', 'tblTempVendorCDR_20' ) start [2025-03-24 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750661', 'tblTempVendorCDR_20' ) end [2025-03-24 07:35:18] Production.INFO: ProcessCDR(1,14750661,1,1,2) [2025-03-24 07:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750661', 'tblTempUsageDetail_20' ) start [2025-03-24 07:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750661', 'tblTempUsageDetail_20' ) end [2025-03-24 07:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 07:35:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 07:35:23] Production.INFO: ==32343== Releasing lock... [2025-03-24 07:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 07:35:23] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 07:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 04:36:06 [end_date_ymd] => 2025-03-24 07:36:06 [RateCDR] => 1 ) [2025-03-24 07: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-03-24 04:36:06' and `end` < '2025-03-24 07: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-03-24 07:36:18] Production.INFO: count ==145 [2025-03-24 07:36:18] Production.ERROR: pbx CDR StartTime 2025-03-24 04:36:06 - End Time 2025-03-24 07:36:06 [2025-03-24 07:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750666', 'tblTempUsageDetail_20' ) start [2025-03-24 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750666', 'tblTempUsageDetail_20' ) end [2025-03-24 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750666', 'tblTempVendorCDR_20' ) start [2025-03-24 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750666', 'tblTempVendorCDR_20' ) end [2025-03-24 07:36:18] Production.INFO: ProcessCDR(1,14750666,1,1,2) [2025-03-24 07:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750666', 'tblTempUsageDetail_20' ) start [2025-03-24 07:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750666', 'tblTempUsageDetail_20' ) end [2025-03-24 07:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 07:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 07:36:22] Production.INFO: ==32440== Releasing lock... [2025-03-24 07:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 07:36:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-24 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 04:37:05 [end_date_ymd] => 2025-03-24 07:37:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 04:37:05' and `end` < '2025-03-24 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-03-24 07:37:17] Production.INFO: count ==152 [2025-03-24 07:37:18] Production.ERROR: pbx CDR StartTime 2025-03-24 04:37:05 - End Time 2025-03-24 07:37:05 [2025-03-24 07:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750671', 'tblTempUsageDetail_20' ) start [2025-03-24 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750671', 'tblTempUsageDetail_20' ) end [2025-03-24 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750671', 'tblTempVendorCDR_20' ) start [2025-03-24 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750671', 'tblTempVendorCDR_20' ) end [2025-03-24 07:37:18] Production.INFO: ProcessCDR(1,14750671,1,1,2) [2025-03-24 07:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750671', 'tblTempUsageDetail_20' ) start [2025-03-24 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750671', 'tblTempUsageDetail_20' ) end [2025-03-24 07:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 07:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 07:37:21] Production.INFO: ==32539== Releasing lock... [2025-03-24 07:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 07:37:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 07:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 04:38:06 [end_date_ymd] => 2025-03-24 07:38:06 [RateCDR] => 1 ) [2025-03-24 07: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-03-24 04:38:06' and `end` < '2025-03-24 07: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-03-24 07:38:18] Production.INFO: count ==152 [2025-03-24 07:38:18] Production.ERROR: pbx CDR StartTime 2025-03-24 04:38:06 - End Time 2025-03-24 07:38:06 [2025-03-24 07:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750676', 'tblTempUsageDetail_20' ) start [2025-03-24 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750676', 'tblTempUsageDetail_20' ) end [2025-03-24 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750676', 'tblTempVendorCDR_20' ) start [2025-03-24 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750676', 'tblTempVendorCDR_20' ) end [2025-03-24 07:38:18] Production.INFO: ProcessCDR(1,14750676,1,1,2) [2025-03-24 07:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750676', 'tblTempUsageDetail_20' ) start [2025-03-24 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750676', 'tblTempUsageDetail_20' ) end [2025-03-24 07:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 07:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 07:38:21] Production.INFO: ==32640== Releasing lock... [2025-03-24 07:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 07:38:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 04:39:05 [end_date_ymd] => 2025-03-24 07:39:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 04:39:05' and `end` < '2025-03-24 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-03-24 07:39:17] Production.INFO: count ==153 [2025-03-24 07:39:17] Production.ERROR: pbx CDR StartTime 2025-03-24 04:39:05 - End Time 2025-03-24 07:39:05 [2025-03-24 07:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750681', 'tblTempUsageDetail_20' ) start [2025-03-24 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750681', 'tblTempUsageDetail_20' ) end [2025-03-24 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750681', 'tblTempVendorCDR_20' ) start [2025-03-24 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750681', 'tblTempVendorCDR_20' ) end [2025-03-24 07:39:17] Production.INFO: ProcessCDR(1,14750681,1,1,2) [2025-03-24 07:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750681', 'tblTempUsageDetail_20' ) start [2025-03-24 07:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750681', 'tblTempUsageDetail_20' ) end [2025-03-24 07:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 07:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 07:39:23] Production.INFO: ==32741== Releasing lock... [2025-03-24 07:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 07:39:23] Production.INFO: 29.75 MB #Memory Used# [2025-03-24 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 04:40:06 [end_date_ymd] => 2025-03-24 07:40:06 [RateCDR] => 1 ) [2025-03-24 07: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-03-24 04:40:06' and `end` < '2025-03-24 07: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-03-24 07:40:19] Production.INFO: count ==159 [2025-03-24 07:40:19] Production.ERROR: pbx CDR StartTime 2025-03-24 04:40:06 - End Time 2025-03-24 07:40:06 [2025-03-24 07:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750687', 'tblTempUsageDetail_20' ) start [2025-03-24 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750687', 'tblTempUsageDetail_20' ) end [2025-03-24 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750687', 'tblTempVendorCDR_20' ) start [2025-03-24 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750687', 'tblTempVendorCDR_20' ) end [2025-03-24 07:40:19] Production.INFO: ProcessCDR(1,14750687,1,1,2) [2025-03-24 07:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750687', 'tblTempUsageDetail_20' ) start [2025-03-24 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750687', 'tblTempUsageDetail_20' ) end [2025-03-24 07:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 07:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 07:40:22] Production.INFO: ==395== Releasing lock... [2025-03-24 07:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 07:40:22] Production.INFO: 30 MB #Memory Used# [2025-03-24 07:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 04:41:04 [end_date_ymd] => 2025-03-24 07:41:04 [RateCDR] => 1 ) [2025-03-24 07:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 04:41:04' and `end` < '2025-03-24 07:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 07:41:17] Production.INFO: count ==159 [2025-03-24 07:41:17] Production.ERROR: pbx CDR StartTime 2025-03-24 04:41:04 - End Time 2025-03-24 07:41:04 [2025-03-24 07:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750692', 'tblTempUsageDetail_20' ) start [2025-03-24 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750692', 'tblTempUsageDetail_20' ) end [2025-03-24 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750692', 'tblTempVendorCDR_20' ) start [2025-03-24 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750692', 'tblTempVendorCDR_20' ) end [2025-03-24 07:41:17] Production.INFO: ProcessCDR(1,14750692,1,1,2) [2025-03-24 07:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750692', 'tblTempUsageDetail_20' ) start [2025-03-24 07:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750692', 'tblTempUsageDetail_20' ) end [2025-03-24 07:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-24 07:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-24 07:41:20] Production.INFO: ==505== Releasing lock... [2025-03-24 07:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 07:41:20] Production.INFO: 30 MB #Memory Used# [2025-03-24 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 04:42:05 [end_date_ymd] => 2025-03-24 07:42:05 [RateCDR] => 1 ) [2025-03-24 07:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 04:42:05' and `end` < '2025-03-24 07:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 07:42:18] Production.INFO: count ==159 [2025-03-24 07:42:18] Production.ERROR: pbx CDR StartTime 2025-03-24 04:42:05 - End Time 2025-03-24 07:42:05 [2025-03-24 07:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750697', 'tblTempUsageDetail_20' ) start [2025-03-24 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750697', 'tblTempUsageDetail_20' ) end [2025-03-24 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750697', 'tblTempVendorCDR_20' ) start [2025-03-24 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750697', 'tblTempVendorCDR_20' ) end [2025-03-24 07:42:18] Production.INFO: ProcessCDR(1,14750697,1,1,2) [2025-03-24 07:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750697', 'tblTempUsageDetail_20' ) start [2025-03-24 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750697', 'tblTempUsageDetail_20' ) end [2025-03-24 07:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 07:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 07:42:21] Production.INFO: ==619== Releasing lock... [2025-03-24 07:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 07:42:21] Production.INFO: 30 MB #Memory Used# [2025-03-24 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 04:43:05 [end_date_ymd] => 2025-03-24 07:43:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 04:43:05' and `end` < '2025-03-24 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-03-24 07:43:17] Production.INFO: count ==155 [2025-03-24 07:43:17] Production.ERROR: pbx CDR StartTime 2025-03-24 04:43:05 - End Time 2025-03-24 07:43:05 [2025-03-24 07:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750702', 'tblTempUsageDetail_20' ) start [2025-03-24 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750702', 'tblTempUsageDetail_20' ) end [2025-03-24 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750702', 'tblTempVendorCDR_20' ) start [2025-03-24 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750702', 'tblTempVendorCDR_20' ) end [2025-03-24 07:43:17] Production.INFO: ProcessCDR(1,14750702,1,1,2) [2025-03-24 07:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750702', 'tblTempUsageDetail_20' ) start [2025-03-24 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750702', 'tblTempUsageDetail_20' ) end [2025-03-24 07:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 07:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 07:43:21] Production.INFO: ==756== Releasing lock... [2025-03-24 07:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 07:43:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 04:44:05 [end_date_ymd] => 2025-03-24 07:44:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 04:44:05' and `end` < '2025-03-24 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-03-24 07:44:18] Production.INFO: count ==151 [2025-03-24 07:44:18] Production.ERROR: pbx CDR StartTime 2025-03-24 04:44:05 - End Time 2025-03-24 07:44:05 [2025-03-24 07:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750707', 'tblTempUsageDetail_20' ) start [2025-03-24 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750707', 'tblTempUsageDetail_20' ) end [2025-03-24 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750707', 'tblTempVendorCDR_20' ) start [2025-03-24 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750707', 'tblTempVendorCDR_20' ) end [2025-03-24 07:44:18] Production.INFO: ProcessCDR(1,14750707,1,1,2) [2025-03-24 07:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750707', 'tblTempUsageDetail_20' ) start [2025-03-24 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750707', 'tblTempUsageDetail_20' ) end [2025-03-24 07:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 07:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 07:44:21] Production.INFO: ==859== Releasing lock... [2025-03-24 07:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 07:44:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-24 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 04:45:05 [end_date_ymd] => 2025-03-24 07:45:05 [RateCDR] => 1 ) [2025-03-24 07:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 04:45:05' and `end` < '2025-03-24 07:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 07:45:18] Production.INFO: count ==147 [2025-03-24 07:45:18] Production.ERROR: pbx CDR StartTime 2025-03-24 04:45:05 - End Time 2025-03-24 07:45:05 [2025-03-24 07:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750712', 'tblTempUsageDetail_20' ) start [2025-03-24 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750712', 'tblTempUsageDetail_20' ) end [2025-03-24 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750712', 'tblTempVendorCDR_20' ) start [2025-03-24 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750712', 'tblTempVendorCDR_20' ) end [2025-03-24 07:45:18] Production.INFO: ProcessCDR(1,14750712,1,1,2) [2025-03-24 07:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750712', 'tblTempUsageDetail_20' ) start [2025-03-24 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750712', 'tblTempUsageDetail_20' ) end [2025-03-24 07:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 07:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 07:45:21] Production.INFO: ==965== Releasing lock... [2025-03-24 07:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 07:45:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 07:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 04:46:06 [end_date_ymd] => 2025-03-24 07:46:06 [RateCDR] => 1 ) [2025-03-24 07: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-03-24 04:46:06' and `end` < '2025-03-24 07: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-03-24 07:46:18] Production.INFO: count ==143 [2025-03-24 07:46:18] Production.ERROR: pbx CDR StartTime 2025-03-24 04:46:06 - End Time 2025-03-24 07:46:06 [2025-03-24 07:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750717', 'tblTempUsageDetail_20' ) start [2025-03-24 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750717', 'tblTempUsageDetail_20' ) end [2025-03-24 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750717', 'tblTempVendorCDR_20' ) start [2025-03-24 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750717', 'tblTempVendorCDR_20' ) end [2025-03-24 07:46:18] Production.INFO: ProcessCDR(1,14750717,1,1,2) [2025-03-24 07:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750717', 'tblTempUsageDetail_20' ) start [2025-03-24 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750717', 'tblTempUsageDetail_20' ) end [2025-03-24 07:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 07:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 07:46:21] Production.INFO: ==1063== Releasing lock... [2025-03-24 07:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 07:46:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 04:47:05 [end_date_ymd] => 2025-03-24 07:47:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 04:47:05' and `end` < '2025-03-24 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-03-24 07:47:18] Production.INFO: count ==148 [2025-03-24 07:47:18] Production.ERROR: pbx CDR StartTime 2025-03-24 04:47:05 - End Time 2025-03-24 07:47:05 [2025-03-24 07:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750722', 'tblTempUsageDetail_20' ) start [2025-03-24 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750722', 'tblTempUsageDetail_20' ) end [2025-03-24 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750722', 'tblTempVendorCDR_20' ) start [2025-03-24 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750722', 'tblTempVendorCDR_20' ) end [2025-03-24 07:47:18] Production.INFO: ProcessCDR(1,14750722,1,1,2) [2025-03-24 07:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750722', 'tblTempUsageDetail_20' ) start [2025-03-24 07:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750722', 'tblTempUsageDetail_20' ) end [2025-03-24 07:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 07:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 07:47:22] Production.INFO: ==1210== Releasing lock... [2025-03-24 07:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 07:47:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-24 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 04:48:05 [end_date_ymd] => 2025-03-24 07:48:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 04:48:05' and `end` < '2025-03-24 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-03-24 07:48:18] Production.INFO: count ==154 [2025-03-24 07:48:18] Production.ERROR: pbx CDR StartTime 2025-03-24 04:48:05 - End Time 2025-03-24 07:48:05 [2025-03-24 07:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750727', 'tblTempUsageDetail_20' ) start [2025-03-24 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750727', 'tblTempUsageDetail_20' ) end [2025-03-24 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750727', 'tblTempVendorCDR_20' ) start [2025-03-24 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750727', 'tblTempVendorCDR_20' ) end [2025-03-24 07:48:18] Production.INFO: ProcessCDR(1,14750727,1,1,2) [2025-03-24 07:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750727', 'tblTempUsageDetail_20' ) start [2025-03-24 07:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750727', 'tblTempUsageDetail_20' ) end [2025-03-24 07:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 07:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 07:48:22] Production.INFO: ==1326== Releasing lock... [2025-03-24 07:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 07:48:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 04:49:05 [end_date_ymd] => 2025-03-24 07:49:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 04:49:05' and `end` < '2025-03-24 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-03-24 07:49:17] Production.INFO: count ==157 [2025-03-24 07:49:17] Production.ERROR: pbx CDR StartTime 2025-03-24 04:49:05 - End Time 2025-03-24 07:49:05 [2025-03-24 07:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750732', 'tblTempUsageDetail_20' ) start [2025-03-24 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750732', 'tblTempUsageDetail_20' ) end [2025-03-24 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750732', 'tblTempVendorCDR_20' ) start [2025-03-24 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750732', 'tblTempVendorCDR_20' ) end [2025-03-24 07:49:18] Production.INFO: ProcessCDR(1,14750732,1,1,2) [2025-03-24 07:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750732', 'tblTempUsageDetail_20' ) start [2025-03-24 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750732', 'tblTempUsageDetail_20' ) end [2025-03-24 07:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 07:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 07:49:21] Production.INFO: ==1428== Releasing lock... [2025-03-24 07:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 07:49:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-24 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 04:50:06 [end_date_ymd] => 2025-03-24 07:50:06 [RateCDR] => 1 ) [2025-03-24 07:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 04:50:06' and `end` < '2025-03-24 07:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 07:50:19] Production.INFO: count ==158 [2025-03-24 07:50:19] Production.ERROR: pbx CDR StartTime 2025-03-24 04:50:06 - End Time 2025-03-24 07:50:06 [2025-03-24 07:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750738', 'tblTempUsageDetail_20' ) start [2025-03-24 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750738', 'tblTempUsageDetail_20' ) end [2025-03-24 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750738', 'tblTempVendorCDR_20' ) start [2025-03-24 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750738', 'tblTempVendorCDR_20' ) end [2025-03-24 07:50:19] Production.INFO: ProcessCDR(1,14750738,1,1,2) [2025-03-24 07:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750738', 'tblTempUsageDetail_20' ) start [2025-03-24 07:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750738', 'tblTempUsageDetail_20' ) end [2025-03-24 07:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 07:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 07:50:23] Production.INFO: ==1567== Releasing lock... [2025-03-24 07:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 07:50:23] Production.INFO: 29.75 MB #Memory Used# [2025-03-24 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 04:51:05 [end_date_ymd] => 2025-03-24 07:51:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 04:51:05' and `end` < '2025-03-24 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-03-24 07:51:18] Production.INFO: count ==163 [2025-03-24 07:51:18] Production.ERROR: pbx CDR StartTime 2025-03-24 04:51:05 - End Time 2025-03-24 07:51:05 [2025-03-24 07:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750743', 'tblTempUsageDetail_20' ) start [2025-03-24 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750743', 'tblTempUsageDetail_20' ) end [2025-03-24 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750743', 'tblTempVendorCDR_20' ) start [2025-03-24 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750743', 'tblTempVendorCDR_20' ) end [2025-03-24 07:51:18] Production.INFO: ProcessCDR(1,14750743,1,1,2) [2025-03-24 07:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750743', 'tblTempUsageDetail_20' ) start [2025-03-24 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750743', 'tblTempUsageDetail_20' ) end [2025-03-24 07:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 07:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 07:51:21] Production.INFO: ==1678== Releasing lock... [2025-03-24 07:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 07:51:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 04:52:05 [end_date_ymd] => 2025-03-24 07:52:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 04:52:05' and `end` < '2025-03-24 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-03-24 07:52:17] Production.INFO: count ==168 [2025-03-24 07:52:17] Production.ERROR: pbx CDR StartTime 2025-03-24 04:52:05 - End Time 2025-03-24 07:52:05 [2025-03-24 07:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750748', 'tblTempUsageDetail_20' ) start [2025-03-24 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750748', 'tblTempUsageDetail_20' ) end [2025-03-24 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750748', 'tblTempVendorCDR_20' ) start [2025-03-24 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750748', 'tblTempVendorCDR_20' ) end [2025-03-24 07:52:17] Production.INFO: ProcessCDR(1,14750748,1,1,2) [2025-03-24 07:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750748', 'tblTempUsageDetail_20' ) start [2025-03-24 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750748', 'tblTempUsageDetail_20' ) end [2025-03-24 07:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 07:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 07:52:21] Production.INFO: ==1778== Releasing lock... [2025-03-24 07:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 07:52:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-24 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 04:53:05 [end_date_ymd] => 2025-03-24 07:53:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 04:53:05' and `end` < '2025-03-24 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-03-24 07:53:17] Production.INFO: count ==173 [2025-03-24 07:53:17] Production.ERROR: pbx CDR StartTime 2025-03-24 04:53:05 - End Time 2025-03-24 07:53:05 [2025-03-24 07:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750753', 'tblTempUsageDetail_20' ) start [2025-03-24 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750753', 'tblTempUsageDetail_20' ) end [2025-03-24 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750753', 'tblTempVendorCDR_20' ) start [2025-03-24 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750753', 'tblTempVendorCDR_20' ) end [2025-03-24 07:53:18] Production.INFO: ProcessCDR(1,14750753,1,1,2) [2025-03-24 07:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750753', 'tblTempUsageDetail_20' ) start [2025-03-24 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750753', 'tblTempUsageDetail_20' ) end [2025-03-24 07:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 07:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 07:53:21] Production.INFO: ==1886== Releasing lock... [2025-03-24 07:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 07:53:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-24 07:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 04:54:06 [end_date_ymd] => 2025-03-24 07:54:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 04:54:06' and `end` < '2025-03-24 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-03-24 07:54:18] Production.INFO: count ==173 [2025-03-24 07:54:18] Production.ERROR: pbx CDR StartTime 2025-03-24 04:54:06 - End Time 2025-03-24 07:54:06 [2025-03-24 07:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750758', 'tblTempUsageDetail_20' ) start [2025-03-24 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750758', 'tblTempUsageDetail_20' ) end [2025-03-24 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750758', 'tblTempVendorCDR_20' ) start [2025-03-24 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750758', 'tblTempVendorCDR_20' ) end [2025-03-24 07:54:18] Production.INFO: ProcessCDR(1,14750758,1,1,2) [2025-03-24 07:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750758', 'tblTempUsageDetail_20' ) start [2025-03-24 07:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750758', 'tblTempUsageDetail_20' ) end [2025-03-24 07:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 07:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 07:54:22] Production.INFO: ==1992== Releasing lock... [2025-03-24 07:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 07:54:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-24 07:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 04:55:06 [end_date_ymd] => 2025-03-24 07:55:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 04:55:06' and `end` < '2025-03-24 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-03-24 07:55:18] Production.INFO: count ==178 [2025-03-24 07:55:18] Production.ERROR: pbx CDR StartTime 2025-03-24 04:55:06 - End Time 2025-03-24 07:55:06 [2025-03-24 07:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750763', 'tblTempUsageDetail_20' ) start [2025-03-24 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750763', 'tblTempUsageDetail_20' ) end [2025-03-24 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750763', 'tblTempVendorCDR_20' ) start [2025-03-24 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750763', 'tblTempVendorCDR_20' ) end [2025-03-24 07:55:18] Production.INFO: ProcessCDR(1,14750763,1,1,2) [2025-03-24 07:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750763', 'tblTempUsageDetail_20' ) start [2025-03-24 07:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750763', 'tblTempUsageDetail_20' ) end [2025-03-24 07:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 07:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 07:55:22] Production.INFO: ==2098== Releasing lock... [2025-03-24 07:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 07:55:22] Production.INFO: 30 MB #Memory Used# [2025-03-24 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 04:56:05 [end_date_ymd] => 2025-03-24 07:56:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 04:56:05' and `end` < '2025-03-24 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-03-24 07:56:18] Production.INFO: count ==178 [2025-03-24 07:56:18] Production.ERROR: pbx CDR StartTime 2025-03-24 04:56:05 - End Time 2025-03-24 07:56:05 [2025-03-24 07:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750768', 'tblTempUsageDetail_20' ) start [2025-03-24 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750768', 'tblTempUsageDetail_20' ) end [2025-03-24 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750768', 'tblTempVendorCDR_20' ) start [2025-03-24 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750768', 'tblTempVendorCDR_20' ) end [2025-03-24 07:56:18] Production.INFO: ProcessCDR(1,14750768,1,1,2) [2025-03-24 07:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750768', 'tblTempUsageDetail_20' ) start [2025-03-24 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750768', 'tblTempUsageDetail_20' ) end [2025-03-24 07:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 07:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 07:56:21] Production.INFO: ==2205== Releasing lock... [2025-03-24 07:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 07:56:21] Production.INFO: 30 MB #Memory Used# [2025-03-24 07:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 04:57:06 [end_date_ymd] => 2025-03-24 07:57:06 [RateCDR] => 1 ) [2025-03-24 07: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-03-24 04:57:06' and `end` < '2025-03-24 07: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-03-24 07:57:18] Production.INFO: count ==178 [2025-03-24 07:57:18] Production.ERROR: pbx CDR StartTime 2025-03-24 04:57:06 - End Time 2025-03-24 07:57:06 [2025-03-24 07:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750773', 'tblTempUsageDetail_20' ) start [2025-03-24 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750773', 'tblTempUsageDetail_20' ) end [2025-03-24 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750773', 'tblTempVendorCDR_20' ) start [2025-03-24 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750773', 'tblTempVendorCDR_20' ) end [2025-03-24 07:57:18] Production.INFO: ProcessCDR(1,14750773,1,1,2) [2025-03-24 07:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750773', 'tblTempUsageDetail_20' ) start [2025-03-24 07:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750773', 'tblTempUsageDetail_20' ) end [2025-03-24 07:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 07:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 07:57:22] Production.INFO: ==2307== Releasing lock... [2025-03-24 07:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 07:57:22] Production.INFO: 30 MB #Memory Used# [2025-03-24 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 04:58:05 [end_date_ymd] => 2025-03-24 07:58:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 04:58:05' and `end` < '2025-03-24 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-03-24 07:58:17] Production.INFO: count ==182 [2025-03-24 07:58:17] Production.ERROR: pbx CDR StartTime 2025-03-24 04:58:05 - End Time 2025-03-24 07:58:05 [2025-03-24 07:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750778', 'tblTempUsageDetail_20' ) start [2025-03-24 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750778', 'tblTempUsageDetail_20' ) end [2025-03-24 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750778', 'tblTempVendorCDR_20' ) start [2025-03-24 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750778', 'tblTempVendorCDR_20' ) end [2025-03-24 07:58:17] Production.INFO: ProcessCDR(1,14750778,1,1,2) [2025-03-24 07:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750778', 'tblTempUsageDetail_20' ) start [2025-03-24 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750778', 'tblTempUsageDetail_20' ) end [2025-03-24 07:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 07:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 07:58:21] Production.INFO: ==2416== Releasing lock... [2025-03-24 07:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 07:58:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-24 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 04:59:05 [end_date_ymd] => 2025-03-24 07:59:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 04:59:05' and `end` < '2025-03-24 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-03-24 07:59:17] Production.INFO: count ==178 [2025-03-24 07:59:17] Production.ERROR: pbx CDR StartTime 2025-03-24 04:59:05 - End Time 2025-03-24 07:59:05 [2025-03-24 07:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750783', 'tblTempUsageDetail_20' ) start [2025-03-24 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750783', 'tblTempUsageDetail_20' ) end [2025-03-24 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750783', 'tblTempVendorCDR_20' ) start [2025-03-24 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750783', 'tblTempVendorCDR_20' ) end [2025-03-24 07:59:17] Production.INFO: ProcessCDR(1,14750783,1,1,2) [2025-03-24 07:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 07:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750783', 'tblTempUsageDetail_20' ) start [2025-03-24 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750783', 'tblTempUsageDetail_20' ) end [2025-03-24 07:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 07:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 07:59:21] Production.INFO: ==2518== Releasing lock... [2025-03-24 07:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 07:59:21] Production.INFO: 30 MB #Memory Used# [2025-03-24 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 05:00:06 [end_date_ymd] => 2025-03-24 08:00:06 [RateCDR] => 1 ) [2025-03-24 08:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 05:00:06' and `end` < '2025-03-24 08:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 08:00:18] Production.INFO: count ==184 [2025-03-24 08:00:18] Production.ERROR: pbx CDR StartTime 2025-03-24 05:00:06 - End Time 2025-03-24 08:00:06 [2025-03-24 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750788', 'tblTempUsageDetail_20' ) start [2025-03-24 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750788', 'tblTempUsageDetail_20' ) end [2025-03-24 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750788', 'tblTempVendorCDR_20' ) start [2025-03-24 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750788', 'tblTempVendorCDR_20' ) end [2025-03-24 08:00:18] Production.INFO: ProcessCDR(1,14750788,1,1,2) [2025-03-24 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750788', 'tblTempUsageDetail_20' ) start [2025-03-24 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750788', 'tblTempUsageDetail_20' ) end [2025-03-24 08:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 08:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 08:00:22] Production.INFO: ==2621== Releasing lock... [2025-03-24 08:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 08:00:22] Production.INFO: 30 MB #Memory Used# [2025-03-24 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 05:01:05 [end_date_ymd] => 2025-03-24 08:01:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 05:01:05' and `end` < '2025-03-24 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-03-24 08:01:18] Production.INFO: count ==195 [2025-03-24 08:01:18] Production.ERROR: pbx CDR StartTime 2025-03-24 05:01:05 - End Time 2025-03-24 08:01:05 [2025-03-24 08:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750794', 'tblTempUsageDetail_20' ) start [2025-03-24 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750794', 'tblTempUsageDetail_20' ) end [2025-03-24 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750794', 'tblTempVendorCDR_20' ) start [2025-03-24 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750794', 'tblTempVendorCDR_20' ) end [2025-03-24 08:01:18] Production.INFO: ProcessCDR(1,14750794,1,1,2) [2025-03-24 08:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750794', 'tblTempUsageDetail_20' ) start [2025-03-24 08:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750794', 'tblTempUsageDetail_20' ) end [2025-03-24 08:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 08:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 08:01:23] Production.INFO: ==2745== Releasing lock... [2025-03-24 08:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 08:01:23] Production.INFO: 29.75 MB #Memory Used# [2025-03-24 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 05:02:05 [end_date_ymd] => 2025-03-24 08:02:05 [RateCDR] => 1 ) [2025-03-24 08: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-03-24 05:02:05' and `end` < '2025-03-24 08: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-03-24 08:02:18] Production.INFO: count ==202 [2025-03-24 08:02:18] Production.ERROR: pbx CDR StartTime 2025-03-24 05:02:05 - End Time 2025-03-24 08:02:05 [2025-03-24 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750799', 'tblTempUsageDetail_20' ) start [2025-03-24 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750799', 'tblTempUsageDetail_20' ) end [2025-03-24 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750799', 'tblTempVendorCDR_20' ) start [2025-03-24 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750799', 'tblTempVendorCDR_20' ) end [2025-03-24 08:02:18] Production.INFO: ProcessCDR(1,14750799,1,1,2) [2025-03-24 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750799', 'tblTempUsageDetail_20' ) start [2025-03-24 08:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750799', 'tblTempUsageDetail_20' ) end [2025-03-24 08:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 08:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 08:02:23] Production.INFO: ==2884== Releasing lock... [2025-03-24 08:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 08:02:23] Production.INFO: 30 MB #Memory Used# [2025-03-24 08:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 05:03:06 [end_date_ymd] => 2025-03-24 08:03:06 [RateCDR] => 1 ) [2025-03-24 08:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 05:03:06' and `end` < '2025-03-24 08:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 08:03:18] Production.INFO: count ==226 [2025-03-24 08:03:18] Production.ERROR: pbx CDR StartTime 2025-03-24 05:03:06 - End Time 2025-03-24 08:03:06 [2025-03-24 08:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750804', 'tblTempUsageDetail_20' ) start [2025-03-24 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750804', 'tblTempUsageDetail_20' ) end [2025-03-24 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750804', 'tblTempVendorCDR_20' ) start [2025-03-24 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750804', 'tblTempVendorCDR_20' ) end [2025-03-24 08:03:18] Production.INFO: ProcessCDR(1,14750804,1,1,2) [2025-03-24 08:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750804', 'tblTempUsageDetail_20' ) start [2025-03-24 08:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750804', 'tblTempUsageDetail_20' ) end [2025-03-24 08:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 08:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 08:03:22] Production.INFO: ==2990== Releasing lock... [2025-03-24 08:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 08:03:22] Production.INFO: 30 MB #Memory Used# [2025-03-24 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 05:04:05 [end_date_ymd] => 2025-03-24 08:04:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 05:04:05' and `end` < '2025-03-24 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-03-24 08:04:18] Production.INFO: count ==231 [2025-03-24 08:04:18] Production.ERROR: pbx CDR StartTime 2025-03-24 05:04:05 - End Time 2025-03-24 08:04:05 [2025-03-24 08:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750809', 'tblTempUsageDetail_20' ) start [2025-03-24 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750809', 'tblTempUsageDetail_20' ) end [2025-03-24 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750809', 'tblTempVendorCDR_20' ) start [2025-03-24 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750809', 'tblTempVendorCDR_20' ) end [2025-03-24 08:04:18] Production.INFO: ProcessCDR(1,14750809,1,1,2) [2025-03-24 08:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750809', 'tblTempUsageDetail_20' ) start [2025-03-24 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750809', 'tblTempUsageDetail_20' ) end [2025-03-24 08:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 08:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 08:04:22] Production.INFO: ==3097== Releasing lock... [2025-03-24 08:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 08:04:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-24 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 05:05:05 [end_date_ymd] => 2025-03-24 08:05:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 05:05:05' and `end` < '2025-03-24 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-03-24 08:05:17] Production.INFO: count ==239 [2025-03-24 08:05:17] Production.ERROR: pbx CDR StartTime 2025-03-24 05:05:05 - End Time 2025-03-24 08:05:05 [2025-03-24 08:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750814', 'tblTempUsageDetail_20' ) start [2025-03-24 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750814', 'tblTempUsageDetail_20' ) end [2025-03-24 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750814', 'tblTempVendorCDR_20' ) start [2025-03-24 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750814', 'tblTempVendorCDR_20' ) end [2025-03-24 08:05:17] Production.INFO: ProcessCDR(1,14750814,1,1,2) [2025-03-24 08:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750814', 'tblTempUsageDetail_20' ) start [2025-03-24 08:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750814', 'tblTempUsageDetail_20' ) end [2025-03-24 08:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 08:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 08:05:22] Production.INFO: ==3199== Releasing lock... [2025-03-24 08:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 08:05:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-24 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 05:06:05 [end_date_ymd] => 2025-03-24 08:06:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 05:06:05' and `end` < '2025-03-24 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-03-24 08:06:18] Production.INFO: count ==247 [2025-03-24 08:06:18] Production.ERROR: pbx CDR StartTime 2025-03-24 05:06:05 - End Time 2025-03-24 08:06:05 [2025-03-24 08:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750819', 'tblTempUsageDetail_20' ) start [2025-03-24 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750819', 'tblTempUsageDetail_20' ) end [2025-03-24 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750819', 'tblTempVendorCDR_20' ) start [2025-03-24 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750819', 'tblTempVendorCDR_20' ) end [2025-03-24 08:06:18] Production.INFO: ProcessCDR(1,14750819,1,1,2) [2025-03-24 08:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750819', 'tblTempUsageDetail_20' ) start [2025-03-24 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750819', 'tblTempUsageDetail_20' ) end [2025-03-24 08:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 08:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 08:06:21] Production.INFO: ==3307== Releasing lock... [2025-03-24 08:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 08:06:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-24 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 05:07:05 [end_date_ymd] => 2025-03-24 08:07:05 [RateCDR] => 1 ) [2025-03-24 08:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 05:07:05' and `end` < '2025-03-24 08:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 08:07:18] Production.INFO: count ==248 [2025-03-24 08:07:18] Production.ERROR: pbx CDR StartTime 2025-03-24 05:07:05 - End Time 2025-03-24 08:07:05 [2025-03-24 08:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750824', 'tblTempUsageDetail_20' ) start [2025-03-24 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750824', 'tblTempUsageDetail_20' ) end [2025-03-24 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750824', 'tblTempVendorCDR_20' ) start [2025-03-24 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750824', 'tblTempVendorCDR_20' ) end [2025-03-24 08:07:18] Production.INFO: ProcessCDR(1,14750824,1,1,2) [2025-03-24 08:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750824', 'tblTempUsageDetail_20' ) start [2025-03-24 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750824', 'tblTempUsageDetail_20' ) end [2025-03-24 08:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 08:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 08:07:21] Production.INFO: ==3406== Releasing lock... [2025-03-24 08:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 08:07:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-24 08:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 05:08:06 [end_date_ymd] => 2025-03-24 08:08:06 [RateCDR] => 1 ) [2025-03-24 08: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-03-24 05:08:06' and `end` < '2025-03-24 08: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-03-24 08:08:18] Production.INFO: count ==253 [2025-03-24 08:08:18] Production.ERROR: pbx CDR StartTime 2025-03-24 05:08:06 - End Time 2025-03-24 08:08:06 [2025-03-24 08:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750829', 'tblTempUsageDetail_20' ) start [2025-03-24 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750829', 'tblTempUsageDetail_20' ) end [2025-03-24 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750829', 'tblTempVendorCDR_20' ) start [2025-03-24 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750829', 'tblTempVendorCDR_20' ) end [2025-03-24 08:08:18] Production.INFO: ProcessCDR(1,14750829,1,1,2) [2025-03-24 08:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750829', 'tblTempUsageDetail_20' ) start [2025-03-24 08:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750829', 'tblTempUsageDetail_20' ) end [2025-03-24 08:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 08:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 08:08:23] Production.INFO: ==3510== Releasing lock... [2025-03-24 08:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 08:08:23] Production.INFO: 30.25 MB #Memory Used# [2025-03-24 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 05:09:05 [end_date_ymd] => 2025-03-24 08:09:05 [RateCDR] => 1 ) [2025-03-24 08:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 05:09:05' and `end` < '2025-03-24 08:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 08:09:17] Production.INFO: count ==254 [2025-03-24 08:09:17] Production.ERROR: pbx CDR StartTime 2025-03-24 05:09:05 - End Time 2025-03-24 08:09:05 [2025-03-24 08:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750834', 'tblTempUsageDetail_20' ) start [2025-03-24 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750834', 'tblTempUsageDetail_20' ) end [2025-03-24 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750834', 'tblTempVendorCDR_20' ) start [2025-03-24 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750834', 'tblTempVendorCDR_20' ) end [2025-03-24 08:09:17] Production.INFO: ProcessCDR(1,14750834,1,1,2) [2025-03-24 08:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750834', 'tblTempUsageDetail_20' ) start [2025-03-24 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750834', 'tblTempUsageDetail_20' ) end [2025-03-24 08:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 08:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 08:09:22] Production.INFO: ==3616== Releasing lock... [2025-03-24 08:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 08:09:22] Production.INFO: 30 MB #Memory Used# [2025-03-24 08:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 05:10:06 [end_date_ymd] => 2025-03-24 08:10:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 05:10:06' and `end` < '2025-03-24 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-03-24 08:10:18] Production.INFO: count ==262 [2025-03-24 08:10:18] Production.ERROR: pbx CDR StartTime 2025-03-24 05:10:06 - End Time 2025-03-24 08:10:06 [2025-03-24 08:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750840', 'tblTempUsageDetail_20' ) start [2025-03-24 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750840', 'tblTempUsageDetail_20' ) end [2025-03-24 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750840', 'tblTempVendorCDR_20' ) start [2025-03-24 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750840', 'tblTempVendorCDR_20' ) end [2025-03-24 08:10:19] Production.INFO: ProcessCDR(1,14750840,1,1,2) [2025-03-24 08:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750840', 'tblTempUsageDetail_20' ) start [2025-03-24 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750840', 'tblTempUsageDetail_20' ) end [2025-03-24 08:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 08:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 08:10:22] Production.INFO: ==3722== Releasing lock... [2025-03-24 08:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 08:10:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-24 08:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 05:11:04 [end_date_ymd] => 2025-03-24 08:11:04 [RateCDR] => 1 ) [2025-03-24 08:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 05:11:04' and `end` < '2025-03-24 08:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 08:11:17] Production.INFO: count ==283 [2025-03-24 08:11:17] Production.ERROR: pbx CDR StartTime 2025-03-24 05:11:04 - End Time 2025-03-24 08:11:04 [2025-03-24 08:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750845', 'tblTempUsageDetail_20' ) start [2025-03-24 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750845', 'tblTempUsageDetail_20' ) end [2025-03-24 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750845', 'tblTempVendorCDR_20' ) start [2025-03-24 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750845', 'tblTempVendorCDR_20' ) end [2025-03-24 08:11:17] Production.INFO: ProcessCDR(1,14750845,1,1,2) [2025-03-24 08:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750845', 'tblTempUsageDetail_20' ) start [2025-03-24 08:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750845', 'tblTempUsageDetail_20' ) end [2025-03-24 08:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 08:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 08:11:22] Production.INFO: ==3818== Releasing lock... [2025-03-24 08:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 08:11:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-24 08:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 05:12:06 [end_date_ymd] => 2025-03-24 08:12:06 [RateCDR] => 1 ) [2025-03-24 08: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-03-24 05:12:06' and `end` < '2025-03-24 08: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-03-24 08:12:18] Production.INFO: count ==287 [2025-03-24 08:12:18] Production.ERROR: pbx CDR StartTime 2025-03-24 05:12:06 - End Time 2025-03-24 08:12:06 [2025-03-24 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750850', 'tblTempUsageDetail_20' ) start [2025-03-24 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750850', 'tblTempUsageDetail_20' ) end [2025-03-24 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750850', 'tblTempVendorCDR_20' ) start [2025-03-24 08:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750850', 'tblTempVendorCDR_20' ) end [2025-03-24 08:12:19] Production.INFO: ProcessCDR(1,14750850,1,1,2) [2025-03-24 08:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750850', 'tblTempUsageDetail_20' ) start [2025-03-24 08:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750850', 'tblTempUsageDetail_20' ) end [2025-03-24 08:12:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 08:12:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 08:12:24] Production.INFO: ==3903== Releasing lock... [2025-03-24 08:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 08:12:24] Production.INFO: 30.5 MB #Memory Used# [2025-03-24 08:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 05:13:06 [end_date_ymd] => 2025-03-24 08:13:06 [RateCDR] => 1 ) [2025-03-24 08: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-03-24 05:13:06' and `end` < '2025-03-24 08: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-03-24 08:13:18] Production.INFO: count ==306 [2025-03-24 08:13:18] Production.ERROR: pbx CDR StartTime 2025-03-24 05:13:06 - End Time 2025-03-24 08:13:06 [2025-03-24 08:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750855', 'tblTempUsageDetail_20' ) start [2025-03-24 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750855', 'tblTempUsageDetail_20' ) end [2025-03-24 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750855', 'tblTempVendorCDR_20' ) start [2025-03-24 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750855', 'tblTempVendorCDR_20' ) end [2025-03-24 08:13:18] Production.INFO: ProcessCDR(1,14750855,1,1,2) [2025-03-24 08:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750855', 'tblTempUsageDetail_20' ) start [2025-03-24 08:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750855', 'tblTempUsageDetail_20' ) end [2025-03-24 08:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 08:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 08:13:23] Production.INFO: ==3993== Releasing lock... [2025-03-24 08:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 08:13:23] Production.INFO: 30.75 MB #Memory Used# [2025-03-24 08:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 05:14:06 [end_date_ymd] => 2025-03-24 08:14:06 [RateCDR] => 1 ) [2025-03-24 08: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-03-24 05:14:06' and `end` < '2025-03-24 08: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-03-24 08:14:18] Production.INFO: count ==313 [2025-03-24 08:14:19] Production.ERROR: pbx CDR StartTime 2025-03-24 05:14:06 - End Time 2025-03-24 08:14:06 [2025-03-24 08:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750860', 'tblTempUsageDetail_20' ) start [2025-03-24 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750860', 'tblTempUsageDetail_20' ) end [2025-03-24 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750860', 'tblTempVendorCDR_20' ) start [2025-03-24 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750860', 'tblTempVendorCDR_20' ) end [2025-03-24 08:14:19] Production.INFO: ProcessCDR(1,14750860,1,1,2) [2025-03-24 08:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750860', 'tblTempUsageDetail_20' ) start [2025-03-24 08:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750860', 'tblTempUsageDetail_20' ) end [2025-03-24 08:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 08:14:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 08:14:24] Production.INFO: ==4087== Releasing lock... [2025-03-24 08:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 08:14:24] Production.INFO: 30.75 MB #Memory Used# [2025-03-24 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 05:15:05 [end_date_ymd] => 2025-03-24 08:15:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 05:15:05' and `end` < '2025-03-24 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-03-24 08:15:18] Production.INFO: count ==319 [2025-03-24 08:15:18] Production.ERROR: pbx CDR StartTime 2025-03-24 05:15:05 - End Time 2025-03-24 08:15:05 [2025-03-24 08:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750865', 'tblTempUsageDetail_20' ) start [2025-03-24 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750865', 'tblTempUsageDetail_20' ) end [2025-03-24 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750865', 'tblTempVendorCDR_20' ) start [2025-03-24 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750865', 'tblTempVendorCDR_20' ) end [2025-03-24 08:15:18] Production.INFO: ProcessCDR(1,14750865,1,1,2) [2025-03-24 08:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750865', 'tblTempUsageDetail_20' ) start [2025-03-24 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750865', 'tblTempUsageDetail_20' ) end [2025-03-24 08:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 08:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 08:15:21] Production.INFO: ==4178== Releasing lock... [2025-03-24 08:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 08:15:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-24 08:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 05:16:06 [end_date_ymd] => 2025-03-24 08:16:06 [RateCDR] => 1 ) [2025-03-24 08: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-03-24 05:16:06' and `end` < '2025-03-24 08: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-03-24 08:16:18] Production.INFO: count ==337 [2025-03-24 08:16:18] Production.ERROR: pbx CDR StartTime 2025-03-24 05:16:06 - End Time 2025-03-24 08:16:06 [2025-03-24 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750870', 'tblTempUsageDetail_20' ) start [2025-03-24 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750870', 'tblTempUsageDetail_20' ) end [2025-03-24 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750870', 'tblTempVendorCDR_20' ) start [2025-03-24 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750870', 'tblTempVendorCDR_20' ) end [2025-03-24 08:16:18] Production.INFO: ProcessCDR(1,14750870,1,1,2) [2025-03-24 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750870', 'tblTempUsageDetail_20' ) start [2025-03-24 08:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750870', 'tblTempUsageDetail_20' ) end [2025-03-24 08:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 08:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 08:16:22] Production.INFO: ==4267== Releasing lock... [2025-03-24 08:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 08:16:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-24 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 05:17:05 [end_date_ymd] => 2025-03-24 08:17:05 [RateCDR] => 1 ) [2025-03-24 08:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 05:17:05' and `end` < '2025-03-24 08:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 08:17:17] Production.INFO: count ==352 [2025-03-24 08:17:17] Production.ERROR: pbx CDR StartTime 2025-03-24 05:17:05 - End Time 2025-03-24 08:17:05 [2025-03-24 08:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750875', 'tblTempUsageDetail_20' ) start [2025-03-24 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750875', 'tblTempUsageDetail_20' ) end [2025-03-24 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750875', 'tblTempVendorCDR_20' ) start [2025-03-24 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750875', 'tblTempVendorCDR_20' ) end [2025-03-24 08:17:17] Production.INFO: ProcessCDR(1,14750875,1,1,2) [2025-03-24 08:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750875', 'tblTempUsageDetail_20' ) start [2025-03-24 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750875', 'tblTempUsageDetail_20' ) end [2025-03-24 08:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 08:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 08:17:22] Production.INFO: ==4351== Releasing lock... [2025-03-24 08:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 08:17:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-24 08:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 05:18:06 [end_date_ymd] => 2025-03-24 08:18:06 [RateCDR] => 1 ) [2025-03-24 08: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-03-24 05:18:06' and `end` < '2025-03-24 08: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-03-24 08:18:18] Production.INFO: count ==365 [2025-03-24 08:18:18] Production.ERROR: pbx CDR StartTime 2025-03-24 05:18:06 - End Time 2025-03-24 08:18:06 [2025-03-24 08:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750880', 'tblTempUsageDetail_20' ) start [2025-03-24 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750880', 'tblTempUsageDetail_20' ) end [2025-03-24 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750880', 'tblTempVendorCDR_20' ) start [2025-03-24 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750880', 'tblTempVendorCDR_20' ) end [2025-03-24 08:18:18] Production.INFO: ProcessCDR(1,14750880,1,1,2) [2025-03-24 08:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750880', 'tblTempUsageDetail_20' ) start [2025-03-24 08:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750880', 'tblTempUsageDetail_20' ) end [2025-03-24 08:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 08:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 08:18:23] Production.INFO: ==4478== Releasing lock... [2025-03-24 08:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 08:18:23] Production.INFO: 31.5 MB #Memory Used# [2025-03-24 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 05:19:05 [end_date_ymd] => 2025-03-24 08:19:05 [RateCDR] => 1 ) [2025-03-24 08:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 05:19:05' and `end` < '2025-03-24 08:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 08:19:17] Production.INFO: count ==378 [2025-03-24 08:19:17] Production.ERROR: pbx CDR StartTime 2025-03-24 05:19:05 - End Time 2025-03-24 08:19:05 [2025-03-24 08:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750885', 'tblTempUsageDetail_20' ) start [2025-03-24 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750885', 'tblTempUsageDetail_20' ) end [2025-03-24 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750885', 'tblTempVendorCDR_20' ) start [2025-03-24 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750885', 'tblTempVendorCDR_20' ) end [2025-03-24 08:19:17] Production.INFO: ProcessCDR(1,14750885,1,1,2) [2025-03-24 08:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750885', 'tblTempUsageDetail_20' ) start [2025-03-24 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750885', 'tblTempUsageDetail_20' ) end [2025-03-24 08:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 08:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 08:19:22] Production.INFO: ==4566== Releasing lock... [2025-03-24 08:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 08:19:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-24 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 05:20:06 [end_date_ymd] => 2025-03-24 08:20:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 05:20:06' and `end` < '2025-03-24 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-03-24 08:20:18] Production.INFO: count ==393 [2025-03-24 08:20:18] Production.ERROR: pbx CDR StartTime 2025-03-24 05:20:06 - End Time 2025-03-24 08:20:06 [2025-03-24 08:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750890', 'tblTempUsageDetail_20' ) start [2025-03-24 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750890', 'tblTempUsageDetail_20' ) end [2025-03-24 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750890', 'tblTempVendorCDR_20' ) start [2025-03-24 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750890', 'tblTempVendorCDR_20' ) end [2025-03-24 08:20:18] Production.INFO: ProcessCDR(1,14750890,1,1,2) [2025-03-24 08:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750890', 'tblTempUsageDetail_20' ) start [2025-03-24 08:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750890', 'tblTempUsageDetail_20' ) end [2025-03-24 08:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 08:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 08:20:21] Production.INFO: ==4669== Releasing lock... [2025-03-24 08:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 08:20:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-24 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 05:21:05 [end_date_ymd] => 2025-03-24 08:21:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 05:21:05' and `end` < '2025-03-24 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-03-24 08:21:17] Production.INFO: count ==432 [2025-03-24 08:21:17] Production.ERROR: pbx CDR StartTime 2025-03-24 05:21:05 - End Time 2025-03-24 08:21:05 [2025-03-24 08:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750896', 'tblTempUsageDetail_20' ) start [2025-03-24 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750896', 'tblTempUsageDetail_20' ) end [2025-03-24 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750896', 'tblTempVendorCDR_20' ) start [2025-03-24 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750896', 'tblTempVendorCDR_20' ) end [2025-03-24 08:21:17] Production.INFO: ProcessCDR(1,14750896,1,1,2) [2025-03-24 08:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750896', 'tblTempUsageDetail_20' ) start [2025-03-24 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750896', 'tblTempUsageDetail_20' ) end [2025-03-24 08:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 08:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 08:21:21] Production.INFO: ==4765== Releasing lock... [2025-03-24 08:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 08:21:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-24 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 05:22:05 [end_date_ymd] => 2025-03-24 08:22:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 05:22:05' and `end` < '2025-03-24 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-03-24 08:22:17] Production.INFO: count ==449 [2025-03-24 08:22:17] Production.ERROR: pbx CDR StartTime 2025-03-24 05:22:05 - End Time 2025-03-24 08:22:05 [2025-03-24 08:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750901', 'tblTempUsageDetail_20' ) start [2025-03-24 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750901', 'tblTempUsageDetail_20' ) end [2025-03-24 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750901', 'tblTempVendorCDR_20' ) start [2025-03-24 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750901', 'tblTempVendorCDR_20' ) end [2025-03-24 08:22:17] Production.INFO: ProcessCDR(1,14750901,1,1,2) [2025-03-24 08:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750901', 'tblTempUsageDetail_20' ) start [2025-03-24 08:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750901', 'tblTempUsageDetail_20' ) end [2025-03-24 08:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 08:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 08:22:23] Production.INFO: ==4864== Releasing lock... [2025-03-24 08:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 08:22:23] Production.INFO: 32.25 MB #Memory Used# [2025-03-24 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 05:23:05 [end_date_ymd] => 2025-03-24 08:23:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 05:23:05' and `end` < '2025-03-24 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-03-24 08:23:17] Production.INFO: count ==458 [2025-03-24 08:23:17] Production.ERROR: pbx CDR StartTime 2025-03-24 05:23:05 - End Time 2025-03-24 08:23:05 [2025-03-24 08:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750906', 'tblTempUsageDetail_20' ) start [2025-03-24 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750906', 'tblTempUsageDetail_20' ) end [2025-03-24 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750906', 'tblTempVendorCDR_20' ) start [2025-03-24 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750906', 'tblTempVendorCDR_20' ) end [2025-03-24 08:23:17] Production.INFO: ProcessCDR(1,14750906,1,1,2) [2025-03-24 08:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750906', 'tblTempUsageDetail_20' ) start [2025-03-24 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750906', 'tblTempUsageDetail_20' ) end [2025-03-24 08:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 08:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 08:23:22] Production.INFO: ==4954== Releasing lock... [2025-03-24 08:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 08:23:22] Production.INFO: 32 MB #Memory Used# [2025-03-24 08:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 05:24:06 [end_date_ymd] => 2025-03-24 08:24:06 [RateCDR] => 1 ) [2025-03-24 08: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-03-24 05:24:06' and `end` < '2025-03-24 08: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-03-24 08:24:18] Production.INFO: count ==463 [2025-03-24 08:24:18] Production.ERROR: pbx CDR StartTime 2025-03-24 05:24:06 - End Time 2025-03-24 08:24:06 [2025-03-24 08:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750911', 'tblTempUsageDetail_20' ) start [2025-03-24 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750911', 'tblTempUsageDetail_20' ) end [2025-03-24 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750911', 'tblTempVendorCDR_20' ) start [2025-03-24 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750911', 'tblTempVendorCDR_20' ) end [2025-03-24 08:24:18] Production.INFO: ProcessCDR(1,14750911,1,1,2) [2025-03-24 08:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750911', 'tblTempUsageDetail_20' ) start [2025-03-24 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750911', 'tblTempUsageDetail_20' ) end [2025-03-24 08:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 08:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 08:24:22] Production.INFO: ==5047== Releasing lock... [2025-03-24 08:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 08:24:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-24 08:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 05:25:06 [end_date_ymd] => 2025-03-24 08:25:06 [RateCDR] => 1 ) [2025-03-24 08: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-03-24 05:25:06' and `end` < '2025-03-24 08: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-03-24 08:25:18] Production.INFO: count ==466 [2025-03-24 08:25:18] Production.ERROR: pbx CDR StartTime 2025-03-24 05:25:06 - End Time 2025-03-24 08:25:06 [2025-03-24 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750916', 'tblTempUsageDetail_20' ) start [2025-03-24 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750916', 'tblTempUsageDetail_20' ) end [2025-03-24 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750916', 'tblTempVendorCDR_20' ) start [2025-03-24 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750916', 'tblTempVendorCDR_20' ) end [2025-03-24 08:25:18] Production.INFO: ProcessCDR(1,14750916,1,1,2) [2025-03-24 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750916', 'tblTempUsageDetail_20' ) start [2025-03-24 08:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750916', 'tblTempUsageDetail_20' ) end [2025-03-24 08:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 08:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 08:25:22] Production.INFO: ==5138== Releasing lock... [2025-03-24 08:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 08:25:22] Production.INFO: 32 MB #Memory Used# [2025-03-24 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 05:26:05 [end_date_ymd] => 2025-03-24 08:26:05 [RateCDR] => 1 ) [2025-03-24 08:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 05:26:05' and `end` < '2025-03-24 08:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 08:26:17] Production.INFO: count ==469 [2025-03-24 08:26:18] Production.ERROR: pbx CDR StartTime 2025-03-24 05:26:05 - End Time 2025-03-24 08:26:05 [2025-03-24 08:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750921', 'tblTempUsageDetail_20' ) start [2025-03-24 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750921', 'tblTempUsageDetail_20' ) end [2025-03-24 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750921', 'tblTempVendorCDR_20' ) start [2025-03-24 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750921', 'tblTempVendorCDR_20' ) end [2025-03-24 08:26:18] Production.INFO: ProcessCDR(1,14750921,1,1,2) [2025-03-24 08:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750921', 'tblTempUsageDetail_20' ) start [2025-03-24 08:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750921', 'tblTempUsageDetail_20' ) end [2025-03-24 08:26:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 08:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 08:26:23] Production.INFO: ==5228== Releasing lock... [2025-03-24 08:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 08:26:23] Production.INFO: 32.25 MB #Memory Used# [2025-03-24 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 05:27:05 [end_date_ymd] => 2025-03-24 08:27:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 05:27:05' and `end` < '2025-03-24 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-03-24 08:27:18] Production.INFO: count ==486 [2025-03-24 08:27:18] Production.ERROR: pbx CDR StartTime 2025-03-24 05:27:05 - End Time 2025-03-24 08:27:05 [2025-03-24 08:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750926', 'tblTempUsageDetail_20' ) start [2025-03-24 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750926', 'tblTempUsageDetail_20' ) end [2025-03-24 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750926', 'tblTempVendorCDR_20' ) start [2025-03-24 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750926', 'tblTempVendorCDR_20' ) end [2025-03-24 08:27:18] Production.INFO: ProcessCDR(1,14750926,1,1,2) [2025-03-24 08:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750926', 'tblTempUsageDetail_20' ) start [2025-03-24 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750926', 'tblTempUsageDetail_20' ) end [2025-03-24 08:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 08:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 08:27:21] Production.INFO: ==5319== Releasing lock... [2025-03-24 08:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 08:27:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-24 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 05:28:05 [end_date_ymd] => 2025-03-24 08:28:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 05:28:05' and `end` < '2025-03-24 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-03-24 08:28:18] Production.INFO: count ==502 [2025-03-24 08:28:18] Production.ERROR: pbx CDR StartTime 2025-03-24 05:28:05 - End Time 2025-03-24 08:28:05 [2025-03-24 08:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750931', 'tblTempUsageDetail_20' ) start [2025-03-24 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750931', 'tblTempUsageDetail_20' ) end [2025-03-24 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750931', 'tblTempVendorCDR_20' ) start [2025-03-24 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750931', 'tblTempVendorCDR_20' ) end [2025-03-24 08:28:18] Production.INFO: ProcessCDR(1,14750931,1,1,2) [2025-03-24 08:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750931', 'tblTempUsageDetail_20' ) start [2025-03-24 08:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750931', 'tblTempUsageDetail_20' ) end [2025-03-24 08:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 08:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 08:28:23] Production.INFO: ==5414== Releasing lock... [2025-03-24 08:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 08:28:23] Production.INFO: 32.25 MB #Memory Used# [2025-03-24 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 05:29:05 [end_date_ymd] => 2025-03-24 08:29:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 05:29:05' and `end` < '2025-03-24 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-03-24 08:29:18] Production.INFO: count ==528 [2025-03-24 08:29:18] Production.ERROR: pbx CDR StartTime 2025-03-24 05:29:05 - End Time 2025-03-24 08:29:05 [2025-03-24 08:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750936', 'tblTempUsageDetail_20' ) start [2025-03-24 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750936', 'tblTempUsageDetail_20' ) end [2025-03-24 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750936', 'tblTempVendorCDR_20' ) start [2025-03-24 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750936', 'tblTempVendorCDR_20' ) end [2025-03-24 08:29:18] Production.INFO: ProcessCDR(1,14750936,1,1,2) [2025-03-24 08:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750936', 'tblTempUsageDetail_20' ) start [2025-03-24 08:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750936', 'tblTempUsageDetail_20' ) end [2025-03-24 08:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 08:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 08:29:21] Production.INFO: ==5532== Releasing lock... [2025-03-24 08:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 08:29:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-24 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 05:30:06 [end_date_ymd] => 2025-03-24 08:30:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 05:30:06' and `end` < '2025-03-24 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-03-24 08:30:19] Production.INFO: count ==557 [2025-03-24 08:30:19] Production.ERROR: pbx CDR StartTime 2025-03-24 05:30:06 - End Time 2025-03-24 08:30:06 [2025-03-24 08:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750942', 'tblTempUsageDetail_20' ) start [2025-03-24 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750942', 'tblTempUsageDetail_20' ) end [2025-03-24 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750942', 'tblTempVendorCDR_20' ) start [2025-03-24 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750942', 'tblTempVendorCDR_20' ) end [2025-03-24 08:30:19] Production.INFO: ProcessCDR(1,14750942,1,1,2) [2025-03-24 08:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750942', 'tblTempUsageDetail_20' ) start [2025-03-24 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750942', 'tblTempUsageDetail_20' ) end [2025-03-24 08:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 08:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 08:30:22] Production.INFO: ==5658== Releasing lock... [2025-03-24 08:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 08:30:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-24 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 05:31:05 [end_date_ymd] => 2025-03-24 08:31:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 05:31:05' and `end` < '2025-03-24 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-03-24 08:31:17] Production.INFO: count ==588 [2025-03-24 08:31:17] Production.ERROR: pbx CDR StartTime 2025-03-24 05:31:05 - End Time 2025-03-24 08:31:05 [2025-03-24 08:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750947', 'tblTempUsageDetail_20' ) start [2025-03-24 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750947', 'tblTempUsageDetail_20' ) end [2025-03-24 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750947', 'tblTempVendorCDR_20' ) start [2025-03-24 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750947', 'tblTempVendorCDR_20' ) end [2025-03-24 08:31:17] Production.INFO: ProcessCDR(1,14750947,1,1,2) [2025-03-24 08:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750947', 'tblTempUsageDetail_20' ) start [2025-03-24 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750947', 'tblTempUsageDetail_20' ) end [2025-03-24 08:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 08:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 08:31:21] Production.INFO: ==5752== Releasing lock... [2025-03-24 08:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 08:31:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-24 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 05:32:05 [end_date_ymd] => 2025-03-24 08:32:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 05:32:05' and `end` < '2025-03-24 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-03-24 08:32:17] Production.INFO: count ==588 [2025-03-24 08:32:17] Production.ERROR: pbx CDR StartTime 2025-03-24 05:32:05 - End Time 2025-03-24 08:32:05 [2025-03-24 08:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750952', 'tblTempUsageDetail_20' ) start [2025-03-24 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750952', 'tblTempUsageDetail_20' ) end [2025-03-24 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750952', 'tblTempVendorCDR_20' ) start [2025-03-24 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750952', 'tblTempVendorCDR_20' ) end [2025-03-24 08:32:17] Production.INFO: ProcessCDR(1,14750952,1,1,2) [2025-03-24 08:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750952', 'tblTempUsageDetail_20' ) start [2025-03-24 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750952', 'tblTempUsageDetail_20' ) end [2025-03-24 08:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 08:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 08:32:21] Production.INFO: ==5839== Releasing lock... [2025-03-24 08:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 08:32:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-24 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 05:33:05 [end_date_ymd] => 2025-03-24 08:33:05 [RateCDR] => 1 ) [2025-03-24 08:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 05:33:05' and `end` < '2025-03-24 08:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 08:33:17] Production.INFO: count ==593 [2025-03-24 08:33:17] Production.ERROR: pbx CDR StartTime 2025-03-24 05:33:05 - End Time 2025-03-24 08:33:05 [2025-03-24 08:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750957', 'tblTempUsageDetail_20' ) start [2025-03-24 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750957', 'tblTempUsageDetail_20' ) end [2025-03-24 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750957', 'tblTempVendorCDR_20' ) start [2025-03-24 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750957', 'tblTempVendorCDR_20' ) end [2025-03-24 08:33:18] Production.INFO: ProcessCDR(1,14750957,1,1,2) [2025-03-24 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750957', 'tblTempUsageDetail_20' ) start [2025-03-24 08:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750957', 'tblTempUsageDetail_20' ) end [2025-03-24 08:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 08:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 08:33:22] Production.INFO: ==5967== Releasing lock... [2025-03-24 08:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 08:33:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-24 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 05:34:05 [end_date_ymd] => 2025-03-24 08:34:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 05:34:05' and `end` < '2025-03-24 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-03-24 08:34:17] Production.INFO: count ==602 [2025-03-24 08:34:18] Production.ERROR: pbx CDR StartTime 2025-03-24 05:34:05 - End Time 2025-03-24 08:34:05 [2025-03-24 08:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750962', 'tblTempUsageDetail_20' ) start [2025-03-24 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750962', 'tblTempUsageDetail_20' ) end [2025-03-24 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750962', 'tblTempVendorCDR_20' ) start [2025-03-24 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750962', 'tblTempVendorCDR_20' ) end [2025-03-24 08:34:18] Production.INFO: ProcessCDR(1,14750962,1,1,2) [2025-03-24 08:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750962', 'tblTempUsageDetail_20' ) start [2025-03-24 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750962', 'tblTempUsageDetail_20' ) end [2025-03-24 08:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 08:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 08:34:21] Production.INFO: ==6058== Releasing lock... [2025-03-24 08:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 08:34:21] Production.INFO: 33 MB #Memory Used# [2025-03-24 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 05:35:05 [end_date_ymd] => 2025-03-24 08:35:05 [RateCDR] => 1 ) [2025-03-24 08:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 05:35:05' and `end` < '2025-03-24 08:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 08:35:17] Production.INFO: count ==605 [2025-03-24 08:35:18] Production.ERROR: pbx CDR StartTime 2025-03-24 05:35:05 - End Time 2025-03-24 08:35:05 [2025-03-24 08:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750967', 'tblTempUsageDetail_20' ) start [2025-03-24 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750967', 'tblTempUsageDetail_20' ) end [2025-03-24 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750967', 'tblTempVendorCDR_20' ) start [2025-03-24 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750967', 'tblTempVendorCDR_20' ) end [2025-03-24 08:35:18] Production.INFO: ProcessCDR(1,14750967,1,1,2) [2025-03-24 08:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750967', 'tblTempUsageDetail_20' ) start [2025-03-24 08:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750967', 'tblTempUsageDetail_20' ) end [2025-03-24 08:35:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 08:35:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 08:35:23] Production.INFO: ==6148== Releasing lock... [2025-03-24 08:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 08:35:23] Production.INFO: 33 MB #Memory Used# [2025-03-24 08:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 05:36:06 [end_date_ymd] => 2025-03-24 08:36:06 [RateCDR] => 1 ) [2025-03-24 08: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-03-24 05:36:06' and `end` < '2025-03-24 08: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-03-24 08:36:18] Production.INFO: count ==625 [2025-03-24 08:36:18] Production.ERROR: pbx CDR StartTime 2025-03-24 05:36:06 - End Time 2025-03-24 08:36:06 [2025-03-24 08:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750972', 'tblTempUsageDetail_20' ) start [2025-03-24 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750972', 'tblTempUsageDetail_20' ) end [2025-03-24 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750972', 'tblTempVendorCDR_20' ) start [2025-03-24 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750972', 'tblTempVendorCDR_20' ) end [2025-03-24 08:36:18] Production.INFO: ProcessCDR(1,14750972,1,1,2) [2025-03-24 08:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750972', 'tblTempUsageDetail_20' ) start [2025-03-24 08:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750972', 'tblTempUsageDetail_20' ) end [2025-03-24 08:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 08:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 08:36:23] Production.INFO: ==6237== Releasing lock... [2025-03-24 08:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 08:36:23] Production.INFO: 33 MB #Memory Used# [2025-03-24 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 05:37:05 [end_date_ymd] => 2025-03-24 08:37:05 [RateCDR] => 1 ) [2025-03-24 08:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 05:37:05' and `end` < '2025-03-24 08:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 08:37:17] Production.INFO: count ==649 [2025-03-24 08:37:17] Production.ERROR: pbx CDR StartTime 2025-03-24 05:37:05 - End Time 2025-03-24 08:37:05 [2025-03-24 08:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750977', 'tblTempUsageDetail_20' ) start [2025-03-24 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750977', 'tblTempUsageDetail_20' ) end [2025-03-24 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750977', 'tblTempVendorCDR_20' ) start [2025-03-24 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750977', 'tblTempVendorCDR_20' ) end [2025-03-24 08:37:17] Production.INFO: ProcessCDR(1,14750977,1,1,2) [2025-03-24 08:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750977', 'tblTempUsageDetail_20' ) start [2025-03-24 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750977', 'tblTempUsageDetail_20' ) end [2025-03-24 08:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 08:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 08:37:21] Production.INFO: ==6322== Releasing lock... [2025-03-24 08:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 08:37:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-24 08:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 05:38:06 [end_date_ymd] => 2025-03-24 08:38:06 [RateCDR] => 1 ) [2025-03-24 08: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-03-24 05:38:06' and `end` < '2025-03-24 08: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-03-24 08:38:18] Production.INFO: count ==649 [2025-03-24 08:38:18] Production.ERROR: pbx CDR StartTime 2025-03-24 05:38:06 - End Time 2025-03-24 08:38:06 [2025-03-24 08:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750982', 'tblTempUsageDetail_20' ) start [2025-03-24 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750982', 'tblTempUsageDetail_20' ) end [2025-03-24 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750982', 'tblTempVendorCDR_20' ) start [2025-03-24 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750982', 'tblTempVendorCDR_20' ) end [2025-03-24 08:38:18] Production.INFO: ProcessCDR(1,14750982,1,1,2) [2025-03-24 08:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750982', 'tblTempUsageDetail_20' ) start [2025-03-24 08:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750982', 'tblTempUsageDetail_20' ) end [2025-03-24 08:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 08:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 08:38:22] Production.INFO: ==6417== Releasing lock... [2025-03-24 08:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 08:38:22] Production.INFO: 33 MB #Memory Used# [2025-03-24 08:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 05:39:04 [end_date_ymd] => 2025-03-24 08:39:04 [RateCDR] => 1 ) [2025-03-24 08:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 05:39:04' and `end` < '2025-03-24 08:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 08:39:17] Production.INFO: count ==660 [2025-03-24 08:39:17] Production.ERROR: pbx CDR StartTime 2025-03-24 05:39:04 - End Time 2025-03-24 08:39:04 [2025-03-24 08:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750987', 'tblTempUsageDetail_20' ) start [2025-03-24 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750987', 'tblTempUsageDetail_20' ) end [2025-03-24 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750987', 'tblTempVendorCDR_20' ) start [2025-03-24 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750987', 'tblTempVendorCDR_20' ) end [2025-03-24 08:39:17] Production.INFO: ProcessCDR(1,14750987,1,1,2) [2025-03-24 08:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750987', 'tblTempUsageDetail_20' ) start [2025-03-24 08:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750987', 'tblTempUsageDetail_20' ) end [2025-03-24 08:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-24 08:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-24 08:39:20] Production.INFO: ==6504== Releasing lock... [2025-03-24 08:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 08:39:20] Production.INFO: 34.25 MB #Memory Used# [2025-03-24 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 05:40:06 [end_date_ymd] => 2025-03-24 08:40:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 05:40:06' and `end` < '2025-03-24 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-03-24 08:40:18] Production.INFO: count ==672 [2025-03-24 08:40:19] Production.ERROR: pbx CDR StartTime 2025-03-24 05:40:06 - End Time 2025-03-24 08:40:06 [2025-03-24 08:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750993', 'tblTempUsageDetail_20' ) start [2025-03-24 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750993', 'tblTempUsageDetail_20' ) end [2025-03-24 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750993', 'tblTempVendorCDR_20' ) start [2025-03-24 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750993', 'tblTempVendorCDR_20' ) end [2025-03-24 08:40:19] Production.INFO: ProcessCDR(1,14750993,1,1,2) [2025-03-24 08:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750993', 'tblTempUsageDetail_20' ) start [2025-03-24 08:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750993', 'tblTempUsageDetail_20' ) end [2025-03-24 08:40:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 08:40:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 08:40:24] Production.INFO: ==6600== Releasing lock... [2025-03-24 08:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 08:40:24] Production.INFO: 33.75 MB #Memory Used# [2025-03-24 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 05:41:05 [end_date_ymd] => 2025-03-24 08:41:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 05:41:05' and `end` < '2025-03-24 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-03-24 08:41:17] Production.INFO: count ==726 [2025-03-24 08:41:17] Production.ERROR: pbx CDR StartTime 2025-03-24 05:41:05 - End Time 2025-03-24 08:41:05 [2025-03-24 08:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750998', 'tblTempUsageDetail_20' ) start [2025-03-24 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14750998', 'tblTempUsageDetail_20' ) end [2025-03-24 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750998', 'tblTempVendorCDR_20' ) start [2025-03-24 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14750998', 'tblTempVendorCDR_20' ) end [2025-03-24 08:41:17] Production.INFO: ProcessCDR(1,14750998,1,1,2) [2025-03-24 08:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14750998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14750998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14750998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14750998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750998', 'tblTempUsageDetail_20' ) start [2025-03-24 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14750998', 'tblTempUsageDetail_20' ) end [2025-03-24 08:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 08:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 08:41:22] Production.INFO: ==6697== Releasing lock... [2025-03-24 08:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 08:41:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-24 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 05:42:05 [end_date_ymd] => 2025-03-24 08:42:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 05:42:05' and `end` < '2025-03-24 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-03-24 08:42:18] Production.INFO: count ==730 [2025-03-24 08:42:18] Production.ERROR: pbx CDR StartTime 2025-03-24 05:42:05 - End Time 2025-03-24 08:42:05 [2025-03-24 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751003', 'tblTempUsageDetail_20' ) start [2025-03-24 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751003', 'tblTempUsageDetail_20' ) end [2025-03-24 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751003', 'tblTempVendorCDR_20' ) start [2025-03-24 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751003', 'tblTempVendorCDR_20' ) end [2025-03-24 08:42:18] Production.INFO: ProcessCDR(1,14751003,1,1,2) [2025-03-24 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751003', 'tblTempUsageDetail_20' ) start [2025-03-24 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751003', 'tblTempUsageDetail_20' ) end [2025-03-24 08:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 08:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 08:42:21] Production.INFO: ==6787== Releasing lock... [2025-03-24 08:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 08:42:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-24 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 05:43:05 [end_date_ymd] => 2025-03-24 08:43:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 05:43:05' and `end` < '2025-03-24 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-03-24 08:43:18] Production.INFO: count ==747 [2025-03-24 08:43:18] Production.ERROR: pbx CDR StartTime 2025-03-24 05:43:05 - End Time 2025-03-24 08:43:05 [2025-03-24 08:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751008', 'tblTempUsageDetail_20' ) start [2025-03-24 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751008', 'tblTempUsageDetail_20' ) end [2025-03-24 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751008', 'tblTempVendorCDR_20' ) start [2025-03-24 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751008', 'tblTempVendorCDR_20' ) end [2025-03-24 08:43:18] Production.INFO: ProcessCDR(1,14751008,1,1,2) [2025-03-24 08:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751008', 'tblTempUsageDetail_20' ) start [2025-03-24 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751008', 'tblTempUsageDetail_20' ) end [2025-03-24 08:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 08:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 08:43:21] Production.INFO: ==6877== Releasing lock... [2025-03-24 08:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 08:43:21] Production.INFO: 34 MB #Memory Used# [2025-03-24 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 05:44:05 [end_date_ymd] => 2025-03-24 08:44:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 05:44:05' and `end` < '2025-03-24 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-03-24 08:44:17] Production.INFO: count ==779 [2025-03-24 08:44:17] Production.ERROR: pbx CDR StartTime 2025-03-24 05:44:05 - End Time 2025-03-24 08:44:05 [2025-03-24 08:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751013', 'tblTempUsageDetail_20' ) start [2025-03-24 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751013', 'tblTempUsageDetail_20' ) end [2025-03-24 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751013', 'tblTempVendorCDR_20' ) start [2025-03-24 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751013', 'tblTempVendorCDR_20' ) end [2025-03-24 08:44:17] Production.INFO: ProcessCDR(1,14751013,1,1,2) [2025-03-24 08:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751013', 'tblTempUsageDetail_20' ) start [2025-03-24 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751013', 'tblTempUsageDetail_20' ) end [2025-03-24 08:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 08:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 08:44:21] Production.INFO: ==6967== Releasing lock... [2025-03-24 08:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 08:44:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-24 08:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 05:45:06 [end_date_ymd] => 2025-03-24 08:45:06 [RateCDR] => 1 ) [2025-03-24 08: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-03-24 05:45:06' and `end` < '2025-03-24 08: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-03-24 08:45:18] Production.INFO: count ==781 [2025-03-24 08:45:18] Production.ERROR: pbx CDR StartTime 2025-03-24 05:45:06 - End Time 2025-03-24 08:45:06 [2025-03-24 08:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751018', 'tblTempUsageDetail_20' ) start [2025-03-24 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751018', 'tblTempUsageDetail_20' ) end [2025-03-24 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751018', 'tblTempVendorCDR_20' ) start [2025-03-24 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751018', 'tblTempVendorCDR_20' ) end [2025-03-24 08:45:18] Production.INFO: ProcessCDR(1,14751018,1,1,2) [2025-03-24 08:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751018', 'tblTempUsageDetail_20' ) start [2025-03-24 08:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751018', 'tblTempUsageDetail_20' ) end [2025-03-24 08:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 08:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 08:45:22] Production.INFO: ==7056== Releasing lock... [2025-03-24 08:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 08:45:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-24 08:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 05:46:06 [end_date_ymd] => 2025-03-24 08:46:06 [RateCDR] => 1 ) [2025-03-24 08: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-03-24 05:46:06' and `end` < '2025-03-24 08: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-03-24 08:46:18] Production.INFO: count ==800 [2025-03-24 08:46:18] Production.ERROR: pbx CDR StartTime 2025-03-24 05:46:06 - End Time 2025-03-24 08:46:06 [2025-03-24 08:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751023', 'tblTempUsageDetail_20' ) start [2025-03-24 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751023', 'tblTempUsageDetail_20' ) end [2025-03-24 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751023', 'tblTempVendorCDR_20' ) start [2025-03-24 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751023', 'tblTempVendorCDR_20' ) end [2025-03-24 08:46:18] Production.INFO: ProcessCDR(1,14751023,1,1,2) [2025-03-24 08:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751023', 'tblTempUsageDetail_20' ) start [2025-03-24 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751023', 'tblTempUsageDetail_20' ) end [2025-03-24 08:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 08:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 08:46:22] Production.INFO: ==7143== Releasing lock... [2025-03-24 08:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 08:46:22] Production.INFO: 34 MB #Memory Used# [2025-03-24 08:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 05:47:06 [end_date_ymd] => 2025-03-24 08:47:06 [RateCDR] => 1 ) [2025-03-24 08: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-03-24 05:47:06' and `end` < '2025-03-24 08: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-03-24 08:47:18] Production.INFO: count ==801 [2025-03-24 08:47:18] Production.ERROR: pbx CDR StartTime 2025-03-24 05:47:06 - End Time 2025-03-24 08:47:06 [2025-03-24 08:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751028', 'tblTempUsageDetail_20' ) start [2025-03-24 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751028', 'tblTempUsageDetail_20' ) end [2025-03-24 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751028', 'tblTempVendorCDR_20' ) start [2025-03-24 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751028', 'tblTempVendorCDR_20' ) end [2025-03-24 08:47:18] Production.INFO: ProcessCDR(1,14751028,1,1,2) [2025-03-24 08:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751028', 'tblTempUsageDetail_20' ) start [2025-03-24 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751028', 'tblTempUsageDetail_20' ) end [2025-03-24 08:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 08:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 08:47:22] Production.INFO: ==7230== Releasing lock... [2025-03-24 08:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 08:47:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-24 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 05:48:05 [end_date_ymd] => 2025-03-24 08:48:05 [RateCDR] => 1 ) [2025-03-24 08:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 05:48:05' and `end` < '2025-03-24 08:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 08:48:17] Production.INFO: count ==812 [2025-03-24 08:48:17] Production.ERROR: pbx CDR StartTime 2025-03-24 05:48:05 - End Time 2025-03-24 08:48:05 [2025-03-24 08:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751033', 'tblTempUsageDetail_20' ) start [2025-03-24 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751033', 'tblTempUsageDetail_20' ) end [2025-03-24 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751033', 'tblTempVendorCDR_20' ) start [2025-03-24 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751033', 'tblTempVendorCDR_20' ) end [2025-03-24 08:48:17] Production.INFO: ProcessCDR(1,14751033,1,1,2) [2025-03-24 08:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751033', 'tblTempUsageDetail_20' ) start [2025-03-24 08:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751033', 'tblTempUsageDetail_20' ) end [2025-03-24 08:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 08:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 08:48:23] Production.INFO: ==7319== Releasing lock... [2025-03-24 08:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 08:48:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-24 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 05:49:05 [end_date_ymd] => 2025-03-24 08:49:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 05:49:05' and `end` < '2025-03-24 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-03-24 08:49:18] Production.INFO: count ==834 [2025-03-24 08:49:18] Production.ERROR: pbx CDR StartTime 2025-03-24 05:49:05 - End Time 2025-03-24 08:49:05 [2025-03-24 08:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751038', 'tblTempUsageDetail_20' ) start [2025-03-24 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751038', 'tblTempUsageDetail_20' ) end [2025-03-24 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751038', 'tblTempVendorCDR_20' ) start [2025-03-24 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751038', 'tblTempVendorCDR_20' ) end [2025-03-24 08:49:18] Production.INFO: ProcessCDR(1,14751038,1,1,2) [2025-03-24 08:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751038', 'tblTempUsageDetail_20' ) start [2025-03-24 08:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751038', 'tblTempUsageDetail_20' ) end [2025-03-24 08:49:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 08:49:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 08:49:24] Production.INFO: ==7449== Releasing lock... [2025-03-24 08:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 08:49:24] Production.INFO: 34.25 MB #Memory Used# [2025-03-24 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 05:50:06 [end_date_ymd] => 2025-03-24 08:50:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 05:50:06' and `end` < '2025-03-24 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-03-24 08:50:18] Production.INFO: count ==854 [2025-03-24 08:50:19] Production.ERROR: pbx CDR StartTime 2025-03-24 05:50:06 - End Time 2025-03-24 08:50:06 [2025-03-24 08:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751044', 'tblTempUsageDetail_20' ) start [2025-03-24 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751044', 'tblTempUsageDetail_20' ) end [2025-03-24 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751044', 'tblTempVendorCDR_20' ) start [2025-03-24 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751044', 'tblTempVendorCDR_20' ) end [2025-03-24 08:50:19] Production.INFO: ProcessCDR(1,14751044,1,1,2) [2025-03-24 08:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751044', 'tblTempUsageDetail_20' ) start [2025-03-24 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751044', 'tblTempUsageDetail_20' ) end [2025-03-24 08:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 08:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 08:50:22] Production.INFO: ==7547== Releasing lock... [2025-03-24 08:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 08:50:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-24 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 05:51:05 [end_date_ymd] => 2025-03-24 08:51:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 05:51:05' and `end` < '2025-03-24 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-03-24 08:51:17] Production.INFO: count ==883 [2025-03-24 08:51:18] Production.ERROR: pbx CDR StartTime 2025-03-24 05:51:05 - End Time 2025-03-24 08:51:05 [2025-03-24 08:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751049', 'tblTempUsageDetail_20' ) start [2025-03-24 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751049', 'tblTempUsageDetail_20' ) end [2025-03-24 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751049', 'tblTempVendorCDR_20' ) start [2025-03-24 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751049', 'tblTempVendorCDR_20' ) end [2025-03-24 08:51:18] Production.INFO: ProcessCDR(1,14751049,1,1,2) [2025-03-24 08:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751049', 'tblTempUsageDetail_20' ) start [2025-03-24 08:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751049', 'tblTempUsageDetail_20' ) end [2025-03-24 08:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 08:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 08:51:22] Production.INFO: ==7635== Releasing lock... [2025-03-24 08:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 08:51:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-24 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 05:52:05 [end_date_ymd] => 2025-03-24 08:52:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 05:52:05' and `end` < '2025-03-24 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-03-24 08:52:17] Production.INFO: count ==891 [2025-03-24 08:52:18] Production.ERROR: pbx CDR StartTime 2025-03-24 05:52:05 - End Time 2025-03-24 08:52:05 [2025-03-24 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751054', 'tblTempUsageDetail_20' ) start [2025-03-24 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751054', 'tblTempUsageDetail_20' ) end [2025-03-24 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751054', 'tblTempVendorCDR_20' ) start [2025-03-24 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751054', 'tblTempVendorCDR_20' ) end [2025-03-24 08:52:18] Production.INFO: ProcessCDR(1,14751054,1,1,2) [2025-03-24 08:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751054', 'tblTempUsageDetail_20' ) start [2025-03-24 08:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751054', 'tblTempUsageDetail_20' ) end [2025-03-24 08:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 08:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 08:52:22] Production.INFO: ==7724== Releasing lock... [2025-03-24 08:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 08:52:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-24 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 05:53:05 [end_date_ymd] => 2025-03-24 08:53:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 05:53:05' and `end` < '2025-03-24 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-03-24 08:53:18] Production.INFO: count ==903 [2025-03-24 08:53:18] Production.ERROR: pbx CDR StartTime 2025-03-24 05:53:05 - End Time 2025-03-24 08:53:05 [2025-03-24 08:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751059', 'tblTempUsageDetail_20' ) start [2025-03-24 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751059', 'tblTempUsageDetail_20' ) end [2025-03-24 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751059', 'tblTempVendorCDR_20' ) start [2025-03-24 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751059', 'tblTempVendorCDR_20' ) end [2025-03-24 08:53:18] Production.INFO: ProcessCDR(1,14751059,1,1,2) [2025-03-24 08:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751059', 'tblTempUsageDetail_20' ) start [2025-03-24 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751059', 'tblTempUsageDetail_20' ) end [2025-03-24 08:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 08:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 08:53:22] Production.INFO: ==7812== Releasing lock... [2025-03-24 08:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 08:53:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-24 08:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 05:54:06 [end_date_ymd] => 2025-03-24 08:54:06 [RateCDR] => 1 ) [2025-03-24 08: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-03-24 05:54:06' and `end` < '2025-03-24 08: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-03-24 08:54:18] Production.INFO: count ==903 [2025-03-24 08:54:18] Production.ERROR: pbx CDR StartTime 2025-03-24 05:54:06 - End Time 2025-03-24 08:54:06 [2025-03-24 08:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751064', 'tblTempUsageDetail_20' ) start [2025-03-24 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751064', 'tblTempUsageDetail_20' ) end [2025-03-24 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751064', 'tblTempVendorCDR_20' ) start [2025-03-24 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751064', 'tblTempVendorCDR_20' ) end [2025-03-24 08:54:18] Production.INFO: ProcessCDR(1,14751064,1,1,2) [2025-03-24 08:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751064', 'tblTempUsageDetail_20' ) start [2025-03-24 08:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751064', 'tblTempUsageDetail_20' ) end [2025-03-24 08:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 08:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 08:54:22] Production.INFO: ==7901== Releasing lock... [2025-03-24 08:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 08:54:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-24 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 05:55:05 [end_date_ymd] => 2025-03-24 08:55:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 05:55:05' and `end` < '2025-03-24 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-03-24 08:55:18] Production.INFO: count ==904 [2025-03-24 08:55:18] Production.ERROR: pbx CDR StartTime 2025-03-24 05:55:05 - End Time 2025-03-24 08:55:05 [2025-03-24 08:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751069', 'tblTempUsageDetail_20' ) start [2025-03-24 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751069', 'tblTempUsageDetail_20' ) end [2025-03-24 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751069', 'tblTempVendorCDR_20' ) start [2025-03-24 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751069', 'tblTempVendorCDR_20' ) end [2025-03-24 08:55:18] Production.INFO: ProcessCDR(1,14751069,1,1,2) [2025-03-24 08:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751069', 'tblTempUsageDetail_20' ) start [2025-03-24 08:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751069', 'tblTempUsageDetail_20' ) end [2025-03-24 08:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 08:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 08:55:23] Production.INFO: ==7987== Releasing lock... [2025-03-24 08:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 08:55:23] Production.INFO: 34.75 MB #Memory Used# [2025-03-24 08:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 05:56:06 [end_date_ymd] => 2025-03-24 08:56:06 [RateCDR] => 1 ) [2025-03-24 08: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-03-24 05:56:06' and `end` < '2025-03-24 08: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-03-24 08:56:18] Production.INFO: count ==905 [2025-03-24 08:56:19] Production.ERROR: pbx CDR StartTime 2025-03-24 05:56:06 - End Time 2025-03-24 08:56:06 [2025-03-24 08:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751074', 'tblTempUsageDetail_20' ) start [2025-03-24 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751074', 'tblTempUsageDetail_20' ) end [2025-03-24 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751074', 'tblTempVendorCDR_20' ) start [2025-03-24 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751074', 'tblTempVendorCDR_20' ) end [2025-03-24 08:56:19] Production.INFO: ProcessCDR(1,14751074,1,1,2) [2025-03-24 08:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751074', 'tblTempUsageDetail_20' ) start [2025-03-24 08:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751074', 'tblTempUsageDetail_20' ) end [2025-03-24 08:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 08:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 08:56:22] Production.INFO: ==8079== Releasing lock... [2025-03-24 08:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 08:56:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-24 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 05:57:05 [end_date_ymd] => 2025-03-24 08:57:05 [RateCDR] => 1 ) [2025-03-24 08:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 05:57:05' and `end` < '2025-03-24 08:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 08:57:17] Production.INFO: count ==921 [2025-03-24 08:57:18] Production.ERROR: pbx CDR StartTime 2025-03-24 05:57:05 - End Time 2025-03-24 08:57:05 [2025-03-24 08:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751079', 'tblTempUsageDetail_20' ) start [2025-03-24 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751079', 'tblTempUsageDetail_20' ) end [2025-03-24 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751079', 'tblTempVendorCDR_20' ) start [2025-03-24 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751079', 'tblTempVendorCDR_20' ) end [2025-03-24 08:57:18] Production.INFO: ProcessCDR(1,14751079,1,1,2) [2025-03-24 08:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751079', 'tblTempUsageDetail_20' ) start [2025-03-24 08:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751079', 'tblTempUsageDetail_20' ) end [2025-03-24 08:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 08:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 08:57:21] Production.INFO: ==8168== Releasing lock... [2025-03-24 08:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 08:57:21] Production.INFO: 35.25 MB #Memory Used# [2025-03-24 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 05:58:05 [end_date_ymd] => 2025-03-24 08:58:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 05:58:05' and `end` < '2025-03-24 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-03-24 08:58:18] Production.INFO: count ==931 [2025-03-24 08:58:18] Production.ERROR: pbx CDR StartTime 2025-03-24 05:58:05 - End Time 2025-03-24 08:58:05 [2025-03-24 08:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751084', 'tblTempUsageDetail_20' ) start [2025-03-24 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751084', 'tblTempUsageDetail_20' ) end [2025-03-24 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751084', 'tblTempVendorCDR_20' ) start [2025-03-24 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751084', 'tblTempVendorCDR_20' ) end [2025-03-24 08:58:18] Production.INFO: ProcessCDR(1,14751084,1,1,2) [2025-03-24 08:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751084', 'tblTempUsageDetail_20' ) start [2025-03-24 08:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751084', 'tblTempUsageDetail_20' ) end [2025-03-24 08:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 08:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 08:58:23] Production.INFO: ==8257== Releasing lock... [2025-03-24 08:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 08:58:23] Production.INFO: 35.25 MB #Memory Used# [2025-03-24 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 05:59:05 [end_date_ymd] => 2025-03-24 08:59:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 05:59:05' and `end` < '2025-03-24 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-03-24 08:59:18] Production.INFO: count ==944 [2025-03-24 08:59:18] Production.ERROR: pbx CDR StartTime 2025-03-24 05:59:05 - End Time 2025-03-24 08:59:05 [2025-03-24 08:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751089', 'tblTempUsageDetail_20' ) start [2025-03-24 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751089', 'tblTempUsageDetail_20' ) end [2025-03-24 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751089', 'tblTempVendorCDR_20' ) start [2025-03-24 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751089', 'tblTempVendorCDR_20' ) end [2025-03-24 08:59:18] Production.INFO: ProcessCDR(1,14751089,1,1,2) [2025-03-24 08:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 08:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 08:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751089', 'tblTempUsageDetail_20' ) start [2025-03-24 08:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751089', 'tblTempUsageDetail_20' ) end [2025-03-24 08:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 08:59:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 08:59:23] Production.INFO: ==8351== Releasing lock... [2025-03-24 08:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 08:59:23] Production.INFO: 35.25 MB #Memory Used# [2025-03-24 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 06:00:06 [end_date_ymd] => 2025-03-24 09:00:06 [RateCDR] => 1 ) [2025-03-24 09:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 06:00:06' and `end` < '2025-03-24 09:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 09:00:19] Production.INFO: count ==960 [2025-03-24 09:00:19] Production.ERROR: pbx CDR StartTime 2025-03-24 06:00:06 - End Time 2025-03-24 09:00:06 [2025-03-24 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751095', 'tblTempUsageDetail_20' ) start [2025-03-24 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751095', 'tblTempUsageDetail_20' ) end [2025-03-24 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751095', 'tblTempVendorCDR_20' ) start [2025-03-24 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751095', 'tblTempVendorCDR_20' ) end [2025-03-24 09:00:19] Production.INFO: ProcessCDR(1,14751095,1,1,2) [2025-03-24 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751095', 'tblTempUsageDetail_20' ) start [2025-03-24 09:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751095', 'tblTempUsageDetail_20' ) end [2025-03-24 09:00:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 09:00:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 09:00:25] Production.INFO: ==8447== Releasing lock... [2025-03-24 09:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 09:00:25] Production.INFO: 35.25 MB #Memory Used# [2025-03-24 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 06:01:05 [end_date_ymd] => 2025-03-24 09:01:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 06:01:05' and `end` < '2025-03-24 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-03-24 09:01:18] Production.INFO: count ==991 [2025-03-24 09:01:18] Production.ERROR: pbx CDR StartTime 2025-03-24 06:01:05 - End Time 2025-03-24 09:01:05 [2025-03-24 09:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751100', 'tblTempUsageDetail_20' ) start [2025-03-24 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751100', 'tblTempUsageDetail_20' ) end [2025-03-24 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751100', 'tblTempVendorCDR_20' ) start [2025-03-24 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751100', 'tblTempVendorCDR_20' ) end [2025-03-24 09:01:18] Production.INFO: ProcessCDR(1,14751100,1,1,2) [2025-03-24 09:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751100', 'tblTempUsageDetail_20' ) start [2025-03-24 09:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751100', 'tblTempUsageDetail_20' ) end [2025-03-24 09:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 09:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 09:01:23] Production.INFO: ==8551== Releasing lock... [2025-03-24 09:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 09:01:23] Production.INFO: 35.5 MB #Memory Used# [2025-03-24 09:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 06:02:06 [end_date_ymd] => 2025-03-24 09:02:06 [RateCDR] => 1 ) [2025-03-24 09: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-03-24 06:02:06' and `end` < '2025-03-24 09: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-03-24 09:02:18] Production.INFO: count ==1002 [2025-03-24 09:02:18] Production.ERROR: pbx CDR StartTime 2025-03-24 06:02:06 - End Time 2025-03-24 09:02:06 [2025-03-24 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751105', 'tblTempUsageDetail_20' ) start [2025-03-24 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751105', 'tblTempUsageDetail_20' ) end [2025-03-24 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751105', 'tblTempVendorCDR_20' ) start [2025-03-24 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751105', 'tblTempVendorCDR_20' ) end [2025-03-24 09:02:18] Production.INFO: ProcessCDR(1,14751105,1,1,2) [2025-03-24 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751105', 'tblTempUsageDetail_20' ) start [2025-03-24 09:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751105', 'tblTempUsageDetail_20' ) end [2025-03-24 09:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 09:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 09:02:22] Production.INFO: ==8640== Releasing lock... [2025-03-24 09:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 09:02:22] Production.INFO: 35.75 MB #Memory Used# [2025-03-24 09:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 06:03:06 [end_date_ymd] => 2025-03-24 09:03:06 [RateCDR] => 1 ) [2025-03-24 09:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 06:03:06' and `end` < '2025-03-24 09:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 09:03:18] Production.INFO: count ==1013 [2025-03-24 09:03:18] Production.ERROR: pbx CDR StartTime 2025-03-24 06:03:06 - End Time 2025-03-24 09:03:06 [2025-03-24 09:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751110', 'tblTempUsageDetail_20' ) start [2025-03-24 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751110', 'tblTempUsageDetail_20' ) end [2025-03-24 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751110', 'tblTempVendorCDR_20' ) start [2025-03-24 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751110', 'tblTempVendorCDR_20' ) end [2025-03-24 09:03:18] Production.INFO: ProcessCDR(1,14751110,1,1,2) [2025-03-24 09:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751110', 'tblTempUsageDetail_20' ) start [2025-03-24 09:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751110', 'tblTempUsageDetail_20' ) end [2025-03-24 09:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 09:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 09:03:23] Production.INFO: ==8729== Releasing lock... [2025-03-24 09:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 09:03:23] Production.INFO: 36 MB #Memory Used# [2025-03-24 09:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 06:04:06 [end_date_ymd] => 2025-03-24 09:04:06 [RateCDR] => 1 ) [2025-03-24 09: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-03-24 06:04:06' and `end` < '2025-03-24 09: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-03-24 09:04:19] Production.INFO: count ==1024 [2025-03-24 09:04:19] Production.ERROR: pbx CDR StartTime 2025-03-24 06:04:06 - End Time 2025-03-24 09:04:06 [2025-03-24 09:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751115', 'tblTempUsageDetail_20' ) start [2025-03-24 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751115', 'tblTempUsageDetail_20' ) end [2025-03-24 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751115', 'tblTempVendorCDR_20' ) start [2025-03-24 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751115', 'tblTempVendorCDR_20' ) end [2025-03-24 09:04:19] Production.INFO: ProcessCDR(1,14751115,1,1,2) [2025-03-24 09:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751115', 'tblTempUsageDetail_20' ) start [2025-03-24 09:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751115', 'tblTempUsageDetail_20' ) end [2025-03-24 09:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 09:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 09:04:23] Production.INFO: ==8864== Releasing lock... [2025-03-24 09:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 09:04:23] Production.INFO: 35.75 MB #Memory Used# [2025-03-24 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 06:05:05 [end_date_ymd] => 2025-03-24 09:05:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 06:05:05' and `end` < '2025-03-24 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-03-24 09:05:17] Production.INFO: count ==1040 [2025-03-24 09:05:18] Production.ERROR: pbx CDR StartTime 2025-03-24 06:05:05 - End Time 2025-03-24 09:05:05 [2025-03-24 09:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751120', 'tblTempUsageDetail_20' ) start [2025-03-24 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751120', 'tblTempUsageDetail_20' ) end [2025-03-24 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751120', 'tblTempVendorCDR_20' ) start [2025-03-24 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751120', 'tblTempVendorCDR_20' ) end [2025-03-24 09:05:18] Production.INFO: ProcessCDR(1,14751120,1,1,2) [2025-03-24 09:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751120', 'tblTempUsageDetail_20' ) start [2025-03-24 09:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751120', 'tblTempUsageDetail_20' ) end [2025-03-24 09:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 09:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 09:05:23] Production.INFO: ==8954== Releasing lock... [2025-03-24 09:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 09:05:23] Production.INFO: 36 MB #Memory Used# [2025-03-24 09:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 06:06:06 [end_date_ymd] => 2025-03-24 09:06:06 [RateCDR] => 1 ) [2025-03-24 09: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-03-24 06:06:06' and `end` < '2025-03-24 09: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-03-24 09:06:19] Production.INFO: count ==1069 [2025-03-24 09:06:19] Production.ERROR: pbx CDR StartTime 2025-03-24 06:06:06 - End Time 2025-03-24 09:06:06 [2025-03-24 09:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751125', 'tblTempUsageDetail_20' ) start [2025-03-24 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751125', 'tblTempUsageDetail_20' ) end [2025-03-24 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751125', 'tblTempVendorCDR_20' ) start [2025-03-24 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751125', 'tblTempVendorCDR_20' ) end [2025-03-24 09:06:19] Production.INFO: ProcessCDR(1,14751125,1,1,2) [2025-03-24 09:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751125', 'tblTempUsageDetail_20' ) start [2025-03-24 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751125', 'tblTempUsageDetail_20' ) end [2025-03-24 09:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 09:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 09:06:23] Production.INFO: ==9044== Releasing lock... [2025-03-24 09:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 09:06:23] Production.INFO: 36.5 MB #Memory Used# [2025-03-24 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 06:07:05 [end_date_ymd] => 2025-03-24 09:07:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 06:07:05' and `end` < '2025-03-24 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-03-24 09:07:18] Production.INFO: count ==1083 [2025-03-24 09:07:18] Production.ERROR: pbx CDR StartTime 2025-03-24 06:07:05 - End Time 2025-03-24 09:07:05 [2025-03-24 09:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751130', 'tblTempUsageDetail_20' ) start [2025-03-24 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751130', 'tblTempUsageDetail_20' ) end [2025-03-24 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751130', 'tblTempVendorCDR_20' ) start [2025-03-24 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751130', 'tblTempVendorCDR_20' ) end [2025-03-24 09:07:18] Production.INFO: ProcessCDR(1,14751130,1,1,2) [2025-03-24 09:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751130', 'tblTempUsageDetail_20' ) start [2025-03-24 09:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751130', 'tblTempUsageDetail_20' ) end [2025-03-24 09:07:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 09:07:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 09:07:24] Production.INFO: ==9133== Releasing lock... [2025-03-24 09:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 09:07:24] Production.INFO: 36 MB #Memory Used# [2025-03-24 09:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 06:08:06 [end_date_ymd] => 2025-03-24 09:08:06 [RateCDR] => 1 ) [2025-03-24 09:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 06:08:06' and `end` < '2025-03-24 09:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 09:08:18] Production.INFO: count ==1095 [2025-03-24 09:08:19] Production.ERROR: pbx CDR StartTime 2025-03-24 06:08:06 - End Time 2025-03-24 09:08:06 [2025-03-24 09:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751135', 'tblTempUsageDetail_20' ) start [2025-03-24 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751135', 'tblTempUsageDetail_20' ) end [2025-03-24 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751135', 'tblTempVendorCDR_20' ) start [2025-03-24 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751135', 'tblTempVendorCDR_20' ) end [2025-03-24 09:08:19] Production.INFO: ProcessCDR(1,14751135,1,1,2) [2025-03-24 09:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751135', 'tblTempUsageDetail_20' ) start [2025-03-24 09:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751135', 'tblTempUsageDetail_20' ) end [2025-03-24 09:08:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 09:08:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 09:08:24] Production.INFO: ==9227== Releasing lock... [2025-03-24 09:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 09:08:24] Production.INFO: 36.25 MB #Memory Used# [2025-03-24 09:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 06:09:06 [end_date_ymd] => 2025-03-24 09:09:06 [RateCDR] => 1 ) [2025-03-24 09:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 06:09:06' and `end` < '2025-03-24 09:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 09:09:18] Production.INFO: count ==1114 [2025-03-24 09:09:18] Production.ERROR: pbx CDR StartTime 2025-03-24 06:09:06 - End Time 2025-03-24 09:09:06 [2025-03-24 09:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751140', 'tblTempUsageDetail_20' ) start [2025-03-24 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751140', 'tblTempUsageDetail_20' ) end [2025-03-24 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751140', 'tblTempVendorCDR_20' ) start [2025-03-24 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751140', 'tblTempVendorCDR_20' ) end [2025-03-24 09:09:19] Production.INFO: ProcessCDR(1,14751140,1,1,2) [2025-03-24 09:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751140', 'tblTempUsageDetail_20' ) start [2025-03-24 09:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751140', 'tblTempUsageDetail_20' ) end [2025-03-24 09:09:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 09:09:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 09:09:24] Production.INFO: ==9313== Releasing lock... [2025-03-24 09:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 09:09:24] Production.INFO: 36.75 MB #Memory Used# [2025-03-24 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 06:10:06 [end_date_ymd] => 2025-03-24 09:10:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 06:10:06' and `end` < '2025-03-24 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-03-24 09:10:18] Production.INFO: count ==1155 [2025-03-24 09:10:19] Production.ERROR: pbx CDR StartTime 2025-03-24 06:10:06 - End Time 2025-03-24 09:10:06 [2025-03-24 09:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751146', 'tblTempUsageDetail_20' ) start [2025-03-24 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751146', 'tblTempUsageDetail_20' ) end [2025-03-24 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751146', 'tblTempVendorCDR_20' ) start [2025-03-24 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751146', 'tblTempVendorCDR_20' ) end [2025-03-24 09:10:19] Production.INFO: ProcessCDR(1,14751146,1,1,2) [2025-03-24 09:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751146', 'tblTempUsageDetail_20' ) start [2025-03-24 09:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751146', 'tblTempUsageDetail_20' ) end [2025-03-24 09:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 09:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 09:10:24] Production.INFO: ==9407== Releasing lock... [2025-03-24 09:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 09:10:24] Production.INFO: 37.25 MB #Memory Used# [2025-03-24 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 06:11:05 [end_date_ymd] => 2025-03-24 09:11:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 06:11:05' and `end` < '2025-03-24 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-03-24 09:11:17] Production.INFO: count ==1239 [2025-03-24 09:11:18] Production.ERROR: pbx CDR StartTime 2025-03-24 06:11:05 - End Time 2025-03-24 09:11:05 [2025-03-24 09:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751151', 'tblTempUsageDetail_20' ) start [2025-03-24 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751151', 'tblTempUsageDetail_20' ) end [2025-03-24 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751151', 'tblTempVendorCDR_20' ) start [2025-03-24 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751151', 'tblTempVendorCDR_20' ) end [2025-03-24 09:11:18] Production.INFO: ProcessCDR(1,14751151,1,1,2) [2025-03-24 09:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751151', 'tblTempUsageDetail_20' ) start [2025-03-24 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751151', 'tblTempUsageDetail_20' ) end [2025-03-24 09:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 09:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 09:11:23] Production.INFO: ==9500== Releasing lock... [2025-03-24 09:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 09:11:23] Production.INFO: 37.25 MB #Memory Used# [2025-03-24 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 06:12:05 [end_date_ymd] => 2025-03-24 09:12:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 06:12:05' and `end` < '2025-03-24 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-03-24 09:12:18] Production.INFO: count ==1254 [2025-03-24 09:12:18] Production.ERROR: pbx CDR StartTime 2025-03-24 06:12:05 - End Time 2025-03-24 09:12:05 [2025-03-24 09:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751156', 'tblTempUsageDetail_20' ) start [2025-03-24 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751156', 'tblTempUsageDetail_20' ) end [2025-03-24 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751156', 'tblTempVendorCDR_20' ) start [2025-03-24 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751156', 'tblTempVendorCDR_20' ) end [2025-03-24 09:12:18] Production.INFO: ProcessCDR(1,14751156,1,1,2) [2025-03-24 09:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751156', 'tblTempUsageDetail_20' ) start [2025-03-24 09:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751156', 'tblTempUsageDetail_20' ) end [2025-03-24 09:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 09:12:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 09:12:24] Production.INFO: ==9586== Releasing lock... [2025-03-24 09:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 09:12:24] Production.INFO: 37.5 MB #Memory Used# [2025-03-24 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 06:13:05 [end_date_ymd] => 2025-03-24 09:13:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 06:13:05' and `end` < '2025-03-24 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-03-24 09:13:18] Production.INFO: count ==1290 [2025-03-24 09:13:18] Production.ERROR: pbx CDR StartTime 2025-03-24 06:13:05 - End Time 2025-03-24 09:13:05 [2025-03-24 09:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751161', 'tblTempUsageDetail_20' ) start [2025-03-24 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751161', 'tblTempUsageDetail_20' ) end [2025-03-24 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751161', 'tblTempVendorCDR_20' ) start [2025-03-24 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751161', 'tblTempVendorCDR_20' ) end [2025-03-24 09:13:18] Production.INFO: ProcessCDR(1,14751161,1,1,2) [2025-03-24 09:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751161', 'tblTempUsageDetail_20' ) start [2025-03-24 09:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751161', 'tblTempUsageDetail_20' ) end [2025-03-24 09:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 09:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 09:13:22] Production.INFO: ==9676== Releasing lock... [2025-03-24 09:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 09:13:22] Production.INFO: 38 MB #Memory Used# [2025-03-24 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 06:14:05 [end_date_ymd] => 2025-03-24 09:14:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 06:14:05' and `end` < '2025-03-24 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-03-24 09:14:18] Production.INFO: count ==1322 [2025-03-24 09:14:18] Production.ERROR: pbx CDR StartTime 2025-03-24 06:14:05 - End Time 2025-03-24 09:14:05 [2025-03-24 09:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751166', 'tblTempUsageDetail_20' ) start [2025-03-24 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751166', 'tblTempUsageDetail_20' ) end [2025-03-24 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751166', 'tblTempVendorCDR_20' ) start [2025-03-24 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751166', 'tblTempVendorCDR_20' ) end [2025-03-24 09:14:18] Production.INFO: ProcessCDR(1,14751166,1,1,2) [2025-03-24 09:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751166', 'tblTempUsageDetail_20' ) start [2025-03-24 09:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751166', 'tblTempUsageDetail_20' ) end [2025-03-24 09:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 09:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 09:14:22] Production.INFO: ==9767== Releasing lock... [2025-03-24 09:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 09:14:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-24 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 06:15:05 [end_date_ymd] => 2025-03-24 09:15:05 [RateCDR] => 1 ) [2025-03-24 09:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 06:15:05' and `end` < '2025-03-24 09:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 09:15:17] Production.INFO: count ==1396 [2025-03-24 09:15:18] Production.ERROR: pbx CDR StartTime 2025-03-24 06:15:05 - End Time 2025-03-24 09:15:05 [2025-03-24 09:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751171', 'tblTempUsageDetail_20' ) start [2025-03-24 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751171', 'tblTempUsageDetail_20' ) end [2025-03-24 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751171', 'tblTempVendorCDR_20' ) start [2025-03-24 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751171', 'tblTempVendorCDR_20' ) end [2025-03-24 09:15:18] Production.INFO: ProcessCDR(1,14751171,1,1,2) [2025-03-24 09:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751171', 'tblTempUsageDetail_20' ) start [2025-03-24 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751171', 'tblTempUsageDetail_20' ) end [2025-03-24 09:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 09:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 09:15:23] Production.INFO: ==9857== Releasing lock... [2025-03-24 09:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 09:15:23] Production.INFO: 38.5 MB #Memory Used# [2025-03-24 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 06:16:05 [end_date_ymd] => 2025-03-24 09:16:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 06:16:05' and `end` < '2025-03-24 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-03-24 09:16:18] Production.INFO: count ==1411 [2025-03-24 09:16:19] Production.ERROR: pbx CDR StartTime 2025-03-24 06:16:05 - End Time 2025-03-24 09:16:05 [2025-03-24 09:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751175', 'tblTempUsageDetail_20' ) start [2025-03-24 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751175', 'tblTempUsageDetail_20' ) end [2025-03-24 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751175', 'tblTempVendorCDR_20' ) start [2025-03-24 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751175', 'tblTempVendorCDR_20' ) end [2025-03-24 09:16:19] Production.INFO: ProcessCDR(1,14751175,1,1,2) [2025-03-24 09:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751175', 'tblTempUsageDetail_20' ) start [2025-03-24 09:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751175', 'tblTempUsageDetail_20' ) end [2025-03-24 09:16:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 09:16:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 09:16:24] Production.INFO: ==9944== Releasing lock... [2025-03-24 09:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 09:16:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-24 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 06:17:05 [end_date_ymd] => 2025-03-24 09:17:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 06:17:05' and `end` < '2025-03-24 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-03-24 09:17:17] Production.INFO: count ==1422 [2025-03-24 09:17:18] Production.ERROR: pbx CDR StartTime 2025-03-24 06:17:05 - End Time 2025-03-24 09:17:05 [2025-03-24 09:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751181', 'tblTempUsageDetail_20' ) start [2025-03-24 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751181', 'tblTempUsageDetail_20' ) end [2025-03-24 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751181', 'tblTempVendorCDR_20' ) start [2025-03-24 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751181', 'tblTempVendorCDR_20' ) end [2025-03-24 09:17:18] Production.INFO: ProcessCDR(1,14751181,1,1,2) [2025-03-24 09:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751181', 'tblTempUsageDetail_20' ) start [2025-03-24 09:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751181', 'tblTempUsageDetail_20' ) end [2025-03-24 09:17:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 09:17:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 09:17:23] Production.INFO: ==10035== Releasing lock... [2025-03-24 09:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 09:17:23] Production.INFO: 39 MB #Memory Used# [2025-03-24 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 06:18:05 [end_date_ymd] => 2025-03-24 09:18:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 06:18:05' and `end` < '2025-03-24 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-03-24 09:18:17] Production.INFO: count ==1439 [2025-03-24 09:18:18] Production.ERROR: pbx CDR StartTime 2025-03-24 06:18:05 - End Time 2025-03-24 09:18:05 [2025-03-24 09:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751186', 'tblTempUsageDetail_20' ) start [2025-03-24 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751186', 'tblTempUsageDetail_20' ) end [2025-03-24 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751186', 'tblTempVendorCDR_20' ) start [2025-03-24 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751186', 'tblTempVendorCDR_20' ) end [2025-03-24 09:18:18] Production.INFO: ProcessCDR(1,14751186,1,1,2) [2025-03-24 09:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751186', 'tblTempUsageDetail_20' ) start [2025-03-24 09:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751186', 'tblTempUsageDetail_20' ) end [2025-03-24 09:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 09:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 09:18:23] Production.INFO: ==10142== Releasing lock... [2025-03-24 09:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 09:18:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-24 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 06:19:05 [end_date_ymd] => 2025-03-24 09:19:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 06:19:05' and `end` < '2025-03-24 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-03-24 09:19:17] Production.INFO: count ==1450 [2025-03-24 09:19:18] Production.ERROR: pbx CDR StartTime 2025-03-24 06:19:05 - End Time 2025-03-24 09:19:05 [2025-03-24 09:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751191', 'tblTempUsageDetail_20' ) start [2025-03-24 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751191', 'tblTempUsageDetail_20' ) end [2025-03-24 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751191', 'tblTempVendorCDR_20' ) start [2025-03-24 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751191', 'tblTempVendorCDR_20' ) end [2025-03-24 09:19:18] Production.INFO: ProcessCDR(1,14751191,1,1,2) [2025-03-24 09:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751191', 'tblTempUsageDetail_20' ) start [2025-03-24 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751191', 'tblTempUsageDetail_20' ) end [2025-03-24 09:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 09:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 09:19:23] Production.INFO: ==10271== Releasing lock... [2025-03-24 09:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 09:19:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 09:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 06:20:07 [end_date_ymd] => 2025-03-24 09:20:07 [RateCDR] => 1 ) [2025-03-24 09:20: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-03-24 06:20:07' and `end` < '2025-03-24 09:20: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-03-24 09:20:19] Production.INFO: count ==1473 [2025-03-24 09:20:20] Production.ERROR: pbx CDR StartTime 2025-03-24 06:20:07 - End Time 2025-03-24 09:20:07 [2025-03-24 09:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751197', 'tblTempUsageDetail_20' ) start [2025-03-24 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751197', 'tblTempUsageDetail_20' ) end [2025-03-24 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751197', 'tblTempVendorCDR_20' ) start [2025-03-24 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751197', 'tblTempVendorCDR_20' ) end [2025-03-24 09:20:20] Production.INFO: ProcessCDR(1,14751197,1,1,2) [2025-03-24 09:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751197', 'tblTempUsageDetail_20' ) start [2025-03-24 09:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751197', 'tblTempUsageDetail_20' ) end [2025-03-24 09:20:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 09:20:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 09:20:26] Production.INFO: ==10358== Releasing lock... [2025-03-24 09:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 09:20:26] Production.INFO: 39 MB #Memory Used# [2025-03-24 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 06:21:05 [end_date_ymd] => 2025-03-24 09:21:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 06:21:05' and `end` < '2025-03-24 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-03-24 09:21:18] Production.INFO: count ==1577 [2025-03-24 09:21:18] Production.ERROR: pbx CDR StartTime 2025-03-24 06:21:05 - End Time 2025-03-24 09:21:05 [2025-03-24 09:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751202', 'tblTempUsageDetail_20' ) start [2025-03-24 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751202', 'tblTempUsageDetail_20' ) end [2025-03-24 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751202', 'tblTempVendorCDR_20' ) start [2025-03-24 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751202', 'tblTempVendorCDR_20' ) end [2025-03-24 09:21:19] Production.INFO: ProcessCDR(1,14751202,1,1,2) [2025-03-24 09:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751202', 'tblTempUsageDetail_20' ) start [2025-03-24 09:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751202', 'tblTempUsageDetail_20' ) end [2025-03-24 09:21:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 09:21:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 09:21:24] Production.INFO: ==10433== Releasing lock... [2025-03-24 09:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 09:21:24] Production.INFO: 40 MB #Memory Used# [2025-03-24 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 06:22:05 [end_date_ymd] => 2025-03-24 09:22:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 06:22:05' and `end` < '2025-03-24 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-03-24 09:22:18] Production.INFO: count ==1598 [2025-03-24 09:22:19] Production.ERROR: pbx CDR StartTime 2025-03-24 06:22:05 - End Time 2025-03-24 09:22:05 [2025-03-24 09:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751207', 'tblTempUsageDetail_20' ) start [2025-03-24 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751207', 'tblTempUsageDetail_20' ) end [2025-03-24 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751207', 'tblTempVendorCDR_20' ) start [2025-03-24 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751207', 'tblTempVendorCDR_20' ) end [2025-03-24 09:22:19] Production.INFO: ProcessCDR(1,14751207,1,1,2) [2025-03-24 09:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751207', 'tblTempUsageDetail_20' ) start [2025-03-24 09:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751207', 'tblTempUsageDetail_20' ) end [2025-03-24 09:22:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 09:22:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 09:22:24] Production.INFO: ==10515== Releasing lock... [2025-03-24 09:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 09:22:24] Production.INFO: 40 MB #Memory Used# [2025-03-24 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 06:23:05 [end_date_ymd] => 2025-03-24 09:23:05 [RateCDR] => 1 ) [2025-03-24 09:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 06:23:05' and `end` < '2025-03-24 09:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 09:23:18] Production.INFO: count ==1662 [2025-03-24 09:23:18] Production.ERROR: pbx CDR StartTime 2025-03-24 06:23:05 - End Time 2025-03-24 09:23:05 [2025-03-24 09:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751212', 'tblTempUsageDetail_20' ) start [2025-03-24 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751212', 'tblTempUsageDetail_20' ) end [2025-03-24 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751212', 'tblTempVendorCDR_20' ) start [2025-03-24 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751212', 'tblTempVendorCDR_20' ) end [2025-03-24 09:23:18] Production.INFO: ProcessCDR(1,14751212,1,1,2) [2025-03-24 09:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751212', 'tblTempUsageDetail_20' ) start [2025-03-24 09:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751212', 'tblTempUsageDetail_20' ) end [2025-03-24 09:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 09:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 09:23:23] Production.INFO: ==10608== Releasing lock... [2025-03-24 09:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 09:23:23] Production.INFO: 40.5 MB #Memory Used# [2025-03-24 09:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 06:24:06 [end_date_ymd] => 2025-03-24 09:24:06 [RateCDR] => 1 ) [2025-03-24 09: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-03-24 06:24:06' and `end` < '2025-03-24 09: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-03-24 09:24:18] Production.INFO: count ==1703 [2025-03-24 09:24:19] Production.ERROR: pbx CDR StartTime 2025-03-24 06:24:06 - End Time 2025-03-24 09:24:06 [2025-03-24 09:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751217', 'tblTempUsageDetail_20' ) start [2025-03-24 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751217', 'tblTempUsageDetail_20' ) end [2025-03-24 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751217', 'tblTempVendorCDR_20' ) start [2025-03-24 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751217', 'tblTempVendorCDR_20' ) end [2025-03-24 09:24:19] Production.INFO: ProcessCDR(1,14751217,1,1,2) [2025-03-24 09:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751217', 'tblTempUsageDetail_20' ) start [2025-03-24 09:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751217', 'tblTempUsageDetail_20' ) end [2025-03-24 09:24:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 09:24:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 09:24:24] Production.INFO: ==10699== Releasing lock... [2025-03-24 09:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 09:24:24] Production.INFO: 40.75 MB #Memory Used# [2025-03-24 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 06:25:05 [end_date_ymd] => 2025-03-24 09:25:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 06:25:05' and `end` < '2025-03-24 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-03-24 09:25:17] Production.INFO: count ==1724 [2025-03-24 09:25:18] Production.ERROR: pbx CDR StartTime 2025-03-24 06:25:05 - End Time 2025-03-24 09:25:05 [2025-03-24 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751222', 'tblTempUsageDetail_20' ) start [2025-03-24 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751222', 'tblTempUsageDetail_20' ) end [2025-03-24 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751222', 'tblTempVendorCDR_20' ) start [2025-03-24 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751222', 'tblTempVendorCDR_20' ) end [2025-03-24 09:25:18] Production.INFO: ProcessCDR(1,14751222,1,1,2) [2025-03-24 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751222', 'tblTempUsageDetail_20' ) start [2025-03-24 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751222', 'tblTempUsageDetail_20' ) end [2025-03-24 09:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 09:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 09:25:23] Production.INFO: ==10785== Releasing lock... [2025-03-24 09:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 09:25:23] Production.INFO: 41 MB #Memory Used# [2025-03-24 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 06:26:05 [end_date_ymd] => 2025-03-24 09:26:05 [RateCDR] => 1 ) [2025-03-24 09:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 06:26:05' and `end` < '2025-03-24 09:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 09:26:18] Production.INFO: count ==1761 [2025-03-24 09:26:19] Production.ERROR: pbx CDR StartTime 2025-03-24 06:26:05 - End Time 2025-03-24 09:26:05 [2025-03-24 09:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751227', 'tblTempUsageDetail_20' ) start [2025-03-24 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751227', 'tblTempUsageDetail_20' ) end [2025-03-24 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751227', 'tblTempVendorCDR_20' ) start [2025-03-24 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751227', 'tblTempVendorCDR_20' ) end [2025-03-24 09:26:19] Production.INFO: ProcessCDR(1,14751227,1,1,2) [2025-03-24 09:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751227', 'tblTempUsageDetail_20' ) start [2025-03-24 09:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751227', 'tblTempUsageDetail_20' ) end [2025-03-24 09:26:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 09:26:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 09:26:24] Production.INFO: ==10874== Releasing lock... [2025-03-24 09:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 09:26:24] Production.INFO: 41.25 MB #Memory Used# [2025-03-24 09:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 06:27:06 [end_date_ymd] => 2025-03-24 09:27:06 [RateCDR] => 1 ) [2025-03-24 09: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-03-24 06:27:06' and `end` < '2025-03-24 09: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-03-24 09:27:18] Production.INFO: count ==1773 [2025-03-24 09:27:19] Production.ERROR: pbx CDR StartTime 2025-03-24 06:27:06 - End Time 2025-03-24 09:27:06 [2025-03-24 09:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751232', 'tblTempUsageDetail_20' ) start [2025-03-24 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751232', 'tblTempUsageDetail_20' ) end [2025-03-24 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751232', 'tblTempVendorCDR_20' ) start [2025-03-24 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751232', 'tblTempVendorCDR_20' ) end [2025-03-24 09:27:19] Production.INFO: ProcessCDR(1,14751232,1,1,2) [2025-03-24 09:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751232', 'tblTempUsageDetail_20' ) start [2025-03-24 09:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751232', 'tblTempUsageDetail_20' ) end [2025-03-24 09:27:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 09:27:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 09:27:25] Production.INFO: ==10965== Releasing lock... [2025-03-24 09:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 09:27:25] Production.INFO: 41.5 MB #Memory Used# [2025-03-24 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 06:28:05 [end_date_ymd] => 2025-03-24 09:28:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 06:28:05' and `end` < '2025-03-24 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-03-24 09:28:18] Production.INFO: count ==1809 [2025-03-24 09:28:19] Production.ERROR: pbx CDR StartTime 2025-03-24 06:28:05 - End Time 2025-03-24 09:28:05 [2025-03-24 09:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751237', 'tblTempUsageDetail_20' ) start [2025-03-24 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751237', 'tblTempUsageDetail_20' ) end [2025-03-24 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751237', 'tblTempVendorCDR_20' ) start [2025-03-24 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751237', 'tblTempVendorCDR_20' ) end [2025-03-24 09:28:19] Production.INFO: ProcessCDR(1,14751237,1,1,2) [2025-03-24 09:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751237', 'tblTempUsageDetail_20' ) start [2025-03-24 09:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751237', 'tblTempUsageDetail_20' ) end [2025-03-24 09:28:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 09:28:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 09:28:24] Production.INFO: ==11054== Releasing lock... [2025-03-24 09:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 09:28:24] Production.INFO: 41.5 MB #Memory Used# [2025-03-24 09:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 06:29:06 [end_date_ymd] => 2025-03-24 09:29:06 [RateCDR] => 1 ) [2025-03-24 09: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-03-24 06:29:06' and `end` < '2025-03-24 09: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-03-24 09:29:19] Production.INFO: count ==1901 [2025-03-24 09:29:19] Production.ERROR: pbx CDR StartTime 2025-03-24 06:29:06 - End Time 2025-03-24 09:29:06 [2025-03-24 09:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751242', 'tblTempUsageDetail_20' ) start [2025-03-24 09:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751242', 'tblTempUsageDetail_20' ) end [2025-03-24 09:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751242', 'tblTempVendorCDR_20' ) start [2025-03-24 09:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751242', 'tblTempVendorCDR_20' ) end [2025-03-24 09:29:20] Production.INFO: ProcessCDR(1,14751242,1,1,2) [2025-03-24 09:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751242', 'tblTempUsageDetail_20' ) start [2025-03-24 09:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751242', 'tblTempUsageDetail_20' ) end [2025-03-24 09:29:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 09:29:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 09:29:25] Production.INFO: ==11147== Releasing lock... [2025-03-24 09:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 09:29:25] Production.INFO: 42.5 MB #Memory Used# [2025-03-24 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 06:30:06 [end_date_ymd] => 2025-03-24 09:30:06 [RateCDR] => 1 ) [2025-03-24 09:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 06:30:06' and `end` < '2025-03-24 09:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 09:30:19] Production.INFO: count ==1918 [2025-03-24 09:30:20] Production.ERROR: pbx CDR StartTime 2025-03-24 06:30:06 - End Time 2025-03-24 09:30:06 [2025-03-24 09:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751248', 'tblTempUsageDetail_20' ) start [2025-03-24 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751248', 'tblTempUsageDetail_20' ) end [2025-03-24 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751248', 'tblTempVendorCDR_20' ) start [2025-03-24 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751248', 'tblTempVendorCDR_20' ) end [2025-03-24 09:30:20] Production.INFO: ProcessCDR(1,14751248,1,1,2) [2025-03-24 09:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751248', 'tblTempUsageDetail_20' ) start [2025-03-24 09:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751248', 'tblTempUsageDetail_20' ) end [2025-03-24 09:30:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 09:30:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 09:30:25] Production.INFO: ==11241== Releasing lock... [2025-03-24 09:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 09:30:25] Production.INFO: 42.5 MB #Memory Used# [2025-03-24 09:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 06:31:06 [end_date_ymd] => 2025-03-24 09:31:06 [RateCDR] => 1 ) [2025-03-24 09: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-03-24 06:31:06' and `end` < '2025-03-24 09: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-03-24 09:31:18] Production.INFO: count ==1986 [2025-03-24 09:31:19] Production.ERROR: pbx CDR StartTime 2025-03-24 06:31:06 - End Time 2025-03-24 09:31:06 [2025-03-24 09:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751253', 'tblTempUsageDetail_20' ) start [2025-03-24 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751253', 'tblTempUsageDetail_20' ) end [2025-03-24 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751253', 'tblTempVendorCDR_20' ) start [2025-03-24 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751253', 'tblTempVendorCDR_20' ) end [2025-03-24 09:31:19] Production.INFO: ProcessCDR(1,14751253,1,1,2) [2025-03-24 09:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751253', 'tblTempUsageDetail_20' ) start [2025-03-24 09:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751253', 'tblTempUsageDetail_20' ) end [2025-03-24 09:31:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 09:31:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 09:31:25] Production.INFO: ==11339== Releasing lock... [2025-03-24 09:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 09:31:25] Production.INFO: 43 MB #Memory Used# [2025-03-24 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 06:32:05 [end_date_ymd] => 2025-03-24 09:32:05 [RateCDR] => 1 ) [2025-03-24 09:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 06:32:05' and `end` < '2025-03-24 09:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 09:32:17] Production.INFO: count ==1996 [2025-03-24 09:32:18] Production.ERROR: pbx CDR StartTime 2025-03-24 06:32:05 - End Time 2025-03-24 09:32:05 [2025-03-24 09:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751258', 'tblTempUsageDetail_20' ) start [2025-03-24 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751258', 'tblTempUsageDetail_20' ) end [2025-03-24 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751258', 'tblTempVendorCDR_20' ) start [2025-03-24 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751258', 'tblTempVendorCDR_20' ) end [2025-03-24 09:32:18] Production.INFO: ProcessCDR(1,14751258,1,1,2) [2025-03-24 09:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751258', 'tblTempUsageDetail_20' ) start [2025-03-24 09:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751258', 'tblTempUsageDetail_20' ) end [2025-03-24 09:32:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 09:32:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 09:32:24] Production.INFO: ==11429== Releasing lock... [2025-03-24 09:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 09:32:24] Production.INFO: 43 MB #Memory Used# [2025-03-24 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 06:33:05 [end_date_ymd] => 2025-03-24 09:33:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 06:33:05' and `end` < '2025-03-24 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-03-24 09:33:18] Production.INFO: count ==2010 [2025-03-24 09:33:19] Production.ERROR: pbx CDR StartTime 2025-03-24 06:33:05 - End Time 2025-03-24 09:33:05 [2025-03-24 09:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751263', 'tblTempUsageDetail_20' ) start [2025-03-24 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751263', 'tblTempUsageDetail_20' ) end [2025-03-24 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751263', 'tblTempVendorCDR_20' ) start [2025-03-24 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751263', 'tblTempVendorCDR_20' ) end [2025-03-24 09:33:19] Production.INFO: ProcessCDR(1,14751263,1,1,2) [2025-03-24 09:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751263', 'tblTempUsageDetail_20' ) start [2025-03-24 09:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751263', 'tblTempUsageDetail_20' ) end [2025-03-24 09:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 09:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 09:33:22] Production.INFO: ==11530== Releasing lock... [2025-03-24 09:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 09:33:22] Production.INFO: 43.25 MB #Memory Used# [2025-03-24 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 06:34:05 [end_date_ymd] => 2025-03-24 09:34:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 06:34:05' and `end` < '2025-03-24 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-03-24 09:34:18] Production.INFO: count ==2027 [2025-03-24 09:34:19] Production.ERROR: pbx CDR StartTime 2025-03-24 06:34:05 - End Time 2025-03-24 09:34:05 [2025-03-24 09:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751268', 'tblTempUsageDetail_20' ) start [2025-03-24 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751268', 'tblTempUsageDetail_20' ) end [2025-03-24 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751268', 'tblTempVendorCDR_20' ) start [2025-03-24 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751268', 'tblTempVendorCDR_20' ) end [2025-03-24 09:34:19] Production.INFO: ProcessCDR(1,14751268,1,1,2) [2025-03-24 09:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751268', 'tblTempUsageDetail_20' ) start [2025-03-24 09:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751268', 'tblTempUsageDetail_20' ) end [2025-03-24 09:34:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 09:34:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 09:34:25] Production.INFO: ==11621== Releasing lock... [2025-03-24 09:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 09:34:25] Production.INFO: 43.25 MB #Memory Used# [2025-03-24 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 06:35:05 [end_date_ymd] => 2025-03-24 09:35:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 06:35:05' and `end` < '2025-03-24 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-03-24 09:35:18] Production.INFO: count ==2034 [2025-03-24 09:35:19] Production.ERROR: pbx CDR StartTime 2025-03-24 06:35:05 - End Time 2025-03-24 09:35:05 [2025-03-24 09:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751273', 'tblTempUsageDetail_20' ) start [2025-03-24 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751273', 'tblTempUsageDetail_20' ) end [2025-03-24 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751273', 'tblTempVendorCDR_20' ) start [2025-03-24 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751273', 'tblTempVendorCDR_20' ) end [2025-03-24 09:35:19] Production.INFO: ProcessCDR(1,14751273,1,1,2) [2025-03-24 09:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751273', 'tblTempUsageDetail_20' ) start [2025-03-24 09:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751273', 'tblTempUsageDetail_20' ) end [2025-03-24 09:35:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 09:35:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 09:35:25] Production.INFO: ==11747== Releasing lock... [2025-03-24 09:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 09:35:25] Production.INFO: 43.25 MB #Memory Used# [2025-03-24 09:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 06:36:06 [end_date_ymd] => 2025-03-24 09:36:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 06:36:06' and `end` < '2025-03-24 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-03-24 09:36:19] Production.INFO: count ==2075 [2025-03-24 09:36:19] Production.ERROR: pbx CDR StartTime 2025-03-24 06:36:06 - End Time 2025-03-24 09:36:06 [2025-03-24 09:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751278', 'tblTempUsageDetail_20' ) start [2025-03-24 09:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751278', 'tblTempUsageDetail_20' ) end [2025-03-24 09:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751278', 'tblTempVendorCDR_20' ) start [2025-03-24 09:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751278', 'tblTempVendorCDR_20' ) end [2025-03-24 09:36:20] Production.INFO: ProcessCDR(1,14751278,1,1,2) [2025-03-24 09:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751278', 'tblTempUsageDetail_20' ) start [2025-03-24 09:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751278', 'tblTempUsageDetail_20' ) end [2025-03-24 09:36:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 09:36:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 09:36:25] Production.INFO: ==11836== Releasing lock... [2025-03-24 09:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 09:36:25] Production.INFO: 43.75 MB #Memory Used# [2025-03-24 09:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 06:37:06 [end_date_ymd] => 2025-03-24 09:37:06 [RateCDR] => 1 ) [2025-03-24 09: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-03-24 06:37:06' and `end` < '2025-03-24 09: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-03-24 09:37:18] Production.INFO: count ==2093 [2025-03-24 09:37:19] Production.ERROR: pbx CDR StartTime 2025-03-24 06:37:06 - End Time 2025-03-24 09:37:06 [2025-03-24 09:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751283', 'tblTempUsageDetail_20' ) start [2025-03-24 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751283', 'tblTempUsageDetail_20' ) end [2025-03-24 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751283', 'tblTempVendorCDR_20' ) start [2025-03-24 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751283', 'tblTempVendorCDR_20' ) end [2025-03-24 09:37:19] Production.INFO: ProcessCDR(1,14751283,1,1,2) [2025-03-24 09:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751283', 'tblTempUsageDetail_20' ) start [2025-03-24 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751283', 'tblTempUsageDetail_20' ) end [2025-03-24 09:37:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 09:37:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 09:37:24] Production.INFO: ==11925== Releasing lock... [2025-03-24 09:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 09:37:24] Production.INFO: 43.75 MB #Memory Used# [2025-03-24 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 06:38:05 [end_date_ymd] => 2025-03-24 09:38:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 06:38:05' and `end` < '2025-03-24 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-03-24 09:38:18] Production.INFO: count ==2130 [2025-03-24 09:38:19] Production.ERROR: pbx CDR StartTime 2025-03-24 06:38:05 - End Time 2025-03-24 09:38:05 [2025-03-24 09:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751288', 'tblTempUsageDetail_20' ) start [2025-03-24 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751288', 'tblTempUsageDetail_20' ) end [2025-03-24 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751288', 'tblTempVendorCDR_20' ) start [2025-03-24 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751288', 'tblTempVendorCDR_20' ) end [2025-03-24 09:38:19] Production.INFO: ProcessCDR(1,14751288,1,1,2) [2025-03-24 09:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751288', 'tblTempUsageDetail_20' ) start [2025-03-24 09:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751288', 'tblTempUsageDetail_20' ) end [2025-03-24 09:38:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 09:38:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 09:38:24] Production.INFO: ==12014== Releasing lock... [2025-03-24 09:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 09:38:24] Production.INFO: 44 MB #Memory Used# [2025-03-24 09:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 06:39:06 [end_date_ymd] => 2025-03-24 09:39:06 [RateCDR] => 1 ) [2025-03-24 09: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-03-24 06:39:06' and `end` < '2025-03-24 09: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-03-24 09:39:18] Production.INFO: count ==2176 [2025-03-24 09:39:19] Production.ERROR: pbx CDR StartTime 2025-03-24 06:39:06 - End Time 2025-03-24 09:39:06 [2025-03-24 09:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751293', 'tblTempUsageDetail_20' ) start [2025-03-24 09:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751293', 'tblTempUsageDetail_20' ) end [2025-03-24 09:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751293', 'tblTempVendorCDR_20' ) start [2025-03-24 09:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751293', 'tblTempVendorCDR_20' ) end [2025-03-24 09:39:20] Production.INFO: ProcessCDR(1,14751293,1,1,2) [2025-03-24 09:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751293', 'tblTempUsageDetail_20' ) start [2025-03-24 09:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751293', 'tblTempUsageDetail_20' ) end [2025-03-24 09:39:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 09:39:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 09:39:26] Production.INFO: ==12111== Releasing lock... [2025-03-24 09:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 09:39:26] Production.INFO: 44.25 MB #Memory Used# [2025-03-24 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 06:40:06 [end_date_ymd] => 2025-03-24 09:40:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 06:40:06' and `end` < '2025-03-24 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-03-24 09:40:19] Production.INFO: count ==2246 [2025-03-24 09:40:20] Production.ERROR: pbx CDR StartTime 2025-03-24 06:40:06 - End Time 2025-03-24 09:40:06 [2025-03-24 09:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751299', 'tblTempUsageDetail_20' ) start [2025-03-24 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751299', 'tblTempUsageDetail_20' ) end [2025-03-24 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751299', 'tblTempVendorCDR_20' ) start [2025-03-24 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751299', 'tblTempVendorCDR_20' ) end [2025-03-24 09:40:20] Production.INFO: ProcessCDR(1,14751299,1,1,2) [2025-03-24 09:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751299', 'tblTempUsageDetail_20' ) start [2025-03-24 09:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751299', 'tblTempUsageDetail_20' ) end [2025-03-24 09:40:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 09:40:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 09:40:25] Production.INFO: ==12201== Releasing lock... [2025-03-24 09:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 09:40:25] Production.INFO: 45 MB #Memory Used# [2025-03-24 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 06:41:05 [end_date_ymd] => 2025-03-24 09:41:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 06:41:05' and `end` < '2025-03-24 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-03-24 09:41:18] Production.INFO: count ==2381 [2025-03-24 09:41:19] Production.ERROR: pbx CDR StartTime 2025-03-24 06:41:05 - End Time 2025-03-24 09:41:05 [2025-03-24 09:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751304', 'tblTempUsageDetail_20' ) start [2025-03-24 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751304', 'tblTempUsageDetail_20' ) end [2025-03-24 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751304', 'tblTempVendorCDR_20' ) start [2025-03-24 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751304', 'tblTempVendorCDR_20' ) end [2025-03-24 09:41:19] Production.INFO: ProcessCDR(1,14751304,1,1,2) [2025-03-24 09:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751304', 'tblTempUsageDetail_20' ) start [2025-03-24 09:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751304', 'tblTempUsageDetail_20' ) end [2025-03-24 09:41:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 09:41:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 09:41:24] Production.INFO: ==12296== Releasing lock... [2025-03-24 09:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 09:41:24] Production.INFO: 46 MB #Memory Used# [2025-03-24 09:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 06:42:04 [end_date_ymd] => 2025-03-24 09:42:04 [RateCDR] => 1 ) [2025-03-24 09: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-03-24 06:42:04' and `end` < '2025-03-24 09: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-03-24 09:42:17] Production.INFO: count ==2436 [2025-03-24 09:42:18] Production.ERROR: pbx CDR StartTime 2025-03-24 06:42:04 - End Time 2025-03-24 09:42:04 [2025-03-24 09:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751309', 'tblTempUsageDetail_20' ) start [2025-03-24 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751309', 'tblTempUsageDetail_20' ) end [2025-03-24 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751309', 'tblTempVendorCDR_20' ) start [2025-03-24 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751309', 'tblTempVendorCDR_20' ) end [2025-03-24 09:42:18] Production.INFO: ProcessCDR(1,14751309,1,1,2) [2025-03-24 09:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751309', 'tblTempUsageDetail_20' ) start [2025-03-24 09:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751309', 'tblTempUsageDetail_20' ) end [2025-03-24 09:42:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 09:42:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 09:42:24] Production.INFO: ==12382== Releasing lock... [2025-03-24 09:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 09:42:24] Production.INFO: 46.25 MB #Memory Used# [2025-03-24 09:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 06:43:05 [end_date_ymd] => 2025-03-24 09:43:05 [RateCDR] => 1 ) [2025-03-24 09: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-03-24 06:43:05' and `end` < '2025-03-24 09:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 09:43:18] Production.INFO: count ==2438 [2025-03-24 09:43:19] Production.ERROR: pbx CDR StartTime 2025-03-24 06:43:05 - End Time 2025-03-24 09:43:05 [2025-03-24 09:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751314', 'tblTempUsageDetail_20' ) start [2025-03-24 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751314', 'tblTempUsageDetail_20' ) end [2025-03-24 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751314', 'tblTempVendorCDR_20' ) start [2025-03-24 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751314', 'tblTempVendorCDR_20' ) end [2025-03-24 09:43:19] Production.INFO: ProcessCDR(1,14751314,1,1,2) [2025-03-24 09:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751314', 'tblTempUsageDetail_20' ) start [2025-03-24 09:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751314', 'tblTempUsageDetail_20' ) end [2025-03-24 09:43:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 09:43:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 09:43:25] Production.INFO: ==12479== Releasing lock... [2025-03-24 09:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 09:43:25] Production.INFO: 46.5 MB #Memory Used# [2025-03-24 09:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 06:44:06 [end_date_ymd] => 2025-03-24 09:44:06 [RateCDR] => 1 ) [2025-03-24 09: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-03-24 06:44:06' and `end` < '2025-03-24 09: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-03-24 09:44:19] Production.INFO: count ==2458 [2025-03-24 09:44:20] Production.ERROR: pbx CDR StartTime 2025-03-24 06:44:06 - End Time 2025-03-24 09:44:06 [2025-03-24 09:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 09:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751319', 'tblTempUsageDetail_20' ) start [2025-03-24 09:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751319', 'tblTempUsageDetail_20' ) end [2025-03-24 09:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751319', 'tblTempVendorCDR_20' ) start [2025-03-24 09:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751319', 'tblTempVendorCDR_20' ) end [2025-03-24 09:44:20] Production.INFO: ProcessCDR(1,14751319,1,1,2) [2025-03-24 09:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751319', 'tblTempUsageDetail_20' ) start [2025-03-24 09:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751319', 'tblTempUsageDetail_20' ) end [2025-03-24 09:44:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 09:44:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 09:44:25] Production.INFO: ==12570== Releasing lock... [2025-03-24 09:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 09:44:25] Production.INFO: 46.75 MB #Memory Used# [2025-03-24 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 06:45:05 [end_date_ymd] => 2025-03-24 09:45:05 [RateCDR] => 1 ) [2025-03-24 09:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 06:45:05' and `end` < '2025-03-24 09:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 09:45:17] Production.INFO: count ==2476 [2025-03-24 09:45:19] Production.ERROR: pbx CDR StartTime 2025-03-24 06:45:05 - End Time 2025-03-24 09:45:05 [2025-03-24 09:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751324', 'tblTempUsageDetail_20' ) start [2025-03-24 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751324', 'tblTempUsageDetail_20' ) end [2025-03-24 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751324', 'tblTempVendorCDR_20' ) start [2025-03-24 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751324', 'tblTempVendorCDR_20' ) end [2025-03-24 09:45:19] Production.INFO: ProcessCDR(1,14751324,1,1,2) [2025-03-24 09:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751324', 'tblTempUsageDetail_20' ) start [2025-03-24 09:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751324', 'tblTempUsageDetail_20' ) end [2025-03-24 09:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 09:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 09:45:22] Production.INFO: ==12659== Releasing lock... [2025-03-24 09:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 09:45:22] Production.INFO: 47 MB #Memory Used# [2025-03-24 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 06:46:05 [end_date_ymd] => 2025-03-24 09:46:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 06:46:05' and `end` < '2025-03-24 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-03-24 09:46:18] Production.INFO: count ==2500 [2025-03-24 09:46:19] Production.ERROR: pbx CDR StartTime 2025-03-24 06:46:05 - End Time 2025-03-24 09:46:05 [2025-03-24 09:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751329', 'tblTempUsageDetail_20' ) start [2025-03-24 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751329', 'tblTempUsageDetail_20' ) end [2025-03-24 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751329', 'tblTempVendorCDR_20' ) start [2025-03-24 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751329', 'tblTempVendorCDR_20' ) end [2025-03-24 09:46:19] Production.INFO: ProcessCDR(1,14751329,1,1,2) [2025-03-24 09:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751329', 'tblTempUsageDetail_20' ) start [2025-03-24 09:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751329', 'tblTempUsageDetail_20' ) end [2025-03-24 09:46:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 09:46:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 09:46:25] Production.INFO: ==12748== Releasing lock... [2025-03-24 09:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 09:46:25] Production.INFO: 47 MB #Memory Used# [2025-03-24 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 06:47:05 [end_date_ymd] => 2025-03-24 09:47:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 06:47:05' and `end` < '2025-03-24 09:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 09:47:18] Production.INFO: count ==2511 [2025-03-24 09:47:19] Production.ERROR: pbx CDR StartTime 2025-03-24 06:47:05 - End Time 2025-03-24 09:47:05 [2025-03-24 09:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751334', 'tblTempUsageDetail_20' ) start [2025-03-24 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751334', 'tblTempUsageDetail_20' ) end [2025-03-24 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751334', 'tblTempVendorCDR_20' ) start [2025-03-24 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751334', 'tblTempVendorCDR_20' ) end [2025-03-24 09:47:19] Production.INFO: ProcessCDR(1,14751334,1,1,2) [2025-03-24 09:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751334', 'tblTempUsageDetail_20' ) start [2025-03-24 09:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751334', 'tblTempUsageDetail_20' ) end [2025-03-24 09:47:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 09:47:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 09:47:24] Production.INFO: ==12845== Releasing lock... [2025-03-24 09:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 09:47:24] Production.INFO: 47.25 MB #Memory Used# [2025-03-24 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 06:48:05 [end_date_ymd] => 2025-03-24 09:48:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 06:48:05' and `end` < '2025-03-24 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-03-24 09:48:19] Production.INFO: count ==2529 [2025-03-24 09:48:20] Production.ERROR: pbx CDR StartTime 2025-03-24 06:48:05 - End Time 2025-03-24 09:48:05 [2025-03-24 09:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 09:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751339', 'tblTempUsageDetail_20' ) start [2025-03-24 09:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751339', 'tblTempUsageDetail_20' ) end [2025-03-24 09:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751339', 'tblTempVendorCDR_20' ) start [2025-03-24 09:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751339', 'tblTempVendorCDR_20' ) end [2025-03-24 09:48:20] Production.INFO: ProcessCDR(1,14751339,1,1,2) [2025-03-24 09:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751339', 'tblTempUsageDetail_20' ) start [2025-03-24 09:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751339', 'tblTempUsageDetail_20' ) end [2025-03-24 09:48:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 09:48:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 09:48:25] Production.INFO: ==12934== Releasing lock... [2025-03-24 09:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 09:48:25] Production.INFO: 47 MB #Memory Used# [2025-03-24 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 06:49:05 [end_date_ymd] => 2025-03-24 09:49:05 [RateCDR] => 1 ) [2025-03-24 09:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 06:49:05' and `end` < '2025-03-24 09:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 09:49:18] Production.INFO: count ==2546 [2025-03-24 09:49:19] Production.ERROR: pbx CDR StartTime 2025-03-24 06:49:05 - End Time 2025-03-24 09:49:05 [2025-03-24 09:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751344', 'tblTempUsageDetail_20' ) start [2025-03-24 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751344', 'tblTempUsageDetail_20' ) end [2025-03-24 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751344', 'tblTempVendorCDR_20' ) start [2025-03-24 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751344', 'tblTempVendorCDR_20' ) end [2025-03-24 09:49:19] Production.INFO: ProcessCDR(1,14751344,1,1,2) [2025-03-24 09:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751344', 'tblTempUsageDetail_20' ) start [2025-03-24 09:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751344', 'tblTempUsageDetail_20' ) end [2025-03-24 09:49:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 09:49:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 09:49:25] Production.INFO: ==13028== Releasing lock... [2025-03-24 09:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 09:49:25] Production.INFO: 48 MB #Memory Used# [2025-03-24 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 06:50:06 [end_date_ymd] => 2025-03-24 09:50:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 06:50:06' and `end` < '2025-03-24 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-03-24 09:50:19] Production.INFO: count ==2571 [2025-03-24 09:50:20] Production.ERROR: pbx CDR StartTime 2025-03-24 06:50:06 - End Time 2025-03-24 09:50:06 [2025-03-24 09:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751350', 'tblTempUsageDetail_20' ) start [2025-03-24 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751350', 'tblTempUsageDetail_20' ) end [2025-03-24 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751350', 'tblTempVendorCDR_20' ) start [2025-03-24 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751350', 'tblTempVendorCDR_20' ) end [2025-03-24 09:50:20] Production.INFO: ProcessCDR(1,14751350,1,1,2) [2025-03-24 09:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751350', 'tblTempUsageDetail_20' ) start [2025-03-24 09:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751350', 'tblTempUsageDetail_20' ) end [2025-03-24 09:50:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 09:50:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 09:50:26] Production.INFO: ==13157== Releasing lock... [2025-03-24 09:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 09:50:26] Production.INFO: 47.5 MB #Memory Used# [2025-03-24 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 06:51:05 [end_date_ymd] => 2025-03-24 09:51:05 [RateCDR] => 1 ) [2025-03-24 09:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 06:51:05' and `end` < '2025-03-24 09:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 09:51:18] Production.INFO: count ==2646 [2025-03-24 09:51:19] Production.ERROR: pbx CDR StartTime 2025-03-24 06:51:05 - End Time 2025-03-24 09:51:05 [2025-03-24 09:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751355', 'tblTempUsageDetail_20' ) start [2025-03-24 09:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751355', 'tblTempUsageDetail_20' ) end [2025-03-24 09:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751355', 'tblTempVendorCDR_20' ) start [2025-03-24 09:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751355', 'tblTempVendorCDR_20' ) end [2025-03-24 09:51:20] Production.INFO: ProcessCDR(1,14751355,1,1,2) [2025-03-24 09:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751355', 'tblTempUsageDetail_20' ) start [2025-03-24 09:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751355', 'tblTempUsageDetail_20' ) end [2025-03-24 09:51:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 09:51:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 09:51:25] Production.INFO: ==13246== Releasing lock... [2025-03-24 09:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 09:51:25] Production.INFO: 48 MB #Memory Used# [2025-03-24 09:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 06:52:06 [end_date_ymd] => 2025-03-24 09:52:06 [RateCDR] => 1 ) [2025-03-24 09: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-03-24 06:52:06' and `end` < '2025-03-24 09: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-03-24 09:52:18] Production.INFO: count ==2679 [2025-03-24 09:52:20] Production.ERROR: pbx CDR StartTime 2025-03-24 06:52:06 - End Time 2025-03-24 09:52:06 [2025-03-24 09:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 09:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751360', 'tblTempUsageDetail_20' ) start [2025-03-24 09:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751360', 'tblTempUsageDetail_20' ) end [2025-03-24 09:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751360', 'tblTempVendorCDR_20' ) start [2025-03-24 09:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751360', 'tblTempVendorCDR_20' ) end [2025-03-24 09:52:20] Production.INFO: ProcessCDR(1,14751360,1,1,2) [2025-03-24 09:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751360', 'tblTempUsageDetail_20' ) start [2025-03-24 09:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751360', 'tblTempUsageDetail_20' ) end [2025-03-24 09:52:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 09:52:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 09:52:25] Production.INFO: ==13332== Releasing lock... [2025-03-24 09:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 09:52:25] Production.INFO: 49 MB #Memory Used# [2025-03-24 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 06:53:05 [end_date_ymd] => 2025-03-24 09:53:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 06:53:05' and `end` < '2025-03-24 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-03-24 09:53:18] Production.INFO: count ==2711 [2025-03-24 09:53:20] Production.ERROR: pbx CDR StartTime 2025-03-24 06:53:05 - End Time 2025-03-24 09:53:05 [2025-03-24 09:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 09:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751365', 'tblTempUsageDetail_20' ) start [2025-03-24 09:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751365', 'tblTempUsageDetail_20' ) end [2025-03-24 09:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751365', 'tblTempVendorCDR_20' ) start [2025-03-24 09:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751365', 'tblTempVendorCDR_20' ) end [2025-03-24 09:53:20] Production.INFO: ProcessCDR(1,14751365,1,1,2) [2025-03-24 09:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751365', 'tblTempUsageDetail_20' ) start [2025-03-24 09:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751365', 'tblTempUsageDetail_20' ) end [2025-03-24 09:53:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 09:53:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 09:53:25] Production.INFO: ==13424== Releasing lock... [2025-03-24 09:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 09:53:25] Production.INFO: 48.75 MB #Memory Used# [2025-03-24 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 06:54:05 [end_date_ymd] => 2025-03-24 09:54:05 [RateCDR] => 1 ) [2025-03-24 09:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 06:54:05' and `end` < '2025-03-24 09:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 09:54:19] Production.INFO: count ==2750 [2025-03-24 09:54:20] Production.ERROR: pbx CDR StartTime 2025-03-24 06:54:05 - End Time 2025-03-24 09:54:05 [2025-03-24 09:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 09:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751370', 'tblTempUsageDetail_20' ) start [2025-03-24 09:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751370', 'tblTempUsageDetail_20' ) end [2025-03-24 09:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751370', 'tblTempVendorCDR_20' ) start [2025-03-24 09:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751370', 'tblTempVendorCDR_20' ) end [2025-03-24 09:54:20] Production.INFO: ProcessCDR(1,14751370,1,1,2) [2025-03-24 09:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751370', 'tblTempUsageDetail_20' ) start [2025-03-24 09:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751370', 'tblTempUsageDetail_20' ) end [2025-03-24 09:54:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 09:54:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 09:54:25] Production.INFO: ==13511== Releasing lock... [2025-03-24 09:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 09:54:25] Production.INFO: 48.75 MB #Memory Used# [2025-03-24 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 06:55:05 [end_date_ymd] => 2025-03-24 09:55:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 06:55:05' and `end` < '2025-03-24 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-03-24 09:55:18] Production.INFO: count ==2783 [2025-03-24 09:55:19] Production.ERROR: pbx CDR StartTime 2025-03-24 06:55:05 - End Time 2025-03-24 09:55:05 [2025-03-24 09:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751375', 'tblTempUsageDetail_20' ) start [2025-03-24 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751375', 'tblTempUsageDetail_20' ) end [2025-03-24 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751375', 'tblTempVendorCDR_20' ) start [2025-03-24 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751375', 'tblTempVendorCDR_20' ) end [2025-03-24 09:55:19] Production.INFO: ProcessCDR(1,14751375,1,1,2) [2025-03-24 09:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751375', 'tblTempUsageDetail_20' ) start [2025-03-24 09:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751375', 'tblTempUsageDetail_20' ) end [2025-03-24 09:55:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 09:55:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 09:55:24] Production.INFO: ==13599== Releasing lock... [2025-03-24 09:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 09:55:24] Production.INFO: 48.5 MB #Memory Used# [2025-03-24 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 06:56:05 [end_date_ymd] => 2025-03-24 09:56:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 06:56:05' and `end` < '2025-03-24 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-03-24 09:56:18] Production.INFO: count ==2844 [2025-03-24 09:56:20] Production.ERROR: pbx CDR StartTime 2025-03-24 06:56:05 - End Time 2025-03-24 09:56:05 [2025-03-24 09:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751380', 'tblTempUsageDetail_20' ) start [2025-03-24 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751380', 'tblTempUsageDetail_20' ) end [2025-03-24 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751380', 'tblTempVendorCDR_20' ) start [2025-03-24 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751380', 'tblTempVendorCDR_20' ) end [2025-03-24 09:56:20] Production.INFO: ProcessCDR(1,14751380,1,1,2) [2025-03-24 09:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751380', 'tblTempUsageDetail_20' ) start [2025-03-24 09:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751380', 'tblTempUsageDetail_20' ) end [2025-03-24 09:56:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 09:56:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 09:56:25] Production.INFO: ==13690== Releasing lock... [2025-03-24 09:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 09:56:25] Production.INFO: 49.25 MB #Memory Used# [2025-03-24 09:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 06:57:06 [end_date_ymd] => 2025-03-24 09:57:06 [RateCDR] => 1 ) [2025-03-24 09: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-03-24 06:57:06' and `end` < '2025-03-24 09: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-03-24 09:57:19] Production.INFO: count ==2908 [2025-03-24 09:57:20] Production.ERROR: pbx CDR StartTime 2025-03-24 06:57:06 - End Time 2025-03-24 09:57:06 [2025-03-24 09:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751385', 'tblTempUsageDetail_20' ) start [2025-03-24 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751385', 'tblTempUsageDetail_20' ) end [2025-03-24 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751385', 'tblTempVendorCDR_20' ) start [2025-03-24 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751385', 'tblTempVendorCDR_20' ) end [2025-03-24 09:57:20] Production.INFO: ProcessCDR(1,14751385,1,1,2) [2025-03-24 09:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751385', 'tblTempUsageDetail_20' ) start [2025-03-24 09:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751385', 'tblTempUsageDetail_20' ) end [2025-03-24 09:57:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 09:57:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 09:57:24] Production.INFO: ==13780== Releasing lock... [2025-03-24 09:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 09:57:24] Production.INFO: 50 MB #Memory Used# [2025-03-24 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 06:58:05 [end_date_ymd] => 2025-03-24 09:58:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 06:58:05' and `end` < '2025-03-24 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-03-24 09:58:19] Production.INFO: count ==2926 [2025-03-24 09:58:20] Production.ERROR: pbx CDR StartTime 2025-03-24 06:58:05 - End Time 2025-03-24 09:58:05 [2025-03-24 09:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 09:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751390', 'tblTempUsageDetail_20' ) start [2025-03-24 09:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751390', 'tblTempUsageDetail_20' ) end [2025-03-24 09:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751390', 'tblTempVendorCDR_20' ) start [2025-03-24 09:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751390', 'tblTempVendorCDR_20' ) end [2025-03-24 09:58:20] Production.INFO: ProcessCDR(1,14751390,1,1,2) [2025-03-24 09:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751390', 'tblTempUsageDetail_20' ) start [2025-03-24 09:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751390', 'tblTempUsageDetail_20' ) end [2025-03-24 09:58:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 09:58:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 09:58:25] Production.INFO: ==13879== Releasing lock... [2025-03-24 09:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 09:58:25] Production.INFO: 49.5 MB #Memory Used# [2025-03-24 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 06:59:05 [end_date_ymd] => 2025-03-24 09:59:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 06:59:05' and `end` < '2025-03-24 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-03-24 09:59:18] Production.INFO: count ==2946 [2025-03-24 09:59:19] Production.ERROR: pbx CDR StartTime 2025-03-24 06:59:05 - End Time 2025-03-24 09:59:05 [2025-03-24 09:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751395', 'tblTempUsageDetail_20' ) start [2025-03-24 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751395', 'tblTempUsageDetail_20' ) end [2025-03-24 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751395', 'tblTempVendorCDR_20' ) start [2025-03-24 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751395', 'tblTempVendorCDR_20' ) end [2025-03-24 09:59:19] Production.INFO: ProcessCDR(1,14751395,1,1,2) [2025-03-24 09:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 09:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 09:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751395', 'tblTempUsageDetail_20' ) start [2025-03-24 09:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751395', 'tblTempUsageDetail_20' ) end [2025-03-24 09:59:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 09:59:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 09:59:25] Production.INFO: ==13972== Releasing lock... [2025-03-24 09:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 09:59:25] Production.INFO: 49.75 MB #Memory Used# [2025-03-24 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 07:00:06 [end_date_ymd] => 2025-03-24 10:00:06 [RateCDR] => 1 ) [2025-03-24 10:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 07:00:06' and `end` < '2025-03-24 10:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 10:00:19] Production.INFO: count ==2978 [2025-03-24 10:00:20] Production.ERROR: pbx CDR StartTime 2025-03-24 07:00:06 - End Time 2025-03-24 10:00:06 [2025-03-24 10:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751401', 'tblTempUsageDetail_20' ) start [2025-03-24 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751401', 'tblTempUsageDetail_20' ) end [2025-03-24 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751401', 'tblTempVendorCDR_20' ) start [2025-03-24 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751401', 'tblTempVendorCDR_20' ) end [2025-03-24 10:00:21] Production.INFO: ProcessCDR(1,14751401,1,1,2) [2025-03-24 10:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751401', 'tblTempUsageDetail_20' ) start [2025-03-24 10:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751401', 'tblTempUsageDetail_20' ) end [2025-03-24 10:00:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 10:00:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 10:00:26] Production.INFO: ==14062== Releasing lock... [2025-03-24 10:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 10:00:26] Production.INFO: 50 MB #Memory Used# [2025-03-24 10:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 07:01:06 [end_date_ymd] => 2025-03-24 10:01:06 [RateCDR] => 1 ) [2025-03-24 10:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 07:01:06' and `end` < '2025-03-24 10:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 10:01:19] Production.INFO: count ==3068 [2025-03-24 10:01:20] Production.ERROR: pbx CDR StartTime 2025-03-24 07:01:06 - End Time 2025-03-24 10:01:06 [2025-03-24 10:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751406', 'tblTempUsageDetail_20' ) start [2025-03-24 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751406', 'tblTempUsageDetail_20' ) end [2025-03-24 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751406', 'tblTempVendorCDR_20' ) start [2025-03-24 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751406', 'tblTempVendorCDR_20' ) end [2025-03-24 10:01:20] Production.INFO: ProcessCDR(1,14751406,1,1,2) [2025-03-24 10:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751406', 'tblTempUsageDetail_20' ) start [2025-03-24 10:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751406', 'tblTempUsageDetail_20' ) end [2025-03-24 10:01:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 10:01:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 10:01:26] Production.INFO: ==14169== Releasing lock... [2025-03-24 10:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 10:01:26] Production.INFO: 51.5 MB #Memory Used# [2025-03-24 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 07:02:05 [end_date_ymd] => 2025-03-24 10:02:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 07:02:05' and `end` < '2025-03-24 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-03-24 10:02:19] Production.INFO: count ==3089 [2025-03-24 10:02:20] Production.ERROR: pbx CDR StartTime 2025-03-24 07:02:05 - End Time 2025-03-24 10:02:05 [2025-03-24 10:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751411', 'tblTempUsageDetail_20' ) start [2025-03-24 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751411', 'tblTempUsageDetail_20' ) end [2025-03-24 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751411', 'tblTempVendorCDR_20' ) start [2025-03-24 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751411', 'tblTempVendorCDR_20' ) end [2025-03-24 10:02:20] Production.INFO: ProcessCDR(1,14751411,1,1,2) [2025-03-24 10:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751411', 'tblTempUsageDetail_20' ) start [2025-03-24 10:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751411', 'tblTempUsageDetail_20' ) end [2025-03-24 10:02:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 10:02:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 10:02:27] Production.INFO: ==14255== Releasing lock... [2025-03-24 10:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 10:02:27] Production.INFO: 51 MB #Memory Used# [2025-03-24 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 07:03:05 [end_date_ymd] => 2025-03-24 10:03:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 07:03:05' and `end` < '2025-03-24 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-03-24 10:03:18] Production.INFO: count ==3112 [2025-03-24 10:03:20] Production.ERROR: pbx CDR StartTime 2025-03-24 07:03:05 - End Time 2025-03-24 10:03:05 [2025-03-24 10:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751416', 'tblTempUsageDetail_20' ) start [2025-03-24 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751416', 'tblTempUsageDetail_20' ) end [2025-03-24 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751416', 'tblTempVendorCDR_20' ) start [2025-03-24 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751416', 'tblTempVendorCDR_20' ) end [2025-03-24 10:03:20] Production.INFO: ProcessCDR(1,14751416,1,1,2) [2025-03-24 10:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751416', 'tblTempUsageDetail_20' ) start [2025-03-24 10:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751416', 'tblTempUsageDetail_20' ) end [2025-03-24 10:03:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 10:03:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 10:03:25] Production.INFO: ==14350== Releasing lock... [2025-03-24 10:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 10:03:25] Production.INFO: 52 MB #Memory Used# [2025-03-24 10:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 07:04:05 [end_date_ymd] => 2025-03-24 10:04:05 [RateCDR] => 1 ) [2025-03-24 10:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 07:04:05' and `end` < '2025-03-24 10:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 10:04:18] Production.INFO: count ==3144 [2025-03-24 10:04:20] Production.ERROR: pbx CDR StartTime 2025-03-24 07:04:05 - End Time 2025-03-24 10:04:05 [2025-03-24 10:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751421', 'tblTempUsageDetail_20' ) start [2025-03-24 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751421', 'tblTempUsageDetail_20' ) end [2025-03-24 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751421', 'tblTempVendorCDR_20' ) start [2025-03-24 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751421', 'tblTempVendorCDR_20' ) end [2025-03-24 10:04:20] Production.INFO: ProcessCDR(1,14751421,1,1,2) [2025-03-24 10:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751421', 'tblTempUsageDetail_20' ) start [2025-03-24 10:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751421', 'tblTempUsageDetail_20' ) end [2025-03-24 10:04:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 10:04:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 10:04:26] Production.INFO: ==14442== Releasing lock... [2025-03-24 10:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 10:04:26] Production.INFO: 51.5 MB #Memory Used# [2025-03-24 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 07:05:05 [end_date_ymd] => 2025-03-24 10:05:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 07:05:05' and `end` < '2025-03-24 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-03-24 10:05:19] Production.INFO: count ==3167 [2025-03-24 10:05:20] Production.ERROR: pbx CDR StartTime 2025-03-24 07:05:05 - End Time 2025-03-24 10:05:05 [2025-03-24 10:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751426', 'tblTempUsageDetail_20' ) start [2025-03-24 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751426', 'tblTempUsageDetail_20' ) end [2025-03-24 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751426', 'tblTempVendorCDR_20' ) start [2025-03-24 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751426', 'tblTempVendorCDR_20' ) end [2025-03-24 10:05:20] Production.INFO: ProcessCDR(1,14751426,1,1,2) [2025-03-24 10:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751426', 'tblTempUsageDetail_20' ) start [2025-03-24 10:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751426', 'tblTempUsageDetail_20' ) end [2025-03-24 10:05:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 10:05:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 10:05:25] Production.INFO: ==14532== Releasing lock... [2025-03-24 10:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 10:05:25] Production.INFO: 52.25 MB #Memory Used# [2025-03-24 10:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 07:06:06 [end_date_ymd] => 2025-03-24 10:06:06 [RateCDR] => 1 ) [2025-03-24 10: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-03-24 07:06:06' and `end` < '2025-03-24 10: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-03-24 10:06:19] Production.INFO: count ==3182 [2025-03-24 10:06:21] Production.ERROR: pbx CDR StartTime 2025-03-24 07:06:06 - End Time 2025-03-24 10:06:06 [2025-03-24 10:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 10:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751431', 'tblTempUsageDetail_20' ) start [2025-03-24 10:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751431', 'tblTempUsageDetail_20' ) end [2025-03-24 10:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751431', 'tblTempVendorCDR_20' ) start [2025-03-24 10:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751431', 'tblTempVendorCDR_20' ) end [2025-03-24 10:06:21] Production.INFO: ProcessCDR(1,14751431,1,1,2) [2025-03-24 10:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751431', 'tblTempUsageDetail_20' ) start [2025-03-24 10:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751431', 'tblTempUsageDetail_20' ) end [2025-03-24 10:06:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 10:06:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 10:06:26] Production.INFO: ==14666== Releasing lock... [2025-03-24 10:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 10:06:26] Production.INFO: 51.75 MB #Memory Used# [2025-03-24 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 07:07:05 [end_date_ymd] => 2025-03-24 10:07:05 [RateCDR] => 1 ) [2025-03-24 10:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 07:07:05' and `end` < '2025-03-24 10:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 10:07:19] Production.INFO: count ==3215 [2025-03-24 10:07:20] Production.ERROR: pbx CDR StartTime 2025-03-24 07:07:05 - End Time 2025-03-24 10:07:05 [2025-03-24 10:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751436', 'tblTempUsageDetail_20' ) start [2025-03-24 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751436', 'tblTempUsageDetail_20' ) end [2025-03-24 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751436', 'tblTempVendorCDR_20' ) start [2025-03-24 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751436', 'tblTempVendorCDR_20' ) end [2025-03-24 10:07:20] Production.INFO: ProcessCDR(1,14751436,1,1,2) [2025-03-24 10:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751436', 'tblTempUsageDetail_20' ) start [2025-03-24 10:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751436', 'tblTempUsageDetail_20' ) end [2025-03-24 10:07:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 10:07:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 10:07:25] Production.INFO: ==14756== Releasing lock... [2025-03-24 10:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 10:07:25] Production.INFO: 52 MB #Memory Used# [2025-03-24 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 07:08:05 [end_date_ymd] => 2025-03-24 10:08:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 07:08:05' and `end` < '2025-03-24 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-03-24 10:08:18] Production.INFO: count ==3245 [2025-03-24 10:08:20] Production.ERROR: pbx CDR StartTime 2025-03-24 07:08:05 - End Time 2025-03-24 10:08:05 [2025-03-24 10:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751441', 'tblTempUsageDetail_20' ) start [2025-03-24 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751441', 'tblTempUsageDetail_20' ) end [2025-03-24 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751441', 'tblTempVendorCDR_20' ) start [2025-03-24 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751441', 'tblTempVendorCDR_20' ) end [2025-03-24 10:08:20] Production.INFO: ProcessCDR(1,14751441,1,1,2) [2025-03-24 10:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751441', 'tblTempUsageDetail_20' ) start [2025-03-24 10:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751441', 'tblTempUsageDetail_20' ) end [2025-03-24 10:08:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 10:08:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 10:08:26] Production.INFO: ==14860== Releasing lock... [2025-03-24 10:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 10:08:26] Production.INFO: 52.5 MB #Memory Used# [2025-03-24 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 07:09:05 [end_date_ymd] => 2025-03-24 10:09:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 07:09:05' and `end` < '2025-03-24 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-03-24 10:09:18] Production.INFO: count ==3294 [2025-03-24 10:09:20] Production.ERROR: pbx CDR StartTime 2025-03-24 07:09:05 - End Time 2025-03-24 10:09:05 [2025-03-24 10:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751446', 'tblTempUsageDetail_20' ) start [2025-03-24 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751446', 'tblTempUsageDetail_20' ) end [2025-03-24 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751446', 'tblTempVendorCDR_20' ) start [2025-03-24 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751446', 'tblTempVendorCDR_20' ) end [2025-03-24 10:09:20] Production.INFO: ProcessCDR(1,14751446,1,1,2) [2025-03-24 10:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751446', 'tblTempUsageDetail_20' ) start [2025-03-24 10:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751446', 'tblTempUsageDetail_20' ) end [2025-03-24 10:09:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 10:09:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 10:09:25] Production.INFO: ==14961== Releasing lock... [2025-03-24 10:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 10:09:25] Production.INFO: 52.5 MB #Memory Used# [2025-03-24 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 07:10:06 [end_date_ymd] => 2025-03-24 10:10:06 [RateCDR] => 1 ) [2025-03-24 10:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 07:10:06' and `end` < '2025-03-24 10:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 10:10:19] Production.INFO: count ==3323 [2025-03-24 10:10:21] Production.ERROR: pbx CDR StartTime 2025-03-24 07:10:06 - End Time 2025-03-24 10:10:06 [2025-03-24 10:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751452', 'tblTempUsageDetail_20' ) start [2025-03-24 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751452', 'tblTempUsageDetail_20' ) end [2025-03-24 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751452', 'tblTempVendorCDR_20' ) start [2025-03-24 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751452', 'tblTempVendorCDR_20' ) end [2025-03-24 10:10:21] Production.INFO: ProcessCDR(1,14751452,1,1,2) [2025-03-24 10:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751452', 'tblTempUsageDetail_20' ) start [2025-03-24 10:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751452', 'tblTempUsageDetail_20' ) end [2025-03-24 10:10:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 10:10:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 10:10:26] Production.INFO: ==15062== Releasing lock... [2025-03-24 10:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 10:10:26] Production.INFO: 53 MB #Memory Used# [2025-03-24 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 07:11:05 [end_date_ymd] => 2025-03-24 10:11:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 07:11:05' and `end` < '2025-03-24 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-03-24 10:11:18] Production.INFO: count ==3474 [2025-03-24 10:11:19] Production.ERROR: pbx CDR StartTime 2025-03-24 07:11:05 - End Time 2025-03-24 10:11:05 [2025-03-24 10:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751457', 'tblTempUsageDetail_20' ) start [2025-03-24 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751457', 'tblTempUsageDetail_20' ) end [2025-03-24 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751457', 'tblTempVendorCDR_20' ) start [2025-03-24 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751457', 'tblTempVendorCDR_20' ) end [2025-03-24 10:11:20] Production.INFO: ProcessCDR(1,14751457,1,1,2) [2025-03-24 10:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751457', 'tblTempUsageDetail_20' ) start [2025-03-24 10:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751457', 'tblTempUsageDetail_20' ) end [2025-03-24 10:11:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 10:11:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 10:11:25] Production.INFO: ==15165== Releasing lock... [2025-03-24 10:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 10:11:25] Production.INFO: 54.5 MB #Memory Used# [2025-03-24 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 07:12:05 [end_date_ymd] => 2025-03-24 10:12:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 07:12:05' and `end` < '2025-03-24 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-03-24 10:12:18] Production.INFO: count ==3481 [2025-03-24 10:12:20] Production.ERROR: pbx CDR StartTime 2025-03-24 07:12:05 - End Time 2025-03-24 10:12:05 [2025-03-24 10:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751462', 'tblTempUsageDetail_20' ) start [2025-03-24 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751462', 'tblTempUsageDetail_20' ) end [2025-03-24 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751462', 'tblTempVendorCDR_20' ) start [2025-03-24 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751462', 'tblTempVendorCDR_20' ) end [2025-03-24 10:12:20] Production.INFO: ProcessCDR(1,14751462,1,1,2) [2025-03-24 10:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751462', 'tblTempUsageDetail_20' ) start [2025-03-24 10:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751462', 'tblTempUsageDetail_20' ) end [2025-03-24 10:12:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 10:12:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 10:12:25] Production.INFO: ==15266== Releasing lock... [2025-03-24 10:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 10:12:25] Production.INFO: 54 MB #Memory Used# [2025-03-24 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 07:13:05 [end_date_ymd] => 2025-03-24 10:13:05 [RateCDR] => 1 ) [2025-03-24 10:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 07:13:05' and `end` < '2025-03-24 10:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 10:13:18] Production.INFO: count ==3498 [2025-03-24 10:13:20] Production.ERROR: pbx CDR StartTime 2025-03-24 07:13:05 - End Time 2025-03-24 10:13:05 [2025-03-24 10:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751467', 'tblTempUsageDetail_20' ) start [2025-03-24 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751467', 'tblTempUsageDetail_20' ) end [2025-03-24 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751467', 'tblTempVendorCDR_20' ) start [2025-03-24 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751467', 'tblTempVendorCDR_20' ) end [2025-03-24 10:13:20] Production.INFO: ProcessCDR(1,14751467,1,1,2) [2025-03-24 10:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751467', 'tblTempUsageDetail_20' ) start [2025-03-24 10:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751467', 'tblTempUsageDetail_20' ) end [2025-03-24 10:13:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 10:13:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 10:13:25] Production.INFO: ==15365== Releasing lock... [2025-03-24 10:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 10:13:25] Production.INFO: 54.25 MB #Memory Used# [2025-03-24 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 07:14:05 [end_date_ymd] => 2025-03-24 10:14:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 07:14:05' and `end` < '2025-03-24 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-03-24 10:14:18] Production.INFO: count ==3568 [2025-03-24 10:14:20] Production.ERROR: pbx CDR StartTime 2025-03-24 07:14:05 - End Time 2025-03-24 10:14:05 [2025-03-24 10:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751472', 'tblTempUsageDetail_20' ) start [2025-03-24 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751472', 'tblTempUsageDetail_20' ) end [2025-03-24 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751472', 'tblTempVendorCDR_20' ) start [2025-03-24 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751472', 'tblTempVendorCDR_20' ) end [2025-03-24 10:14:20] Production.INFO: ProcessCDR(1,14751472,1,1,2) [2025-03-24 10:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751472', 'tblTempUsageDetail_20' ) start [2025-03-24 10:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751472', 'tblTempUsageDetail_20' ) end [2025-03-24 10:14:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 10:14:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 10:14:26] Production.INFO: ==15468== Releasing lock... [2025-03-24 10:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 10:14:26] Production.INFO: 55 MB #Memory Used# [2025-03-24 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 07:15:05 [end_date_ymd] => 2025-03-24 10:15:05 [RateCDR] => 1 ) [2025-03-24 10:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 07:15:05' and `end` < '2025-03-24 10:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 10:15:18] Production.INFO: count ==3602 [2025-03-24 10:15:19] Production.ERROR: pbx CDR StartTime 2025-03-24 07:15:05 - End Time 2025-03-24 10:15:05 [2025-03-24 10:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751477', 'tblTempUsageDetail_20' ) start [2025-03-24 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751477', 'tblTempUsageDetail_20' ) end [2025-03-24 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751477', 'tblTempVendorCDR_20' ) start [2025-03-24 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751477', 'tblTempVendorCDR_20' ) end [2025-03-24 10:15:20] Production.INFO: ProcessCDR(1,14751477,1,1,2) [2025-03-24 10:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751477', 'tblTempUsageDetail_20' ) start [2025-03-24 10:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751477', 'tblTempUsageDetail_20' ) end [2025-03-24 10:15:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 10:15:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 10:15:25] Production.INFO: ==15566== Releasing lock... [2025-03-24 10:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 10:15:25] Production.INFO: 54.75 MB #Memory Used# [2025-03-24 10:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 07:16:06 [end_date_ymd] => 2025-03-24 10:16:06 [RateCDR] => 1 ) [2025-03-24 10: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-03-24 07:16:06' and `end` < '2025-03-24 10: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-03-24 10:16:19] Production.INFO: count ==3627 [2025-03-24 10:16:21] Production.ERROR: pbx CDR StartTime 2025-03-24 07:16:06 - End Time 2025-03-24 10:16:06 [2025-03-24 10:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 10:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751482', 'tblTempUsageDetail_20' ) start [2025-03-24 10:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751482', 'tblTempUsageDetail_20' ) end [2025-03-24 10:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751482', 'tblTempVendorCDR_20' ) start [2025-03-24 10:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751482', 'tblTempVendorCDR_20' ) end [2025-03-24 10:16:21] Production.INFO: ProcessCDR(1,14751482,1,1,2) [2025-03-24 10:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751482', 'tblTempUsageDetail_20' ) start [2025-03-24 10:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751482', 'tblTempUsageDetail_20' ) end [2025-03-24 10:16:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 10:16:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 10:16:27] Production.INFO: ==15666== Releasing lock... [2025-03-24 10:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 10:16:27] Production.INFO: 55 MB #Memory Used# [2025-03-24 10:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 07:17:05 [end_date_ymd] => 2025-03-24 10:17:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 07:17:05' and `end` < '2025-03-24 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-03-24 10:17:18] Production.INFO: count ==3638 [2025-03-24 10:17:19] Production.ERROR: pbx CDR StartTime 2025-03-24 07:17:05 - End Time 2025-03-24 10:17:05 [2025-03-24 10:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751487', 'tblTempUsageDetail_20' ) start [2025-03-24 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751487', 'tblTempUsageDetail_20' ) end [2025-03-24 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751487', 'tblTempVendorCDR_20' ) start [2025-03-24 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751487', 'tblTempVendorCDR_20' ) end [2025-03-24 10:17:20] Production.INFO: ProcessCDR(1,14751487,1,1,2) [2025-03-24 10:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751487', 'tblTempUsageDetail_20' ) start [2025-03-24 10:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751487', 'tblTempUsageDetail_20' ) end [2025-03-24 10:17:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 10:17:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 10:17:25] Production.INFO: ==15764== Releasing lock... [2025-03-24 10:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 10:17:25] Production.INFO: 55 MB #Memory Used# [2025-03-24 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 07:18:05 [end_date_ymd] => 2025-03-24 10:18:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 07:18:05' and `end` < '2025-03-24 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-03-24 10:18:19] Production.INFO: count ==3652 [2025-03-24 10:18:20] Production.ERROR: pbx CDR StartTime 2025-03-24 07:18:05 - End Time 2025-03-24 10:18:05 [2025-03-24 10:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751492', 'tblTempUsageDetail_20' ) start [2025-03-24 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751492', 'tblTempUsageDetail_20' ) end [2025-03-24 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751492', 'tblTempVendorCDR_20' ) start [2025-03-24 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751492', 'tblTempVendorCDR_20' ) end [2025-03-24 10:18:20] Production.INFO: ProcessCDR(1,14751492,1,1,2) [2025-03-24 10:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751492', 'tblTempUsageDetail_20' ) start [2025-03-24 10:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751492', 'tblTempUsageDetail_20' ) end [2025-03-24 10:18:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 10:18:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 10:18:25] Production.INFO: ==15866== Releasing lock... [2025-03-24 10:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 10:18:25] Production.INFO: 55.25 MB #Memory Used# [2025-03-24 10:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 07:19:06 [end_date_ymd] => 2025-03-24 10:19:06 [RateCDR] => 1 ) [2025-03-24 10:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 07:19:06' and `end` < '2025-03-24 10:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 10:19:19] Production.INFO: count ==3680 [2025-03-24 10:19:21] Production.ERROR: pbx CDR StartTime 2025-03-24 07:19:06 - End Time 2025-03-24 10:19:06 [2025-03-24 10:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 10:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751497', 'tblTempUsageDetail_20' ) start [2025-03-24 10:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751497', 'tblTempUsageDetail_20' ) end [2025-03-24 10:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751497', 'tblTempVendorCDR_20' ) start [2025-03-24 10:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751497', 'tblTempVendorCDR_20' ) end [2025-03-24 10:19:21] Production.INFO: ProcessCDR(1,14751497,1,1,2) [2025-03-24 10:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751497', 'tblTempUsageDetail_20' ) start [2025-03-24 10:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751497', 'tblTempUsageDetail_20' ) end [2025-03-24 10:19:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 10:19:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 10:19:26] Production.INFO: ==15967== Releasing lock... [2025-03-24 10:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 10:19:26] Production.INFO: 55.5 MB #Memory Used# [2025-03-24 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 07:20:06 [end_date_ymd] => 2025-03-24 10:20:06 [RateCDR] => 1 ) [2025-03-24 10:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 07:20:06' and `end` < '2025-03-24 10:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 10:20:19] Production.INFO: count ==3692 [2025-03-24 10:20:21] Production.ERROR: pbx CDR StartTime 2025-03-24 07:20:06 - End Time 2025-03-24 10:20:06 [2025-03-24 10:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751503', 'tblTempUsageDetail_20' ) start [2025-03-24 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751503', 'tblTempUsageDetail_20' ) end [2025-03-24 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751503', 'tblTempVendorCDR_20' ) start [2025-03-24 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751503', 'tblTempVendorCDR_20' ) end [2025-03-24 10:20:21] Production.INFO: ProcessCDR(1,14751503,1,1,2) [2025-03-24 10:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751503', 'tblTempUsageDetail_20' ) start [2025-03-24 10:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751503', 'tblTempUsageDetail_20' ) end [2025-03-24 10:20:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 10:20:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 10:20:26] Production.INFO: ==16068== Releasing lock... [2025-03-24 10:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 10:20:26] Production.INFO: 55.5 MB #Memory Used# [2025-03-24 10:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 07:21:06 [end_date_ymd] => 2025-03-24 10:21:06 [RateCDR] => 1 ) [2025-03-24 10: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-03-24 07:21:06' and `end` < '2025-03-24 10: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-03-24 10:21:19] Production.INFO: count ==3801 [2025-03-24 10:21:20] Production.ERROR: pbx CDR StartTime 2025-03-24 07:21:06 - End Time 2025-03-24 10:21:06 [2025-03-24 10:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751508', 'tblTempUsageDetail_20' ) start [2025-03-24 10:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751508', 'tblTempUsageDetail_20' ) end [2025-03-24 10:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751508', 'tblTempVendorCDR_20' ) start [2025-03-24 10:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751508', 'tblTempVendorCDR_20' ) end [2025-03-24 10:21:21] Production.INFO: ProcessCDR(1,14751508,1,1,2) [2025-03-24 10:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751508', 'tblTempUsageDetail_20' ) start [2025-03-24 10:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751508', 'tblTempUsageDetail_20' ) end [2025-03-24 10:21:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 10:21:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 10:21:26] Production.INFO: ==16207== Releasing lock... [2025-03-24 10:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 10:21:26] Production.INFO: 56.5 MB #Memory Used# [2025-03-24 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 07:22:05 [end_date_ymd] => 2025-03-24 10:22:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 07:22:05' and `end` < '2025-03-24 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-03-24 10:22:19] Production.INFO: count ==3815 [2025-03-24 10:22:20] Production.ERROR: pbx CDR StartTime 2025-03-24 07:22:05 - End Time 2025-03-24 10:22:05 [2025-03-24 10:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751513', 'tblTempUsageDetail_20' ) start [2025-03-24 10:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751513', 'tblTempUsageDetail_20' ) end [2025-03-24 10:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751513', 'tblTempVendorCDR_20' ) start [2025-03-24 10:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751513', 'tblTempVendorCDR_20' ) end [2025-03-24 10:22:21] Production.INFO: ProcessCDR(1,14751513,1,1,2) [2025-03-24 10:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751513', 'tblTempUsageDetail_20' ) start [2025-03-24 10:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751513', 'tblTempUsageDetail_20' ) end [2025-03-24 10:22:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 10:22:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 10:22:27] Production.INFO: ==16305== Releasing lock... [2025-03-24 10:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 10:22:27] Production.INFO: 56.5 MB #Memory Used# [2025-03-24 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 07:23:05 [end_date_ymd] => 2025-03-24 10:23:05 [RateCDR] => 1 ) [2025-03-24 10:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 07:23:05' and `end` < '2025-03-24 10:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 10:23:18] Production.INFO: count ==3807 [2025-03-24 10:23:20] Production.ERROR: pbx CDR StartTime 2025-03-24 07:23:05 - End Time 2025-03-24 10:23:05 [2025-03-24 10:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751518', 'tblTempUsageDetail_20' ) start [2025-03-24 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751518', 'tblTempUsageDetail_20' ) end [2025-03-24 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751518', 'tblTempVendorCDR_20' ) start [2025-03-24 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751518', 'tblTempVendorCDR_20' ) end [2025-03-24 10:23:20] Production.INFO: ProcessCDR(1,14751518,1,1,2) [2025-03-24 10:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751518', 'tblTempUsageDetail_20' ) start [2025-03-24 10:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751518', 'tblTempUsageDetail_20' ) end [2025-03-24 10:23:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 10:23:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 10:23:25] Production.INFO: ==16403== Releasing lock... [2025-03-24 10:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 10:23:25] Production.INFO: 56.5 MB #Memory Used# [2025-03-24 10:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 07:24:06 [end_date_ymd] => 2025-03-24 10:24:06 [RateCDR] => 1 ) [2025-03-24 10:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 07:24:06' and `end` < '2025-03-24 10:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 10:24:19] Production.INFO: count ==3822 [2025-03-24 10:24:21] Production.ERROR: pbx CDR StartTime 2025-03-24 07:24:06 - End Time 2025-03-24 10:24:06 [2025-03-24 10:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 10:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751523', 'tblTempUsageDetail_20' ) start [2025-03-24 10:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751523', 'tblTempUsageDetail_20' ) end [2025-03-24 10:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751523', 'tblTempVendorCDR_20' ) start [2025-03-24 10:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751523', 'tblTempVendorCDR_20' ) end [2025-03-24 10:24:21] Production.INFO: ProcessCDR(1,14751523,1,1,2) [2025-03-24 10:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751523', 'tblTempUsageDetail_20' ) start [2025-03-24 10:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751523', 'tblTempUsageDetail_20' ) end [2025-03-24 10:24:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 10:24:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 10:24:26] Production.INFO: ==16504== Releasing lock... [2025-03-24 10:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 10:24:26] Production.INFO: 56.75 MB #Memory Used# [2025-03-24 10:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 07:25:06 [end_date_ymd] => 2025-03-24 10:25:06 [RateCDR] => 1 ) [2025-03-24 10: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-03-24 07:25:06' and `end` < '2025-03-24 10: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-03-24 10:25:19] Production.INFO: count ==3841 [2025-03-24 10:25:20] Production.ERROR: pbx CDR StartTime 2025-03-24 07:25:06 - End Time 2025-03-24 10:25:06 [2025-03-24 10:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751528', 'tblTempUsageDetail_20' ) start [2025-03-24 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751528', 'tblTempUsageDetail_20' ) end [2025-03-24 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751528', 'tblTempVendorCDR_20' ) start [2025-03-24 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751528', 'tblTempVendorCDR_20' ) end [2025-03-24 10:25:20] Production.INFO: ProcessCDR(1,14751528,1,1,2) [2025-03-24 10:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751528', 'tblTempUsageDetail_20' ) start [2025-03-24 10:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751528', 'tblTempUsageDetail_20' ) end [2025-03-24 10:25:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 10:25:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 10:25:26] Production.INFO: ==16606== Releasing lock... [2025-03-24 10:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 10:25:26] Production.INFO: 56.75 MB #Memory Used# [2025-03-24 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 07:26:05 [end_date_ymd] => 2025-03-24 10:26:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 07:26:05' and `end` < '2025-03-24 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-03-24 10:26:18] Production.INFO: count ==3869 [2025-03-24 10:26:20] Production.ERROR: pbx CDR StartTime 2025-03-24 07:26:05 - End Time 2025-03-24 10:26:05 [2025-03-24 10:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751533', 'tblTempUsageDetail_20' ) start [2025-03-24 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751533', 'tblTempUsageDetail_20' ) end [2025-03-24 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751533', 'tblTempVendorCDR_20' ) start [2025-03-24 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751533', 'tblTempVendorCDR_20' ) end [2025-03-24 10:26:20] Production.INFO: ProcessCDR(1,14751533,1,1,2) [2025-03-24 10:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751533', 'tblTempUsageDetail_20' ) start [2025-03-24 10:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751533', 'tblTempUsageDetail_20' ) end [2025-03-24 10:26:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 10:26:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 10:26:25] Production.INFO: ==16700== Releasing lock... [2025-03-24 10:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 10:26:25] Production.INFO: 56.75 MB #Memory Used# [2025-03-24 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 07:27:05 [end_date_ymd] => 2025-03-24 10:27:05 [RateCDR] => 1 ) [2025-03-24 10:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 07:27:05' and `end` < '2025-03-24 10:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 10:27:18] Production.INFO: count ==3901 [2025-03-24 10:27:20] Production.ERROR: pbx CDR StartTime 2025-03-24 07:27:05 - End Time 2025-03-24 10:27:05 [2025-03-24 10:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751538', 'tblTempUsageDetail_20' ) start [2025-03-24 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751538', 'tblTempUsageDetail_20' ) end [2025-03-24 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751538', 'tblTempVendorCDR_20' ) start [2025-03-24 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751538', 'tblTempVendorCDR_20' ) end [2025-03-24 10:27:20] Production.INFO: ProcessCDR(1,14751538,1,1,2) [2025-03-24 10:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751538', 'tblTempUsageDetail_20' ) start [2025-03-24 10:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751538', 'tblTempUsageDetail_20' ) end [2025-03-24 10:27:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 10:27:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 10:27:26] Production.INFO: ==16803== Releasing lock... [2025-03-24 10:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 10:27:26] Production.INFO: 57.25 MB #Memory Used# [2025-03-24 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 07:28:05 [end_date_ymd] => 2025-03-24 10:28:05 [RateCDR] => 1 ) [2025-03-24 10:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 07:28:05' and `end` < '2025-03-24 10:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 10:28:18] Production.INFO: count ==3967 [2025-03-24 10:28:20] Production.ERROR: pbx CDR StartTime 2025-03-24 07:28:05 - End Time 2025-03-24 10:28:05 [2025-03-24 10:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751543', 'tblTempUsageDetail_20' ) start [2025-03-24 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751543', 'tblTempUsageDetail_20' ) end [2025-03-24 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751543', 'tblTempVendorCDR_20' ) start [2025-03-24 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751543', 'tblTempVendorCDR_20' ) end [2025-03-24 10:28:20] Production.INFO: ProcessCDR(1,14751543,1,1,2) [2025-03-24 10:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751543', 'tblTempUsageDetail_20' ) start [2025-03-24 10:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751543', 'tblTempUsageDetail_20' ) end [2025-03-24 10:28:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 10:28:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 10:28:25] Production.INFO: ==16909== Releasing lock... [2025-03-24 10:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 10:28:25] Production.INFO: 57.5 MB #Memory Used# [2025-03-24 10:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 07:29:06 [end_date_ymd] => 2025-03-24 10:29:06 [RateCDR] => 1 ) [2025-03-24 10: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-03-24 07:29:06' and `end` < '2025-03-24 10: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-03-24 10:29:19] Production.INFO: count ==3991 [2025-03-24 10:29:21] Production.ERROR: pbx CDR StartTime 2025-03-24 07:29:06 - End Time 2025-03-24 10:29:06 [2025-03-24 10:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 10:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751548', 'tblTempUsageDetail_20' ) start [2025-03-24 10:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751548', 'tblTempUsageDetail_20' ) end [2025-03-24 10:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751548', 'tblTempVendorCDR_20' ) start [2025-03-24 10:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751548', 'tblTempVendorCDR_20' ) end [2025-03-24 10:29:21] Production.INFO: ProcessCDR(1,14751548,1,1,2) [2025-03-24 10:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751548', 'tblTempUsageDetail_20' ) start [2025-03-24 10:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751548', 'tblTempUsageDetail_20' ) end [2025-03-24 10:29:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 10:29:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 10:29:26] Production.INFO: ==17012== Releasing lock... [2025-03-24 10:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 10:29:26] Production.INFO: 57.75 MB #Memory Used# [2025-03-24 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 07:30:06 [end_date_ymd] => 2025-03-24 10:30:06 [RateCDR] => 1 ) [2025-03-24 10:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 07:30:06' and `end` < '2025-03-24 10:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 10:30:19] Production.INFO: count ==4018 [2025-03-24 10:30:21] Production.ERROR: pbx CDR StartTime 2025-03-24 07:30:06 - End Time 2025-03-24 10:30:06 [2025-03-24 10:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751554', 'tblTempUsageDetail_20' ) start [2025-03-24 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751554', 'tblTempUsageDetail_20' ) end [2025-03-24 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751554', 'tblTempVendorCDR_20' ) start [2025-03-24 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751554', 'tblTempVendorCDR_20' ) end [2025-03-24 10:30:21] Production.INFO: ProcessCDR(1,14751554,1,1,2) [2025-03-24 10:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751554', 'tblTempUsageDetail_20' ) start [2025-03-24 10:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751554', 'tblTempUsageDetail_20' ) end [2025-03-24 10:30:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 10:30:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 10:30:27] Production.INFO: ==17117== Releasing lock... [2025-03-24 10:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 10:30:27] Production.INFO: 58 MB #Memory Used# [2025-03-24 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 07:31:05 [end_date_ymd] => 2025-03-24 10:31:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 07:31:05' and `end` < '2025-03-24 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-03-24 10:31:19] Production.INFO: count ==4153 [2025-03-24 10:31:21] Production.ERROR: pbx CDR StartTime 2025-03-24 07:31:05 - End Time 2025-03-24 10:31:05 [2025-03-24 10:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 10:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751559', 'tblTempUsageDetail_20' ) start [2025-03-24 10:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751559', 'tblTempUsageDetail_20' ) end [2025-03-24 10:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751559', 'tblTempVendorCDR_20' ) start [2025-03-24 10:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751559', 'tblTempVendorCDR_20' ) end [2025-03-24 10:31:21] Production.INFO: ProcessCDR(1,14751559,1,1,2) [2025-03-24 10:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751559', 'tblTempUsageDetail_20' ) start [2025-03-24 10:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751559', 'tblTempUsageDetail_20' ) end [2025-03-24 10:31:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 10:31:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 10:31:27] Production.INFO: ==17227== Releasing lock... [2025-03-24 10:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 10:31:27] Production.INFO: 59 MB #Memory Used# [2025-03-24 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 07:32:05 [end_date_ymd] => 2025-03-24 10:32:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 07:32:05' and `end` < '2025-03-24 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-03-24 10:32:18] Production.INFO: count ==4180 [2025-03-24 10:32:20] Production.ERROR: pbx CDR StartTime 2025-03-24 07:32:05 - End Time 2025-03-24 10:32:05 [2025-03-24 10:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751564', 'tblTempUsageDetail_20' ) start [2025-03-24 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751564', 'tblTempUsageDetail_20' ) end [2025-03-24 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751564', 'tblTempVendorCDR_20' ) start [2025-03-24 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751564', 'tblTempVendorCDR_20' ) end [2025-03-24 10:32:20] Production.INFO: ProcessCDR(1,14751564,1,1,2) [2025-03-24 10:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751564', 'tblTempUsageDetail_20' ) start [2025-03-24 10:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751564', 'tblTempUsageDetail_20' ) end [2025-03-24 10:32:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 10:32:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 10:32:26] Production.INFO: ==17341== Releasing lock... [2025-03-24 10:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 10:32:26] Production.INFO: 59.25 MB #Memory Used# [2025-03-24 10:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 07:33:06 [end_date_ymd] => 2025-03-24 10:33:06 [RateCDR] => 1 ) [2025-03-24 10:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 07:33:06' and `end` < '2025-03-24 10:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 10:33:19] Production.INFO: count ==4288 [2025-03-24 10:33:21] Production.ERROR: pbx CDR StartTime 2025-03-24 07:33:06 - End Time 2025-03-24 10:33:06 [2025-03-24 10:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 10:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751569', 'tblTempUsageDetail_20' ) start [2025-03-24 10:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751569', 'tblTempUsageDetail_20' ) end [2025-03-24 10:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751569', 'tblTempVendorCDR_20' ) start [2025-03-24 10:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751569', 'tblTempVendorCDR_20' ) end [2025-03-24 10:33:21] Production.INFO: ProcessCDR(1,14751569,1,1,2) [2025-03-24 10:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751569', 'tblTempUsageDetail_20' ) start [2025-03-24 10:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751569', 'tblTempUsageDetail_20' ) end [2025-03-24 10:33:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 10:33:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 10:33:27] Production.INFO: ==17448== Releasing lock... [2025-03-24 10:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 10:33:27] Production.INFO: 60 MB #Memory Used# [2025-03-24 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 07:34:05 [end_date_ymd] => 2025-03-24 10:34:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 07:34:05' and `end` < '2025-03-24 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-03-24 10:34:18] Production.INFO: count ==4331 [2025-03-24 10:34:20] Production.ERROR: pbx CDR StartTime 2025-03-24 07:34:05 - End Time 2025-03-24 10:34:05 [2025-03-24 10:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751574', 'tblTempUsageDetail_20' ) start [2025-03-24 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751574', 'tblTempUsageDetail_20' ) end [2025-03-24 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751574', 'tblTempVendorCDR_20' ) start [2025-03-24 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751574', 'tblTempVendorCDR_20' ) end [2025-03-24 10:34:20] Production.INFO: ProcessCDR(1,14751574,1,1,2) [2025-03-24 10:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751574', 'tblTempUsageDetail_20' ) start [2025-03-24 10:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751574', 'tblTempUsageDetail_20' ) end [2025-03-24 10:34:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 10:34:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 10:34:26] Production.INFO: ==17562== Releasing lock... [2025-03-24 10:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 10:34:26] Production.INFO: 60.25 MB #Memory Used# [2025-03-24 10:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 07:35:06 [end_date_ymd] => 2025-03-24 10:35:06 [RateCDR] => 1 ) [2025-03-24 10: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-03-24 07:35:06' and `end` < '2025-03-24 10: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-03-24 10:35:19] Production.INFO: count ==4374 [2025-03-24 10:35:21] Production.ERROR: pbx CDR StartTime 2025-03-24 07:35:06 - End Time 2025-03-24 10:35:06 [2025-03-24 10:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 10:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751579', 'tblTempUsageDetail_20' ) start [2025-03-24 10:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751579', 'tblTempUsageDetail_20' ) end [2025-03-24 10:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751579', 'tblTempVendorCDR_20' ) start [2025-03-24 10:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751579', 'tblTempVendorCDR_20' ) end [2025-03-24 10:35:21] Production.INFO: ProcessCDR(1,14751579,1,1,2) [2025-03-24 10:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751579', 'tblTempUsageDetail_20' ) start [2025-03-24 10:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751579', 'tblTempUsageDetail_20' ) end [2025-03-24 10:35:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 10:35:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 10:35:26] Production.INFO: ==17673== Releasing lock... [2025-03-24 10:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 10:35:26] Production.INFO: 60.75 MB #Memory Used# [2025-03-24 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 07:36:05 [end_date_ymd] => 2025-03-24 10:36:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 07:36:05' and `end` < '2025-03-24 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-03-24 10:36:18] Production.INFO: count ==4388 [2025-03-24 10:36:20] Production.ERROR: pbx CDR StartTime 2025-03-24 07:36:05 - End Time 2025-03-24 10:36:05 [2025-03-24 10:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751584', 'tblTempUsageDetail_20' ) start [2025-03-24 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751584', 'tblTempUsageDetail_20' ) end [2025-03-24 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751584', 'tblTempVendorCDR_20' ) start [2025-03-24 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751584', 'tblTempVendorCDR_20' ) end [2025-03-24 10:36:20] Production.INFO: ProcessCDR(1,14751584,1,1,2) [2025-03-24 10:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751584', 'tblTempUsageDetail_20' ) start [2025-03-24 10:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751584', 'tblTempUsageDetail_20' ) end [2025-03-24 10:36:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 10:36:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 10:36:25] Production.INFO: ==17785== Releasing lock... [2025-03-24 10:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 10:36:25] Production.INFO: 60.75 MB #Memory Used# [2025-03-24 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 07:37:05 [end_date_ymd] => 2025-03-24 10:37:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 07:37:05' and `end` < '2025-03-24 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-03-24 10:37:27] Production.INFO: count ==4418 [2025-03-24 10:37:29] Production.ERROR: pbx CDR StartTime 2025-03-24 07:37:05 - End Time 2025-03-24 10:37:05 [2025-03-24 10:37:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 10:37:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751589', 'tblTempUsageDetail_20' ) start [2025-03-24 10:37:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751589', 'tblTempUsageDetail_20' ) end [2025-03-24 10:37:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751589', 'tblTempVendorCDR_20' ) start [2025-03-24 10:37:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751589', 'tblTempVendorCDR_20' ) end [2025-03-24 10:37:29] Production.INFO: ProcessCDR(1,14751589,1,1,2) [2025-03-24 10:37:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:37:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:37:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:37:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:37:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751589', 'tblTempUsageDetail_20' ) start [2025-03-24 10:37:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751589', 'tblTempUsageDetail_20' ) end [2025-03-24 10:37:34] Production.ERROR: pbx prc_insertCDR start [2025-03-24 10:37:35] Production.ERROR: pbx prc_insertCDR end [2025-03-24 10:37:35] Production.INFO: ==17946== Releasing lock... [2025-03-24 10:37:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 10:37:35] Production.INFO: 61 MB #Memory Used# [2025-03-24 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 07:38:05 [end_date_ymd] => 2025-03-24 10:38:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 07:38:05' and `end` < '2025-03-24 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-03-24 10:38:29] Production.INFO: count ==4435 [2025-03-24 10:38:31] Production.ERROR: pbx CDR StartTime 2025-03-24 07:38:05 - End Time 2025-03-24 10:38:05 [2025-03-24 10:38:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 10:38:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751594', 'tblTempUsageDetail_20' ) start [2025-03-24 10:38:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751594', 'tblTempUsageDetail_20' ) end [2025-03-24 10:38:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751594', 'tblTempVendorCDR_20' ) start [2025-03-24 10:38:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751594', 'tblTempVendorCDR_20' ) end [2025-03-24 10:38:31] Production.INFO: ProcessCDR(1,14751594,1,1,2) [2025-03-24 10:38:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:38:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:38:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:38:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:38:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751594', 'tblTempUsageDetail_20' ) start [2025-03-24 10:38:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751594', 'tblTempUsageDetail_20' ) end [2025-03-24 10:38:36] Production.ERROR: pbx prc_insertCDR start [2025-03-24 10:38:36] Production.ERROR: pbx prc_insertCDR end [2025-03-24 10:38:36] Production.INFO: ==18056== Releasing lock... [2025-03-24 10:38:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 10:38:36] Production.INFO: 61.25 MB #Memory Used# [2025-03-24 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 07:39:05 [end_date_ymd] => 2025-03-24 10:39:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 07:39:05' and `end` < '2025-03-24 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-03-24 10:39:31] Production.INFO: count ==4450 [2025-03-24 10:39:33] Production.ERROR: pbx CDR StartTime 2025-03-24 07:39:05 - End Time 2025-03-24 10:39:05 [2025-03-24 10:39:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 10:39:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751599', 'tblTempUsageDetail_20' ) start [2025-03-24 10:39:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751599', 'tblTempUsageDetail_20' ) end [2025-03-24 10:39:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751599', 'tblTempVendorCDR_20' ) start [2025-03-24 10:39:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751599', 'tblTempVendorCDR_20' ) end [2025-03-24 10:39:33] Production.INFO: ProcessCDR(1,14751599,1,1,2) [2025-03-24 10:39:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:39:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:39:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:39:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:39:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751599', 'tblTempUsageDetail_20' ) start [2025-03-24 10:39:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751599', 'tblTempUsageDetail_20' ) end [2025-03-24 10:39:38] Production.ERROR: pbx prc_insertCDR start [2025-03-24 10:39:38] Production.ERROR: pbx prc_insertCDR end [2025-03-24 10:39:38] Production.INFO: ==18172== Releasing lock... [2025-03-24 10:39:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 10:39:38] Production.INFO: 61.25 MB #Memory Used# [2025-03-24 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 07:40:06 [end_date_ymd] => 2025-03-24 10:40:06 [RateCDR] => 1 ) [2025-03-24 10:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 07:40:06' and `end` < '2025-03-24 10:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 10:40:19] Production.INFO: count ==4475 [2025-03-24 10:40:21] Production.ERROR: pbx CDR StartTime 2025-03-24 07:40:06 - End Time 2025-03-24 10:40:06 [2025-03-24 10:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751605', 'tblTempUsageDetail_20' ) start [2025-03-24 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751605', 'tblTempUsageDetail_20' ) end [2025-03-24 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751605', 'tblTempVendorCDR_20' ) start [2025-03-24 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751605', 'tblTempVendorCDR_20' ) end [2025-03-24 10:40:21] Production.INFO: ProcessCDR(1,14751605,1,1,2) [2025-03-24 10:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751605', 'tblTempUsageDetail_20' ) start [2025-03-24 10:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751605', 'tblTempUsageDetail_20' ) end [2025-03-24 10:40:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 10:40:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 10:40:27] Production.INFO: ==18286== Releasing lock... [2025-03-24 10:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 10:40:27] Production.INFO: 61.5 MB #Memory Used# [2025-03-24 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 07:41:05 [end_date_ymd] => 2025-03-24 10:41:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 07:41:05' and `end` < '2025-03-24 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-03-24 10:42:50] Production.INFO: count ==4609 [2025-03-24 10:42:52] Production.ERROR: pbx CDR StartTime 2025-03-24 07:41:05 - End Time 2025-03-24 10:41:05 [2025-03-24 10:42:52] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 10:42:52] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751610', 'tblTempUsageDetail_20' ) start [2025-03-24 10:42:52] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751610', 'tblTempUsageDetail_20' ) end [2025-03-24 10:42:52] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751610', 'tblTempVendorCDR_20' ) start [2025-03-24 10:42:53] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751610', 'tblTempVendorCDR_20' ) end [2025-03-24 10:42:53] Production.INFO: ProcessCDR(1,14751610,1,1,2) [2025-03-24 10:42:53] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:42:55] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:42:55] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:42:58] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:42:58] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751610', 'tblTempUsageDetail_20' ) start [2025-03-24 10:42:58] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751610', 'tblTempUsageDetail_20' ) end [2025-03-24 10:42:58] Production.ERROR: pbx prc_insertCDR start [2025-03-24 10:42:58] Production.ERROR: pbx prc_insertCDR end [2025-03-24 10:42:58] Production.INFO: ==18407== Releasing lock... [2025-03-24 10:42:58] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 10:42:58] Production.INFO: 62.5 MB #Memory Used# [2025-03-24 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 07:43:05 [end_date_ymd] => 2025-03-24 10:43:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 07:43:05' and `end` < '2025-03-24 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-03-24 10:43:22] Production.INFO: count ==4658 [2025-03-24 10:43:24] Production.ERROR: pbx CDR StartTime 2025-03-24 07:43:05 - End Time 2025-03-24 10:43:05 [2025-03-24 10:43:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 10:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751619', 'tblTempUsageDetail_20' ) start [2025-03-24 10:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751619', 'tblTempUsageDetail_20' ) end [2025-03-24 10:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751619', 'tblTempVendorCDR_20' ) start [2025-03-24 10:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751619', 'tblTempVendorCDR_20' ) end [2025-03-24 10:43:24] Production.INFO: ProcessCDR(1,14751619,1,1,2) [2025-03-24 10:43:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:43:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:43:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:43:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751619', 'tblTempUsageDetail_20' ) start [2025-03-24 10:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751619', 'tblTempUsageDetail_20' ) end [2025-03-24 10:43:30] Production.ERROR: pbx prc_insertCDR start [2025-03-24 10:43:30] Production.ERROR: pbx prc_insertCDR end [2025-03-24 10:43:30] Production.INFO: ==18638== Releasing lock... [2025-03-24 10:43:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 10:43:30] Production.INFO: 62.75 MB #Memory Used# [2025-03-24 10:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 07:44:06 [end_date_ymd] => 2025-03-24 10:44:06 [RateCDR] => 1 ) [2025-03-24 10: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-03-24 07:44:06' and `end` < '2025-03-24 10: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-03-24 10:44:35] Production.INFO: count ==4680 [2025-03-24 10:44:37] Production.ERROR: pbx CDR StartTime 2025-03-24 07:44:06 - End Time 2025-03-24 10:44:06 [2025-03-24 10:44:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 10:44:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751624', 'tblTempUsageDetail_20' ) start [2025-03-24 10:44:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751624', 'tblTempUsageDetail_20' ) end [2025-03-24 10:44:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751624', 'tblTempVendorCDR_20' ) start [2025-03-24 10:44:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751624', 'tblTempVendorCDR_20' ) end [2025-03-24 10:44:37] Production.INFO: ProcessCDR(1,14751624,1,1,2) [2025-03-24 10:44:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:44:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:44:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:44:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:44:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751624', 'tblTempUsageDetail_20' ) start [2025-03-24 10:44:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751624', 'tblTempUsageDetail_20' ) end [2025-03-24 10:44:43] Production.ERROR: pbx prc_insertCDR start [2025-03-24 10:44:43] Production.ERROR: pbx prc_insertCDR end [2025-03-24 10:44:43] Production.INFO: ==18750== Releasing lock... [2025-03-24 10:44:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 10:44:43] Production.INFO: 63 MB #Memory Used# [2025-03-24 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 07:45:05 [end_date_ymd] => 2025-03-24 10:45:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 07:45:05' and `end` < '2025-03-24 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-03-24 10:45:30] Production.INFO: count ==4713 [2025-03-24 10:45:32] Production.ERROR: pbx CDR StartTime 2025-03-24 07:45:05 - End Time 2025-03-24 10:45:05 [2025-03-24 10:45:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 10:45:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751629', 'tblTempUsageDetail_20' ) start [2025-03-24 10:45:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751629', 'tblTempUsageDetail_20' ) end [2025-03-24 10:45:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751629', 'tblTempVendorCDR_20' ) start [2025-03-24 10:45:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751629', 'tblTempVendorCDR_20' ) end [2025-03-24 10:45:32] Production.INFO: ProcessCDR(1,14751629,1,1,2) [2025-03-24 10:45:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:45:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:45:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:45:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:45:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751629', 'tblTempUsageDetail_20' ) start [2025-03-24 10:45:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751629', 'tblTempUsageDetail_20' ) end [2025-03-24 10:45:38] Production.ERROR: pbx prc_insertCDR start [2025-03-24 10:45:38] Production.ERROR: pbx prc_insertCDR end [2025-03-24 10:45:38] Production.INFO: ==18866== Releasing lock... [2025-03-24 10:45:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 10:45:38] Production.INFO: 63.25 MB #Memory Used# [2025-03-24 10:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 07:46:06 [end_date_ymd] => 2025-03-24 10:46:06 [RateCDR] => 1 ) [2025-03-24 10: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-03-24 07:46:06' and `end` < '2025-03-24 10: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-03-24 10:46:27] Production.INFO: count ==4765 [2025-03-24 10:46:29] Production.ERROR: pbx CDR StartTime 2025-03-24 07:46:06 - End Time 2025-03-24 10:46:06 [2025-03-24 10:46:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 10:46:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751634', 'tblTempUsageDetail_20' ) start [2025-03-24 10:46:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751634', 'tblTempUsageDetail_20' ) end [2025-03-24 10:46:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751634', 'tblTempVendorCDR_20' ) start [2025-03-24 10:46:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751634', 'tblTempVendorCDR_20' ) end [2025-03-24 10:46:30] Production.INFO: ProcessCDR(1,14751634,1,1,2) [2025-03-24 10:46:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:46:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:46:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:46:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:46:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751634', 'tblTempUsageDetail_20' ) start [2025-03-24 10:46:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751634', 'tblTempUsageDetail_20' ) end [2025-03-24 10:46:36] Production.ERROR: pbx prc_insertCDR start [2025-03-24 10:46:36] Production.ERROR: pbx prc_insertCDR end [2025-03-24 10:46:36] Production.INFO: ==18978== Releasing lock... [2025-03-24 10:46:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 10:46:36] Production.INFO: 63.5 MB #Memory Used# [2025-03-24 10:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 07:47:06 [end_date_ymd] => 2025-03-24 10:47:06 [RateCDR] => 1 ) [2025-03-24 10: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-03-24 07:47:06' and `end` < '2025-03-24 10: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-03-24 10:47:30] Production.INFO: count ==4780 [2025-03-24 10:47:33] Production.ERROR: pbx CDR StartTime 2025-03-24 07:47:06 - End Time 2025-03-24 10:47:06 [2025-03-24 10:47:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 10:47:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751639', 'tblTempUsageDetail_20' ) start [2025-03-24 10:47:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751639', 'tblTempUsageDetail_20' ) end [2025-03-24 10:47:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751639', 'tblTempVendorCDR_20' ) start [2025-03-24 10:47:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751639', 'tblTempVendorCDR_20' ) end [2025-03-24 10:47:33] Production.INFO: ProcessCDR(1,14751639,1,1,2) [2025-03-24 10:47:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:47:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:47:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:47:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:47:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751639', 'tblTempUsageDetail_20' ) start [2025-03-24 10:47:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751639', 'tblTempUsageDetail_20' ) end [2025-03-24 10:47:39] Production.ERROR: pbx prc_insertCDR start [2025-03-24 10:47:39] Production.ERROR: pbx prc_insertCDR end [2025-03-24 10:47:39] Production.INFO: ==19097== Releasing lock... [2025-03-24 10:47:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 10:47:39] Production.INFO: 63.75 MB #Memory Used# [2025-03-24 10:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 07:48:06 [end_date_ymd] => 2025-03-24 10:48:06 [RateCDR] => 1 ) [2025-03-24 10: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-03-24 07:48:06' and `end` < '2025-03-24 10: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-03-24 10:48:26] Production.INFO: count ==4811 [2025-03-24 10:48:29] Production.ERROR: pbx CDR StartTime 2025-03-24 07:48:06 - End Time 2025-03-24 10:48:06 [2025-03-24 10:48:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 10:48:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751644', 'tblTempUsageDetail_20' ) start [2025-03-24 10:48:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751644', 'tblTempUsageDetail_20' ) end [2025-03-24 10:48:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751644', 'tblTempVendorCDR_20' ) start [2025-03-24 10:48:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751644', 'tblTempVendorCDR_20' ) end [2025-03-24 10:48:29] Production.INFO: ProcessCDR(1,14751644,1,1,2) [2025-03-24 10:48:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:48:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:48:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:48:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:48:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751644', 'tblTempUsageDetail_20' ) start [2025-03-24 10:48:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751644', 'tblTempUsageDetail_20' ) end [2025-03-24 10:48:34] Production.ERROR: pbx prc_insertCDR start [2025-03-24 10:48:35] Production.ERROR: pbx prc_insertCDR end [2025-03-24 10:48:35] Production.INFO: ==19211== Releasing lock... [2025-03-24 10:48:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 10:48:35] Production.INFO: 64 MB #Memory Used# [2025-03-24 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 07:49:05 [end_date_ymd] => 2025-03-24 10:49:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 07:49:05' and `end` < '2025-03-24 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-03-24 10:49:22] Production.INFO: count ==4854 [2025-03-24 10:49:24] Production.ERROR: pbx CDR StartTime 2025-03-24 07:49:05 - End Time 2025-03-24 10:49:05 [2025-03-24 10:49:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 10:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751649', 'tblTempUsageDetail_20' ) start [2025-03-24 10:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751649', 'tblTempUsageDetail_20' ) end [2025-03-24 10:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751649', 'tblTempVendorCDR_20' ) start [2025-03-24 10:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751649', 'tblTempVendorCDR_20' ) end [2025-03-24 10:49:25] Production.INFO: ProcessCDR(1,14751649,1,1,2) [2025-03-24 10:49:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:49:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:49:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:49:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751649', 'tblTempUsageDetail_20' ) start [2025-03-24 10:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751649', 'tblTempUsageDetail_20' ) end [2025-03-24 10:49:30] Production.ERROR: pbx prc_insertCDR start [2025-03-24 10:49:30] Production.ERROR: pbx prc_insertCDR end [2025-03-24 10:49:31] Production.INFO: ==19321== Releasing lock... [2025-03-24 10:49:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 10:49:31] Production.INFO: 64.25 MB #Memory Used# [2025-03-24 10:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 07:50:07 [end_date_ymd] => 2025-03-24 10:50:07 [RateCDR] => 1 ) [2025-03-24 10:50: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-03-24 07:50:07' and `end` < '2025-03-24 10:50: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-03-24 10:50:21] Production.INFO: count ==4875 [2025-03-24 10:50:23] Production.ERROR: pbx CDR StartTime 2025-03-24 07:50:07 - End Time 2025-03-24 10:50:07 [2025-03-24 10:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 10:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751654', 'tblTempUsageDetail_20' ) start [2025-03-24 10:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751654', 'tblTempUsageDetail_20' ) end [2025-03-24 10:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751654', 'tblTempVendorCDR_20' ) start [2025-03-24 10:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751654', 'tblTempVendorCDR_20' ) end [2025-03-24 10:50:24] Production.INFO: ProcessCDR(1,14751654,1,1,2) [2025-03-24 10:50:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:50:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:50:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:50:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751654', 'tblTempUsageDetail_20' ) start [2025-03-24 10:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751654', 'tblTempUsageDetail_20' ) end [2025-03-24 10:50:29] Production.ERROR: pbx prc_insertCDR start [2025-03-24 10:50:29] Production.ERROR: pbx prc_insertCDR end [2025-03-24 10:50:29] Production.INFO: ==19441== Releasing lock... [2025-03-24 10:50:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 10:50:29] Production.INFO: 64.5 MB #Memory Used# [2025-03-24 10:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 07:51:06 [end_date_ymd] => 2025-03-24 10:51:06 [RateCDR] => 1 ) [2025-03-24 10: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-03-24 07:51:06' and `end` < '2025-03-24 10: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-03-24 10:51:28] Production.INFO: count ==5011 [2025-03-24 10:51:30] Production.ERROR: pbx CDR StartTime 2025-03-24 07:51:06 - End Time 2025-03-24 10:51:06 [2025-03-24 10:51:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 10:51:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751660', 'tblTempUsageDetail_20' ) start [2025-03-24 10:51:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751660', 'tblTempUsageDetail_20' ) end [2025-03-24 10:51:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751660', 'tblTempVendorCDR_20' ) start [2025-03-24 10:51:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751660', 'tblTempVendorCDR_20' ) end [2025-03-24 10:51:30] Production.INFO: ProcessCDR(1,14751660,1,1,2) [2025-03-24 10:51:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:51:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:51:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:51:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:51:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751660', 'tblTempUsageDetail_20' ) start [2025-03-24 10:51:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751660', 'tblTempUsageDetail_20' ) end [2025-03-24 10:51:36] Production.ERROR: pbx prc_insertCDR start [2025-03-24 10:51:36] Production.ERROR: pbx prc_insertCDR end [2025-03-24 10:51:36] Production.INFO: ==19553== Releasing lock... [2025-03-24 10:51:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 10:51:36] Production.INFO: 65.5 MB #Memory Used# [2025-03-24 10:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 07:52:06 [end_date_ymd] => 2025-03-24 10:52:06 [RateCDR] => 1 ) [2025-03-24 10: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-03-24 07:52:06' and `end` < '2025-03-24 10: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-03-24 10:52:25] Production.INFO: count ==5031 [2025-03-24 10:52:27] Production.ERROR: pbx CDR StartTime 2025-03-24 07:52:06 - End Time 2025-03-24 10:52:06 [2025-03-24 10:52:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 10:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751665', 'tblTempUsageDetail_20' ) start [2025-03-24 10:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751665', 'tblTempUsageDetail_20' ) end [2025-03-24 10:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751665', 'tblTempVendorCDR_20' ) start [2025-03-24 10:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751665', 'tblTempVendorCDR_20' ) end [2025-03-24 10:52:27] Production.INFO: ProcessCDR(1,14751665,1,1,2) [2025-03-24 10:52:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:52:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:52:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:52:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:52:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751665', 'tblTempUsageDetail_20' ) start [2025-03-24 10:52:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751665', 'tblTempUsageDetail_20' ) end [2025-03-24 10:52:33] Production.ERROR: pbx prc_insertCDR start [2025-03-24 10:52:33] Production.ERROR: pbx prc_insertCDR end [2025-03-24 10:52:33] Production.INFO: ==19708== Releasing lock... [2025-03-24 10:52:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 10:52:33] Production.INFO: 65.5 MB #Memory Used# [2025-03-24 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 07:53:05 [end_date_ymd] => 2025-03-24 10:53:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 07:53:05' and `end` < '2025-03-24 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-03-24 10:53:31] Production.INFO: count ==5049 [2025-03-24 10:53:33] Production.ERROR: pbx CDR StartTime 2025-03-24 07:53:05 - End Time 2025-03-24 10:53:05 [2025-03-24 10:53:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 10:53:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751670', 'tblTempUsageDetail_20' ) start [2025-03-24 10:53:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751670', 'tblTempUsageDetail_20' ) end [2025-03-24 10:53:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751670', 'tblTempVendorCDR_20' ) start [2025-03-24 10:53:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751670', 'tblTempVendorCDR_20' ) end [2025-03-24 10:53:33] Production.INFO: ProcessCDR(1,14751670,1,1,2) [2025-03-24 10:53:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:53:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:53:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:53:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:53:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751670', 'tblTempUsageDetail_20' ) start [2025-03-24 10:53:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751670', 'tblTempUsageDetail_20' ) end [2025-03-24 10:53:39] Production.ERROR: pbx prc_insertCDR start [2025-03-24 10:53:39] Production.ERROR: pbx prc_insertCDR end [2025-03-24 10:53:39] Production.INFO: ==19827== Releasing lock... [2025-03-24 10:53:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 10:53:39] Production.INFO: 65.75 MB #Memory Used# [2025-03-24 10:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 07:54:06 [end_date_ymd] => 2025-03-24 10:54:06 [RateCDR] => 1 ) [2025-03-24 10: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-03-24 07:54:06' and `end` < '2025-03-24 10: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-03-24 10:54:23] Production.INFO: count ==5072 [2025-03-24 10:54:25] Production.ERROR: pbx CDR StartTime 2025-03-24 07:54:06 - End Time 2025-03-24 10:54:06 [2025-03-24 10:54:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 10:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751675', 'tblTempUsageDetail_20' ) start [2025-03-24 10:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751675', 'tblTempUsageDetail_20' ) end [2025-03-24 10:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751675', 'tblTempVendorCDR_20' ) start [2025-03-24 10:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751675', 'tblTempVendorCDR_20' ) end [2025-03-24 10:54:26] Production.INFO: ProcessCDR(1,14751675,1,1,2) [2025-03-24 10:54:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:54:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:54:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:54:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:54:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751675', 'tblTempUsageDetail_20' ) start [2025-03-24 10:54:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751675', 'tblTempUsageDetail_20' ) end [2025-03-24 10:54:31] Production.ERROR: pbx prc_insertCDR start [2025-03-24 10:54:31] Production.ERROR: pbx prc_insertCDR end [2025-03-24 10:54:31] Production.INFO: ==19956== Releasing lock... [2025-03-24 10:54:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 10:54:31] Production.INFO: 66 MB #Memory Used# [2025-03-24 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 07:55:05 [end_date_ymd] => 2025-03-24 10:55:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 07:55:05' and `end` < '2025-03-24 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-03-24 10:55:21] Production.INFO: count ==5088 [2025-03-24 10:55:23] Production.ERROR: pbx CDR StartTime 2025-03-24 07:55:05 - End Time 2025-03-24 10:55:05 [2025-03-24 10:55:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 10:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751680', 'tblTempUsageDetail_20' ) start [2025-03-24 10:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751680', 'tblTempUsageDetail_20' ) end [2025-03-24 10:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751680', 'tblTempVendorCDR_20' ) start [2025-03-24 10:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751680', 'tblTempVendorCDR_20' ) end [2025-03-24 10:55:24] Production.INFO: ProcessCDR(1,14751680,1,1,2) [2025-03-24 10:55:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:55:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:55:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:55:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:55:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751680', 'tblTempUsageDetail_20' ) start [2025-03-24 10:55:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751680', 'tblTempUsageDetail_20' ) end [2025-03-24 10:55:29] Production.ERROR: pbx prc_insertCDR start [2025-03-24 10:55:29] Production.ERROR: pbx prc_insertCDR end [2025-03-24 10:55:29] Production.INFO: ==20072== Releasing lock... [2025-03-24 10:55:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 10:55:29] Production.INFO: 66 MB #Memory Used# [2025-03-24 10:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 07:56:06 [end_date_ymd] => 2025-03-24 10:56:06 [RateCDR] => 1 ) [2025-03-24 10: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-03-24 07:56:06' and `end` < '2025-03-24 10: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-03-24 10:56:22] Production.INFO: count ==5117 [2025-03-24 10:56:24] Production.ERROR: pbx CDR StartTime 2025-03-24 07:56:06 - End Time 2025-03-24 10:56:06 [2025-03-24 10:56:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 10:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751685', 'tblTempUsageDetail_20' ) start [2025-03-24 10:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751685', 'tblTempUsageDetail_20' ) end [2025-03-24 10:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751685', 'tblTempVendorCDR_20' ) start [2025-03-24 10:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751685', 'tblTempVendorCDR_20' ) end [2025-03-24 10:56:24] Production.INFO: ProcessCDR(1,14751685,1,1,2) [2025-03-24 10:56:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:56:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:56:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:56:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751685', 'tblTempUsageDetail_20' ) start [2025-03-24 10:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751685', 'tblTempUsageDetail_20' ) end [2025-03-24 10:56:30] Production.ERROR: pbx prc_insertCDR start [2025-03-24 10:56:30] Production.ERROR: pbx prc_insertCDR end [2025-03-24 10:56:30] Production.INFO: ==20201== Releasing lock... [2025-03-24 10:56:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 10:56:30] Production.INFO: 66.25 MB #Memory Used# [2025-03-24 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 07:57:05 [end_date_ymd] => 2025-03-24 10:57:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 07:57:05' and `end` < '2025-03-24 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-03-24 10:57:28] Production.INFO: count ==5132 [2025-03-24 10:57:31] Production.ERROR: pbx CDR StartTime 2025-03-24 07:57:05 - End Time 2025-03-24 10:57:05 [2025-03-24 10:57:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 10:57:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751690', 'tblTempUsageDetail_20' ) start [2025-03-24 10:57:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751690', 'tblTempUsageDetail_20' ) end [2025-03-24 10:57:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751690', 'tblTempVendorCDR_20' ) start [2025-03-24 10:57:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751690', 'tblTempVendorCDR_20' ) end [2025-03-24 10:57:31] Production.INFO: ProcessCDR(1,14751690,1,1,2) [2025-03-24 10:57:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:57:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:57:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:57:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:57:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751690', 'tblTempUsageDetail_20' ) start [2025-03-24 10:57:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751690', 'tblTempUsageDetail_20' ) end [2025-03-24 10:57:36] Production.ERROR: pbx prc_insertCDR start [2025-03-24 10:57:36] Production.ERROR: pbx prc_insertCDR end [2025-03-24 10:57:36] Production.INFO: ==20316== Releasing lock... [2025-03-24 10:57:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 10:57:36] Production.INFO: 66.25 MB #Memory Used# [2025-03-24 10:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 07:58:06 [end_date_ymd] => 2025-03-24 10:58:06 [RateCDR] => 1 ) [2025-03-24 10:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 07:58:06' and `end` < '2025-03-24 10:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 10:58:26] Production.INFO: count ==5135 [2025-03-24 10:58:28] Production.ERROR: pbx CDR StartTime 2025-03-24 07:58:06 - End Time 2025-03-24 10:58:06 [2025-03-24 10:58:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 10:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751695', 'tblTempUsageDetail_20' ) start [2025-03-24 10:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751695', 'tblTempUsageDetail_20' ) end [2025-03-24 10:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751695', 'tblTempVendorCDR_20' ) start [2025-03-24 10:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751695', 'tblTempVendorCDR_20' ) end [2025-03-24 10:58:28] Production.INFO: ProcessCDR(1,14751695,1,1,2) [2025-03-24 10:58:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:58:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:58:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:58:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:58:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751695', 'tblTempUsageDetail_20' ) start [2025-03-24 10:58:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751695', 'tblTempUsageDetail_20' ) end [2025-03-24 10:58:34] Production.ERROR: pbx prc_insertCDR start [2025-03-24 10:58:34] Production.ERROR: pbx prc_insertCDR end [2025-03-24 10:58:34] Production.INFO: ==20431== Releasing lock... [2025-03-24 10:58:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 10:58:34] Production.INFO: 66.5 MB #Memory Used# [2025-03-24 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 07:59:05 [end_date_ymd] => 2025-03-24 10:59:05 [RateCDR] => 1 ) [2025-03-24 10:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 07:59:05' and `end` < '2025-03-24 10:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 10:59:21] Production.INFO: count ==5140 [2025-03-24 10:59:23] Production.ERROR: pbx CDR StartTime 2025-03-24 07:59:05 - End Time 2025-03-24 10:59:05 [2025-03-24 10:59:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 10:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751697', 'tblTempUsageDetail_20' ) start [2025-03-24 10:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751697', 'tblTempUsageDetail_20' ) end [2025-03-24 10:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751697', 'tblTempVendorCDR_20' ) start [2025-03-24 10:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751697', 'tblTempVendorCDR_20' ) end [2025-03-24 10:59:23] Production.INFO: ProcessCDR(1,14751697,1,1,2) [2025-03-24 10:59:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:59:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 10:59:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:59:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 10:59:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751697', 'tblTempUsageDetail_20' ) start [2025-03-24 10:59:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751697', 'tblTempUsageDetail_20' ) end [2025-03-24 10:59:29] Production.ERROR: pbx prc_insertCDR start [2025-03-24 10:59:29] Production.ERROR: pbx prc_insertCDR end [2025-03-24 10:59:29] Production.INFO: ==20545== Releasing lock... [2025-03-24 10:59:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 10:59:29] Production.INFO: 66.5 MB #Memory Used# [2025-03-24 11:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 08:00:07 [end_date_ymd] => 2025-03-24 11:00:07 [RateCDR] => 1 ) [2025-03-24 11: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-03-24 08:00:07' and `end` < '2025-03-24 11: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-03-24 11:00:24] Production.INFO: count ==5163 [2025-03-24 11:00:26] Production.ERROR: pbx CDR StartTime 2025-03-24 08:00:07 - End Time 2025-03-24 11:00:07 [2025-03-24 11:00:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 11:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751706', 'tblTempUsageDetail_20' ) start [2025-03-24 11:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751706', 'tblTempUsageDetail_20' ) end [2025-03-24 11:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751706', 'tblTempVendorCDR_20' ) start [2025-03-24 11:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751706', 'tblTempVendorCDR_20' ) end [2025-03-24 11:00:27] Production.INFO: ProcessCDR(1,14751706,1,1,2) [2025-03-24 11:00:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:00:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:00:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:00:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751706', 'tblTempUsageDetail_20' ) start [2025-03-24 11:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751706', 'tblTempUsageDetail_20' ) end [2025-03-24 11:00:33] Production.ERROR: pbx prc_insertCDR start [2025-03-24 11:00:33] Production.ERROR: pbx prc_insertCDR end [2025-03-24 11:00:33] Production.INFO: ==20661== Releasing lock... [2025-03-24 11:00:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 11:00:33] Production.INFO: 66.5 MB #Memory Used# [2025-03-24 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 08:01:05 [end_date_ymd] => 2025-03-24 11:01:05 [RateCDR] => 1 ) [2025-03-24 11:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 08:01:05' and `end` < '2025-03-24 11:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 11:01:30] Production.INFO: count ==5276 [2025-03-24 11:01:33] Production.ERROR: pbx CDR StartTime 2025-03-24 08:01:05 - End Time 2025-03-24 11:01:05 [2025-03-24 11:01:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 11:01:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751711', 'tblTempUsageDetail_20' ) start [2025-03-24 11:01:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751711', 'tblTempUsageDetail_20' ) end [2025-03-24 11:01:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751711', 'tblTempVendorCDR_20' ) start [2025-03-24 11:01:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751711', 'tblTempVendorCDR_20' ) end [2025-03-24 11:01:33] Production.INFO: ProcessCDR(1,14751711,1,1,2) [2025-03-24 11:01:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:01:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:01:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:01:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:01:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751711', 'tblTempUsageDetail_20' ) start [2025-03-24 11:01:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751711', 'tblTempUsageDetail_20' ) end [2025-03-24 11:01:38] Production.ERROR: pbx prc_insertCDR start [2025-03-24 11:01:38] Production.ERROR: pbx prc_insertCDR end [2025-03-24 11:01:38] Production.INFO: ==20802== Releasing lock... [2025-03-24 11:01:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 11:01:38] Production.INFO: 67.5 MB #Memory Used# [2025-03-24 11:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 08:02:06 [end_date_ymd] => 2025-03-24 11:02:06 [RateCDR] => 1 ) [2025-03-24 11: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-03-24 08:02:06' and `end` < '2025-03-24 11: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-03-24 11:02:22] Production.INFO: count ==5317 [2025-03-24 11:02:25] Production.ERROR: pbx CDR StartTime 2025-03-24 08:02:06 - End Time 2025-03-24 11:02:06 [2025-03-24 11:02:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 11:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751716', 'tblTempUsageDetail_20' ) start [2025-03-24 11:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751716', 'tblTempUsageDetail_20' ) end [2025-03-24 11:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751716', 'tblTempVendorCDR_20' ) start [2025-03-24 11:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751716', 'tblTempVendorCDR_20' ) end [2025-03-24 11:02:25] Production.INFO: ProcessCDR(1,14751716,1,1,2) [2025-03-24 11:02:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:02:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:02:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:02:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751716', 'tblTempUsageDetail_20' ) start [2025-03-24 11:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751716', 'tblTempUsageDetail_20' ) end [2025-03-24 11:02:31] Production.ERROR: pbx prc_insertCDR start [2025-03-24 11:02:31] Production.ERROR: pbx prc_insertCDR end [2025-03-24 11:02:31] Production.INFO: ==21005== Releasing lock... [2025-03-24 11:02:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 11:02:31] Production.INFO: 67.75 MB #Memory Used# [2025-03-24 11:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 08:03:06 [end_date_ymd] => 2025-03-24 11:03:06 [RateCDR] => 1 ) [2025-03-24 11:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 08:03:06' and `end` < '2025-03-24 11:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 11:03:38] Production.INFO: count ==5312 [2025-03-24 11:03:40] Production.ERROR: pbx CDR StartTime 2025-03-24 08:03:06 - End Time 2025-03-24 11:03:06 [2025-03-24 11:03:40] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 11:03:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751721', 'tblTempUsageDetail_20' ) start [2025-03-24 11:03:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751721', 'tblTempUsageDetail_20' ) end [2025-03-24 11:03:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751721', 'tblTempVendorCDR_20' ) start [2025-03-24 11:03:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751721', 'tblTempVendorCDR_20' ) end [2025-03-24 11:03:40] Production.INFO: ProcessCDR(1,14751721,1,1,2) [2025-03-24 11:03:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:03:43] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:03:43] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:03:46] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:03:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751721', 'tblTempUsageDetail_20' ) start [2025-03-24 11:03:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751721', 'tblTempUsageDetail_20' ) end [2025-03-24 11:03:46] Production.ERROR: pbx prc_insertCDR start [2025-03-24 11:03:46] Production.ERROR: pbx prc_insertCDR end [2025-03-24 11:03:46] Production.INFO: ==21122== Releasing lock... [2025-03-24 11:03:46] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 11:03:46] Production.INFO: 67.75 MB #Memory Used# [2025-03-24 11:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 08:04:06 [end_date_ymd] => 2025-03-24 11:04:06 [RateCDR] => 1 ) [2025-03-24 11: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-03-24 08:04:06' and `end` < '2025-03-24 11: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-03-24 11:04:21] Production.INFO: count ==5329 [2025-03-24 11:04:24] Production.ERROR: pbx CDR StartTime 2025-03-24 08:04:06 - End Time 2025-03-24 11:04:06 [2025-03-24 11:04:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 11:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751726', 'tblTempUsageDetail_20' ) start [2025-03-24 11:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751726', 'tblTempUsageDetail_20' ) end [2025-03-24 11:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751726', 'tblTempVendorCDR_20' ) start [2025-03-24 11:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751726', 'tblTempVendorCDR_20' ) end [2025-03-24 11:04:24] Production.INFO: ProcessCDR(1,14751726,1,1,2) [2025-03-24 11:04:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:04:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:04:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:04:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751726', 'tblTempUsageDetail_20' ) start [2025-03-24 11:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751726', 'tblTempUsageDetail_20' ) end [2025-03-24 11:04:30] Production.ERROR: pbx prc_insertCDR start [2025-03-24 11:04:30] Production.ERROR: pbx prc_insertCDR end [2025-03-24 11:04:30] Production.INFO: ==21242== Releasing lock... [2025-03-24 11:04:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 11:04:30] Production.INFO: 67.75 MB #Memory Used# [2025-03-24 11:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 08:05:06 [end_date_ymd] => 2025-03-24 11:05:06 [RateCDR] => 1 ) [2025-03-24 11: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-03-24 08:05:06' and `end` < '2025-03-24 11: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-03-24 11:05:33] Production.INFO: count ==5357 [2025-03-24 11:05:36] Production.ERROR: pbx CDR StartTime 2025-03-24 08:05:06 - End Time 2025-03-24 11:05:06 [2025-03-24 11:05:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 11:05:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751731', 'tblTempUsageDetail_20' ) start [2025-03-24 11:05:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751731', 'tblTempUsageDetail_20' ) end [2025-03-24 11:05:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751731', 'tblTempVendorCDR_20' ) start [2025-03-24 11:05:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751731', 'tblTempVendorCDR_20' ) end [2025-03-24 11:05:36] Production.INFO: ProcessCDR(1,14751731,1,1,2) [2025-03-24 11:05:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:05:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:05:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:05:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:05:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751731', 'tblTempUsageDetail_20' ) start [2025-03-24 11:05:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751731', 'tblTempUsageDetail_20' ) end [2025-03-24 11:05:42] Production.ERROR: pbx prc_insertCDR start [2025-03-24 11:05:42] Production.ERROR: pbx prc_insertCDR end [2025-03-24 11:05:42] Production.INFO: ==21430== Releasing lock... [2025-03-24 11:05:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 11:05:42] Production.INFO: 68 MB #Memory Used# [2025-03-24 11:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 08:06:06 [end_date_ymd] => 2025-03-24 11:06:06 [RateCDR] => 1 ) [2025-03-24 11: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-03-24 08:06:06' and `end` < '2025-03-24 11: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-03-24 11:06:22] Production.INFO: count ==5377 [2025-03-24 11:06:25] Production.ERROR: pbx CDR StartTime 2025-03-24 08:06:06 - End Time 2025-03-24 11:06:06 [2025-03-24 11:06:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 11:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751736', 'tblTempUsageDetail_20' ) start [2025-03-24 11:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751736', 'tblTempUsageDetail_20' ) end [2025-03-24 11:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751736', 'tblTempVendorCDR_20' ) start [2025-03-24 11:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751736', 'tblTempVendorCDR_20' ) end [2025-03-24 11:06:25] Production.INFO: ProcessCDR(1,14751736,1,1,2) [2025-03-24 11:06:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:06:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:06:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:06:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751736', 'tblTempUsageDetail_20' ) start [2025-03-24 11:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751736', 'tblTempUsageDetail_20' ) end [2025-03-24 11:06:31] Production.ERROR: pbx prc_insertCDR start [2025-03-24 11:06:31] Production.ERROR: pbx prc_insertCDR end [2025-03-24 11:06:31] Production.INFO: ==21551== Releasing lock... [2025-03-24 11:06:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 11:06:31] Production.INFO: 68.25 MB #Memory Used# [2025-03-24 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 08:07:05 [end_date_ymd] => 2025-03-24 11:07:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 08:07:05' and `end` < '2025-03-24 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-03-24 11:07:35] Production.INFO: count ==5396 [2025-03-24 11:07:38] Production.ERROR: pbx CDR StartTime 2025-03-24 08:07:05 - End Time 2025-03-24 11:07:05 [2025-03-24 11:07:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 11:07:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751741', 'tblTempUsageDetail_20' ) start [2025-03-24 11:07:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751741', 'tblTempUsageDetail_20' ) end [2025-03-24 11:07:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751741', 'tblTempVendorCDR_20' ) start [2025-03-24 11:07:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751741', 'tblTempVendorCDR_20' ) end [2025-03-24 11:07:38] Production.INFO: ProcessCDR(1,14751741,1,1,2) [2025-03-24 11:07:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:07:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:07:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:07:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:07:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751741', 'tblTempUsageDetail_20' ) start [2025-03-24 11:07:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751741', 'tblTempUsageDetail_20' ) end [2025-03-24 11:07:44] Production.ERROR: pbx prc_insertCDR start [2025-03-24 11:07:44] Production.ERROR: pbx prc_insertCDR end [2025-03-24 11:07:44] Production.INFO: ==21671== Releasing lock... [2025-03-24 11:07:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 11:07:44] Production.INFO: 68.25 MB #Memory Used# [2025-03-24 11:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 08:08:06 [end_date_ymd] => 2025-03-24 11:08:06 [RateCDR] => 1 ) [2025-03-24 11: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-03-24 08:08:06' and `end` < '2025-03-24 11: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-03-24 11:08:21] Production.INFO: count ==5423 [2025-03-24 11:08:24] Production.ERROR: pbx CDR StartTime 2025-03-24 08:08:06 - End Time 2025-03-24 11:08:06 [2025-03-24 11:08:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 11:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751746', 'tblTempUsageDetail_20' ) start [2025-03-24 11:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751746', 'tblTempUsageDetail_20' ) end [2025-03-24 11:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751746', 'tblTempVendorCDR_20' ) start [2025-03-24 11:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751746', 'tblTempVendorCDR_20' ) end [2025-03-24 11:08:24] Production.INFO: ProcessCDR(1,14751746,1,1,2) [2025-03-24 11:08:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:08:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:08:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:08:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751746', 'tblTempUsageDetail_20' ) start [2025-03-24 11:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751746', 'tblTempUsageDetail_20' ) end [2025-03-24 11:08:30] Production.ERROR: pbx prc_insertCDR start [2025-03-24 11:08:30] Production.ERROR: pbx prc_insertCDR end [2025-03-24 11:08:30] Production.INFO: ==21869== Releasing lock... [2025-03-24 11:08:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 11:08:30] Production.INFO: 68.5 MB #Memory Used# [2025-03-24 11:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 08:09:06 [end_date_ymd] => 2025-03-24 11:09:06 [RateCDR] => 1 ) [2025-03-24 11:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 08:09:06' and `end` < '2025-03-24 11:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 11:09:26] Production.INFO: count ==5450 [2025-03-24 11:09:29] Production.ERROR: pbx CDR StartTime 2025-03-24 08:09:06 - End Time 2025-03-24 11:09:06 [2025-03-24 11:09:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 11:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751751', 'tblTempUsageDetail_20' ) start [2025-03-24 11:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751751', 'tblTempUsageDetail_20' ) end [2025-03-24 11:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751751', 'tblTempVendorCDR_20' ) start [2025-03-24 11:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751751', 'tblTempVendorCDR_20' ) end [2025-03-24 11:09:29] Production.INFO: ProcessCDR(1,14751751,1,1,2) [2025-03-24 11:09:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:09:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:09:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:09:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:09:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751751', 'tblTempUsageDetail_20' ) start [2025-03-24 11:09:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751751', 'tblTempUsageDetail_20' ) end [2025-03-24 11:09:35] Production.ERROR: pbx prc_insertCDR start [2025-03-24 11:09:35] Production.ERROR: pbx prc_insertCDR end [2025-03-24 11:09:35] Production.INFO: ==22021== Releasing lock... [2025-03-24 11:09:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 11:09:35] Production.INFO: 68.75 MB #Memory Used# [2025-03-24 11:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 08:10:07 [end_date_ymd] => 2025-03-24 11:10:07 [RateCDR] => 1 ) [2025-03-24 11:10: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-03-24 08:10:07' and `end` < '2025-03-24 11:10: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-03-24 11:10:22] Production.INFO: count ==5464 [2025-03-24 11:10:25] Production.ERROR: pbx CDR StartTime 2025-03-24 08:10:07 - End Time 2025-03-24 11:10:07 [2025-03-24 11:10:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 11:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751757', 'tblTempUsageDetail_20' ) start [2025-03-24 11:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751757', 'tblTempUsageDetail_20' ) end [2025-03-24 11:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751757', 'tblTempVendorCDR_20' ) start [2025-03-24 11:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751757', 'tblTempVendorCDR_20' ) end [2025-03-24 11:10:25] Production.INFO: ProcessCDR(1,14751757,1,1,2) [2025-03-24 11:10:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:10:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:10:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:10:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751757', 'tblTempUsageDetail_20' ) start [2025-03-24 11:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751757', 'tblTempUsageDetail_20' ) end [2025-03-24 11:10:31] Production.ERROR: pbx prc_insertCDR start [2025-03-24 11:10:31] Production.ERROR: pbx prc_insertCDR end [2025-03-24 11:10:31] Production.INFO: ==22126== Releasing lock... [2025-03-24 11:10:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 11:10:31] Production.INFO: 68.75 MB #Memory Used# [2025-03-24 11:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 08:11:06 [end_date_ymd] => 2025-03-24 11:11:06 [RateCDR] => 1 ) [2025-03-24 11: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-03-24 08:11:06' and `end` < '2025-03-24 11: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-03-24 11:11:22] Production.INFO: count ==5550 [2025-03-24 11:11:25] Production.ERROR: pbx CDR StartTime 2025-03-24 08:11:06 - End Time 2025-03-24 11:11:06 [2025-03-24 11:11:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 11:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751762', 'tblTempUsageDetail_20' ) start [2025-03-24 11:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751762', 'tblTempUsageDetail_20' ) end [2025-03-24 11:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751762', 'tblTempVendorCDR_20' ) start [2025-03-24 11:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751762', 'tblTempVendorCDR_20' ) end [2025-03-24 11:11:26] Production.INFO: ProcessCDR(1,14751762,1,1,2) [2025-03-24 11:11:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:11:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:11:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:11:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:11:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751762', 'tblTempUsageDetail_20' ) start [2025-03-24 11:11:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751762', 'tblTempUsageDetail_20' ) end [2025-03-24 11:11:32] Production.ERROR: pbx prc_insertCDR start [2025-03-24 11:11:32] Production.ERROR: pbx prc_insertCDR end [2025-03-24 11:11:32] Production.INFO: ==22235== Releasing lock... [2025-03-24 11:11:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 11:11:32] Production.INFO: 69.5 MB #Memory Used# [2025-03-24 11:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 08:12:06 [end_date_ymd] => 2025-03-24 11:12:06 [RateCDR] => 1 ) [2025-03-24 11: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-03-24 08:12:06' and `end` < '2025-03-24 11: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-03-24 11:12:31] Production.INFO: count ==5557 [2025-03-24 11:12:34] Production.ERROR: pbx CDR StartTime 2025-03-24 08:12:06 - End Time 2025-03-24 11:12:06 [2025-03-24 11:12:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 11:12:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751767', 'tblTempUsageDetail_20' ) start [2025-03-24 11:12:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751767', 'tblTempUsageDetail_20' ) end [2025-03-24 11:12:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751767', 'tblTempVendorCDR_20' ) start [2025-03-24 11:12:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751767', 'tblTempVendorCDR_20' ) end [2025-03-24 11:12:35] Production.INFO: ProcessCDR(1,14751767,1,1,2) [2025-03-24 11:12:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:12:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:12:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:12:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:12:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751767', 'tblTempUsageDetail_20' ) start [2025-03-24 11:12:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751767', 'tblTempUsageDetail_20' ) end [2025-03-24 11:12:41] Production.ERROR: pbx prc_insertCDR start [2025-03-24 11:12:41] Production.ERROR: pbx prc_insertCDR end [2025-03-24 11:12:41] Production.INFO: ==22419== Releasing lock... [2025-03-24 11:12:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 11:12:41] Production.INFO: 69.5 MB #Memory Used# [2025-03-24 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 08:13:05 [end_date_ymd] => 2025-03-24 11:13:05 [RateCDR] => 1 ) [2025-03-24 11:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 08:13:05' and `end` < '2025-03-24 11:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 11:13:20] Production.INFO: count ==5532 [2025-03-24 11:13:23] Production.ERROR: pbx CDR StartTime 2025-03-24 08:13:05 - End Time 2025-03-24 11:13:05 [2025-03-24 11:13:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 11:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751772', 'tblTempUsageDetail_20' ) start [2025-03-24 11:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751772', 'tblTempUsageDetail_20' ) end [2025-03-24 11:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751772', 'tblTempVendorCDR_20' ) start [2025-03-24 11:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751772', 'tblTempVendorCDR_20' ) end [2025-03-24 11:13:24] Production.INFO: ProcessCDR(1,14751772,1,1,2) [2025-03-24 11:13:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:13:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:13:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:13:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751772', 'tblTempUsageDetail_20' ) start [2025-03-24 11:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751772', 'tblTempUsageDetail_20' ) end [2025-03-24 11:13:29] Production.ERROR: pbx prc_insertCDR start [2025-03-24 11:13:29] Production.ERROR: pbx prc_insertCDR end [2025-03-24 11:13:29] Production.INFO: ==22528== Releasing lock... [2025-03-24 11:13:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 11:13:29] Production.INFO: 69.25 MB #Memory Used# [2025-03-24 11:14:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 08:14:07 [end_date_ymd] => 2025-03-24 11:14:07 [RateCDR] => 1 ) [2025-03-24 11:14: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-03-24 08:14:07' and `end` < '2025-03-24 11:14: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-03-24 11:14:28] Production.INFO: count ==5527 [2025-03-24 11:14:31] Production.ERROR: pbx CDR StartTime 2025-03-24 08:14:07 - End Time 2025-03-24 11:14:07 [2025-03-24 11:14:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 11:14:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751777', 'tblTempUsageDetail_20' ) start [2025-03-24 11:14:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751777', 'tblTempUsageDetail_20' ) end [2025-03-24 11:14:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751777', 'tblTempVendorCDR_20' ) start [2025-03-24 11:14:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751777', 'tblTempVendorCDR_20' ) end [2025-03-24 11:14:31] Production.INFO: ProcessCDR(1,14751777,1,1,2) [2025-03-24 11:14:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:14:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:14:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:14:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:14:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751777', 'tblTempUsageDetail_20' ) start [2025-03-24 11:14:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751777', 'tblTempUsageDetail_20' ) end [2025-03-24 11:14:36] Production.ERROR: pbx prc_insertCDR start [2025-03-24 11:14:36] Production.ERROR: pbx prc_insertCDR end [2025-03-24 11:14:36] Production.INFO: ==22637== Releasing lock... [2025-03-24 11:14:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 11:14:36] Production.INFO: 69.25 MB #Memory Used# [2025-03-24 11:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 08:15:06 [end_date_ymd] => 2025-03-24 11:15:06 [RateCDR] => 1 ) [2025-03-24 11:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 08:15:06' and `end` < '2025-03-24 11:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 11:15:21] Production.INFO: count ==5567 [2025-03-24 11:15:24] Production.ERROR: pbx CDR StartTime 2025-03-24 08:15:06 - End Time 2025-03-24 11:15:06 [2025-03-24 11:15:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 11:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751782', 'tblTempUsageDetail_20' ) start [2025-03-24 11:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751782', 'tblTempUsageDetail_20' ) end [2025-03-24 11:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751782', 'tblTempVendorCDR_20' ) start [2025-03-24 11:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751782', 'tblTempVendorCDR_20' ) end [2025-03-24 11:15:24] Production.INFO: ProcessCDR(1,14751782,1,1,2) [2025-03-24 11:15:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:15:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:15:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:15:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:15:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751782', 'tblTempUsageDetail_20' ) start [2025-03-24 11:15:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751782', 'tblTempUsageDetail_20' ) end [2025-03-24 11:15:30] Production.ERROR: pbx prc_insertCDR start [2025-03-24 11:15:30] Production.ERROR: pbx prc_insertCDR end [2025-03-24 11:15:30] Production.INFO: ==22798== Releasing lock... [2025-03-24 11:15:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 11:15:30] Production.INFO: 69.75 MB #Memory Used# [2025-03-24 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 08:16:05 [end_date_ymd] => 2025-03-24 11:16:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 08:16:05' and `end` < '2025-03-24 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-03-24 11:16:30] Production.INFO: count ==5578 [2025-03-24 11:16:33] Production.ERROR: pbx CDR StartTime 2025-03-24 08:16:05 - End Time 2025-03-24 11:16:05 [2025-03-24 11:16:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 11:16:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751787', 'tblTempUsageDetail_20' ) start [2025-03-24 11:16:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751787', 'tblTempUsageDetail_20' ) end [2025-03-24 11:16:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751787', 'tblTempVendorCDR_20' ) start [2025-03-24 11:16:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751787', 'tblTempVendorCDR_20' ) end [2025-03-24 11:16:33] Production.INFO: ProcessCDR(1,14751787,1,1,2) [2025-03-24 11:16:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:16:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:16:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:16:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:16:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751787', 'tblTempUsageDetail_20' ) start [2025-03-24 11:16:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751787', 'tblTempUsageDetail_20' ) end [2025-03-24 11:16:39] Production.ERROR: pbx prc_insertCDR start [2025-03-24 11:16:39] Production.ERROR: pbx prc_insertCDR end [2025-03-24 11:16:39] Production.INFO: ==22940== Releasing lock... [2025-03-24 11:16:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 11:16:39] Production.INFO: 69.75 MB #Memory Used# [2025-03-24 11:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 08:17:06 [end_date_ymd] => 2025-03-24 11:17:06 [RateCDR] => 1 ) [2025-03-24 11: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-03-24 08:17:06' and `end` < '2025-03-24 11: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-03-24 11:17:21] Production.INFO: count ==5574 [2025-03-24 11:17:24] Production.ERROR: pbx CDR StartTime 2025-03-24 08:17:06 - End Time 2025-03-24 11:17:06 [2025-03-24 11:17:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 11:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751792', 'tblTempUsageDetail_20' ) start [2025-03-24 11:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751792', 'tblTempUsageDetail_20' ) end [2025-03-24 11:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751792', 'tblTempVendorCDR_20' ) start [2025-03-24 11:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751792', 'tblTempVendorCDR_20' ) end [2025-03-24 11:17:24] Production.INFO: ProcessCDR(1,14751792,1,1,2) [2025-03-24 11:17:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:17:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:17:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:17:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:17:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751792', 'tblTempUsageDetail_20' ) start [2025-03-24 11:17:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751792', 'tblTempUsageDetail_20' ) end [2025-03-24 11:17:30] Production.ERROR: pbx prc_insertCDR start [2025-03-24 11:17:30] Production.ERROR: pbx prc_insertCDR end [2025-03-24 11:17:30] Production.INFO: ==23049== Releasing lock... [2025-03-24 11:17:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 11:17:30] Production.INFO: 69.75 MB #Memory Used# [2025-03-24 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 08:18:05 [end_date_ymd] => 2025-03-24 11:18:05 [RateCDR] => 1 ) [2025-03-24 11:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 08:18:05' and `end` < '2025-03-24 11:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 11:18:19] Production.INFO: count ==5578 [2025-03-24 11:18:22] Production.ERROR: pbx CDR StartTime 2025-03-24 08:18:05 - End Time 2025-03-24 11:18:05 [2025-03-24 11:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 11:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751797', 'tblTempUsageDetail_20' ) start [2025-03-24 11:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751797', 'tblTempUsageDetail_20' ) end [2025-03-24 11:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751797', 'tblTempVendorCDR_20' ) start [2025-03-24 11:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751797', 'tblTempVendorCDR_20' ) end [2025-03-24 11:18:22] Production.INFO: ProcessCDR(1,14751797,1,1,2) [2025-03-24 11:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751797', 'tblTempUsageDetail_20' ) start [2025-03-24 11:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751797', 'tblTempUsageDetail_20' ) end [2025-03-24 11:18:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 11:18:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 11:18:28] Production.INFO: ==23153== Releasing lock... [2025-03-24 11:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 11:18:28] Production.INFO: 69.75 MB #Memory Used# [2025-03-24 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 08:19:05 [end_date_ymd] => 2025-03-24 11:19:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 08:19:05' and `end` < '2025-03-24 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-03-24 11:19:19] Production.INFO: count ==5588 [2025-03-24 11:19:22] Production.ERROR: pbx CDR StartTime 2025-03-24 08:19:05 - End Time 2025-03-24 11:19:05 [2025-03-24 11:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 11:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751802', 'tblTempUsageDetail_20' ) start [2025-03-24 11:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751802', 'tblTempUsageDetail_20' ) end [2025-03-24 11:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751802', 'tblTempVendorCDR_20' ) start [2025-03-24 11:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751802', 'tblTempVendorCDR_20' ) end [2025-03-24 11:19:22] Production.INFO: ProcessCDR(1,14751802,1,1,2) [2025-03-24 11:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751802', 'tblTempUsageDetail_20' ) start [2025-03-24 11:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751802', 'tblTempUsageDetail_20' ) end [2025-03-24 11:19:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 11:19:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 11:19:28] Production.INFO: ==23262== Releasing lock... [2025-03-24 11:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 11:19:28] Production.INFO: 69.75 MB #Memory Used# [2025-03-24 11:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 08:20:07 [end_date_ymd] => 2025-03-24 11:20:07 [RateCDR] => 1 ) [2025-03-24 11:20: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-03-24 08:20:07' and `end` < '2025-03-24 11:20: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-03-24 11:20:20] Production.INFO: count ==5593 [2025-03-24 11:20:23] Production.ERROR: pbx CDR StartTime 2025-03-24 08:20:07 - End Time 2025-03-24 11:20:07 [2025-03-24 11:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 11:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751808', 'tblTempUsageDetail_20' ) start [2025-03-24 11:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751808', 'tblTempUsageDetail_20' ) end [2025-03-24 11:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751808', 'tblTempVendorCDR_20' ) start [2025-03-24 11:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751808', 'tblTempVendorCDR_20' ) end [2025-03-24 11:20:24] Production.INFO: ProcessCDR(1,14751808,1,1,2) [2025-03-24 11:20:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:20:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:20:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:20:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751808', 'tblTempUsageDetail_20' ) start [2025-03-24 11:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751808', 'tblTempUsageDetail_20' ) end [2025-03-24 11:20:29] Production.ERROR: pbx prc_insertCDR start [2025-03-24 11:20:29] Production.ERROR: pbx prc_insertCDR end [2025-03-24 11:20:29] Production.INFO: ==23369== Releasing lock... [2025-03-24 11:20:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 11:20:29] Production.INFO: 69.75 MB #Memory Used# [2025-03-24 11:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 08:21:06 [end_date_ymd] => 2025-03-24 11:21:06 [RateCDR] => 1 ) [2025-03-24 11: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-03-24 08:21:06' and `end` < '2025-03-24 11: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-03-24 11:21:19] Production.INFO: count ==5651 [2025-03-24 11:21:22] Production.ERROR: pbx CDR StartTime 2025-03-24 08:21:06 - End Time 2025-03-24 11:21:06 [2025-03-24 11:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 11:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751813', 'tblTempUsageDetail_20' ) start [2025-03-24 11:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751813', 'tblTempUsageDetail_20' ) end [2025-03-24 11:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751813', 'tblTempVendorCDR_20' ) start [2025-03-24 11:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751813', 'tblTempVendorCDR_20' ) end [2025-03-24 11:21:23] Production.INFO: ProcessCDR(1,14751813,1,1,2) [2025-03-24 11:21:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:21:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751813', 'tblTempUsageDetail_20' ) start [2025-03-24 11:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751813', 'tblTempUsageDetail_20' ) end [2025-03-24 11:21:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 11:21:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 11:21:28] Production.INFO: ==23475== Releasing lock... [2025-03-24 11:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 11:21:28] Production.INFO: 70.25 MB #Memory Used# [2025-03-24 11:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 08:22:06 [end_date_ymd] => 2025-03-24 11:22:06 [RateCDR] => 1 ) [2025-03-24 11: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-03-24 08:22:06' and `end` < '2025-03-24 11: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-03-24 11:22:19] Production.INFO: count ==5651 [2025-03-24 11:22:22] Production.ERROR: pbx CDR StartTime 2025-03-24 08:22:06 - End Time 2025-03-24 11:22:06 [2025-03-24 11:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 11:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751818', 'tblTempUsageDetail_20' ) start [2025-03-24 11:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751818', 'tblTempUsageDetail_20' ) end [2025-03-24 11:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751818', 'tblTempVendorCDR_20' ) start [2025-03-24 11:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751818', 'tblTempVendorCDR_20' ) end [2025-03-24 11:22:23] Production.INFO: ProcessCDR(1,14751818,1,1,2) [2025-03-24 11:22:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:22:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751818', 'tblTempUsageDetail_20' ) start [2025-03-24 11:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751818', 'tblTempUsageDetail_20' ) end [2025-03-24 11:22:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 11:22:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 11:22:28] Production.INFO: ==23590== Releasing lock... [2025-03-24 11:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 11:22:28] Production.INFO: 70.25 MB #Memory Used# [2025-03-24 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 08:23:05 [end_date_ymd] => 2025-03-24 11:23:05 [RateCDR] => 1 ) [2025-03-24 11:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 08:23:05' and `end` < '2025-03-24 11:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 11:23:19] Production.INFO: count ==5664 [2025-03-24 11:23:22] Production.ERROR: pbx CDR StartTime 2025-03-24 08:23:05 - End Time 2025-03-24 11:23:05 [2025-03-24 11:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 11:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751823', 'tblTempUsageDetail_20' ) start [2025-03-24 11:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751823', 'tblTempUsageDetail_20' ) end [2025-03-24 11:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751823', 'tblTempVendorCDR_20' ) start [2025-03-24 11:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751823', 'tblTempVendorCDR_20' ) end [2025-03-24 11:23:22] Production.INFO: ProcessCDR(1,14751823,1,1,2) [2025-03-24 11:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:23:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751823', 'tblTempUsageDetail_20' ) start [2025-03-24 11:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751823', 'tblTempUsageDetail_20' ) end [2025-03-24 11:23:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 11:23:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 11:23:28] Production.INFO: ==23735== Releasing lock... [2025-03-24 11:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 11:23:28] Production.INFO: 70.25 MB #Memory Used# [2025-03-24 11:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 08:24:06 [end_date_ymd] => 2025-03-24 11:24:06 [RateCDR] => 1 ) [2025-03-24 11: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-03-24 08:24:06' and `end` < '2025-03-24 11: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-03-24 11:24:20] Production.INFO: count ==5682 [2025-03-24 11:24:23] Production.ERROR: pbx CDR StartTime 2025-03-24 08:24:06 - End Time 2025-03-24 11:24:06 [2025-03-24 11:24:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 11:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751828', 'tblTempUsageDetail_20' ) start [2025-03-24 11:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751828', 'tblTempUsageDetail_20' ) end [2025-03-24 11:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751828', 'tblTempVendorCDR_20' ) start [2025-03-24 11:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751828', 'tblTempVendorCDR_20' ) end [2025-03-24 11:24:23] Production.INFO: ProcessCDR(1,14751828,1,1,2) [2025-03-24 11:24:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:24:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:24:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:24:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751828', 'tblTempUsageDetail_20' ) start [2025-03-24 11:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751828', 'tblTempUsageDetail_20' ) end [2025-03-24 11:24:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 11:24:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 11:24:28] Production.INFO: ==23836== Releasing lock... [2025-03-24 11:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 11:24:28] Production.INFO: 70.5 MB #Memory Used# [2025-03-24 11:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 08:25:06 [end_date_ymd] => 2025-03-24 11:25:06 [RateCDR] => 1 ) [2025-03-24 11: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-03-24 08:25:06' and `end` < '2025-03-24 11: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-03-24 11:25:19] Production.INFO: count ==5695 [2025-03-24 11:25:22] Production.ERROR: pbx CDR StartTime 2025-03-24 08:25:06 - End Time 2025-03-24 11:25:06 [2025-03-24 11:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751833', 'tblTempUsageDetail_20' ) start [2025-03-24 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751833', 'tblTempUsageDetail_20' ) end [2025-03-24 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751833', 'tblTempVendorCDR_20' ) start [2025-03-24 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751833', 'tblTempVendorCDR_20' ) end [2025-03-24 11:25:23] Production.INFO: ProcessCDR(1,14751833,1,1,2) [2025-03-24 11:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751833', 'tblTempUsageDetail_20' ) start [2025-03-24 11:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751833', 'tblTempUsageDetail_20' ) end [2025-03-24 11:25:29] Production.ERROR: pbx prc_insertCDR start [2025-03-24 11:25:29] Production.ERROR: pbx prc_insertCDR end [2025-03-24 11:25:29] Production.INFO: ==23936== Releasing lock... [2025-03-24 11:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 11:25:29] Production.INFO: 70.5 MB #Memory Used# [2025-03-24 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 08:26:05 [end_date_ymd] => 2025-03-24 11:26:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 08:26:05' and `end` < '2025-03-24 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-03-24 11:26:19] Production.INFO: count ==5721 [2025-03-24 11:26:22] Production.ERROR: pbx CDR StartTime 2025-03-24 08:26:05 - End Time 2025-03-24 11:26:05 [2025-03-24 11:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 11:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751838', 'tblTempUsageDetail_20' ) start [2025-03-24 11:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751838', 'tblTempUsageDetail_20' ) end [2025-03-24 11:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751838', 'tblTempVendorCDR_20' ) start [2025-03-24 11:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751838', 'tblTempVendorCDR_20' ) end [2025-03-24 11:26:22] Production.INFO: ProcessCDR(1,14751838,1,1,2) [2025-03-24 11:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:26:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751838', 'tblTempUsageDetail_20' ) start [2025-03-24 11:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751838', 'tblTempUsageDetail_20' ) end [2025-03-24 11:26:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 11:26:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 11:26:28] Production.INFO: ==24041== Releasing lock... [2025-03-24 11:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 11:26:28] Production.INFO: 70.75 MB #Memory Used# [2025-03-24 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 08:27:05 [end_date_ymd] => 2025-03-24 11:27:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 08:27:05' and `end` < '2025-03-24 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-03-24 11:27:19] Production.INFO: count ==5700 [2025-03-24 11:27:22] Production.ERROR: pbx CDR StartTime 2025-03-24 08:27:05 - End Time 2025-03-24 11:27:05 [2025-03-24 11:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 11:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751843', 'tblTempUsageDetail_20' ) start [2025-03-24 11:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751843', 'tblTempUsageDetail_20' ) end [2025-03-24 11:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751843', 'tblTempVendorCDR_20' ) start [2025-03-24 11:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751843', 'tblTempVendorCDR_20' ) end [2025-03-24 11:27:23] Production.INFO: ProcessCDR(1,14751843,1,1,2) [2025-03-24 11:27:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:27:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:27:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:27:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751843', 'tblTempUsageDetail_20' ) start [2025-03-24 11:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751843', 'tblTempUsageDetail_20' ) end [2025-03-24 11:27:29] Production.ERROR: pbx prc_insertCDR start [2025-03-24 11:27:29] Production.ERROR: pbx prc_insertCDR end [2025-03-24 11:27:29] Production.INFO: ==24141== Releasing lock... [2025-03-24 11:27:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 11:27:29] Production.INFO: 70.75 MB #Memory Used# [2025-03-24 11:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 08:28:06 [end_date_ymd] => 2025-03-24 11:28:06 [RateCDR] => 1 ) [2025-03-24 11: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-03-24 08:28:06' and `end` < '2025-03-24 11: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-03-24 11:28:19] Production.INFO: count ==5706 [2025-03-24 11:28:22] Production.ERROR: pbx CDR StartTime 2025-03-24 08:28:06 - End Time 2025-03-24 11:28:06 [2025-03-24 11:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 11:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751848', 'tblTempUsageDetail_20' ) start [2025-03-24 11:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751848', 'tblTempUsageDetail_20' ) end [2025-03-24 11:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751848', 'tblTempVendorCDR_20' ) start [2025-03-24 11:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751848', 'tblTempVendorCDR_20' ) end [2025-03-24 11:28:22] Production.INFO: ProcessCDR(1,14751848,1,1,2) [2025-03-24 11:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:28:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751848', 'tblTempUsageDetail_20' ) start [2025-03-24 11:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751848', 'tblTempUsageDetail_20' ) end [2025-03-24 11:28:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 11:28:29] Production.ERROR: pbx prc_insertCDR end [2025-03-24 11:28:29] Production.INFO: ==24244== Releasing lock... [2025-03-24 11:28:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 11:28:29] Production.INFO: 70.75 MB #Memory Used# [2025-03-24 11:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 08:29:06 [end_date_ymd] => 2025-03-24 11:29:06 [RateCDR] => 1 ) [2025-03-24 11: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-03-24 08:29:06' and `end` < '2025-03-24 11: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-03-24 11:29:20] Production.INFO: count ==5704 [2025-03-24 11:29:23] Production.ERROR: pbx CDR StartTime 2025-03-24 08:29:06 - End Time 2025-03-24 11:29:06 [2025-03-24 11:29:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 11:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751853', 'tblTempUsageDetail_20' ) start [2025-03-24 11:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751853', 'tblTempUsageDetail_20' ) end [2025-03-24 11:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751853', 'tblTempVendorCDR_20' ) start [2025-03-24 11:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751853', 'tblTempVendorCDR_20' ) end [2025-03-24 11:29:23] Production.INFO: ProcessCDR(1,14751853,1,1,2) [2025-03-24 11:29:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751853', 'tblTempUsageDetail_20' ) start [2025-03-24 11:29:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751853', 'tblTempUsageDetail_20' ) end [2025-03-24 11:29:29] Production.ERROR: pbx prc_insertCDR start [2025-03-24 11:29:29] Production.ERROR: pbx prc_insertCDR end [2025-03-24 11:29:29] Production.INFO: ==24343== Releasing lock... [2025-03-24 11:29:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 11:29:29] Production.INFO: 70.75 MB #Memory Used# [2025-03-24 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 08:30:06 [end_date_ymd] => 2025-03-24 11:30:06 [RateCDR] => 1 ) [2025-03-24 11:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 08:30:06' and `end` < '2025-03-24 11:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 11:30:20] Production.INFO: count ==5713 [2025-03-24 11:30:23] Production.ERROR: pbx CDR StartTime 2025-03-24 08:30:06 - End Time 2025-03-24 11:30:06 [2025-03-24 11:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 11:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751858', 'tblTempUsageDetail_20' ) start [2025-03-24 11:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751858', 'tblTempUsageDetail_20' ) end [2025-03-24 11:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751858', 'tblTempVendorCDR_20' ) start [2025-03-24 11:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751858', 'tblTempVendorCDR_20' ) end [2025-03-24 11:30:23] Production.INFO: ProcessCDR(1,14751858,1,1,2) [2025-03-24 11:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:30:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751858', 'tblTempUsageDetail_20' ) start [2025-03-24 11:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751858', 'tblTempUsageDetail_20' ) end [2025-03-24 11:30:29] Production.ERROR: pbx prc_insertCDR start [2025-03-24 11:30:29] Production.ERROR: pbx prc_insertCDR end [2025-03-24 11:30:29] Production.INFO: ==24441== Releasing lock... [2025-03-24 11:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 11:30:29] Production.INFO: 70.75 MB #Memory Used# [2025-03-24 11:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 08:31:06 [end_date_ymd] => 2025-03-24 11:31:06 [RateCDR] => 1 ) [2025-03-24 11: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-03-24 08:31:06' and `end` < '2025-03-24 11: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-03-24 11:31:20] Production.INFO: count ==5834 [2025-03-24 11:31:23] Production.ERROR: pbx CDR StartTime 2025-03-24 08:31:06 - End Time 2025-03-24 11:31:06 [2025-03-24 11:31:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 11:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751864', 'tblTempUsageDetail_20' ) start [2025-03-24 11:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751864', 'tblTempUsageDetail_20' ) end [2025-03-24 11:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751864', 'tblTempVendorCDR_20' ) start [2025-03-24 11:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751864', 'tblTempVendorCDR_20' ) end [2025-03-24 11:31:23] Production.INFO: ProcessCDR(1,14751864,1,1,2) [2025-03-24 11:31:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:31:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:31:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:31:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751864', 'tblTempUsageDetail_20' ) start [2025-03-24 11:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751864', 'tblTempUsageDetail_20' ) end [2025-03-24 11:31:29] Production.ERROR: pbx prc_insertCDR start [2025-03-24 11:31:29] Production.ERROR: pbx prc_insertCDR end [2025-03-24 11:31:29] Production.INFO: ==24543== Releasing lock... [2025-03-24 11:31:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 11:31:29] Production.INFO: 71.75 MB #Memory Used# [2025-03-24 11:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 08:32:06 [end_date_ymd] => 2025-03-24 11:32:06 [RateCDR] => 1 ) [2025-03-24 11: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-03-24 08:32:06' and `end` < '2025-03-24 11: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-03-24 11:32:20] Production.INFO: count ==5854 [2025-03-24 11:32:23] Production.ERROR: pbx CDR StartTime 2025-03-24 08:32:06 - End Time 2025-03-24 11:32:06 [2025-03-24 11:32:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 11:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751869', 'tblTempUsageDetail_20' ) start [2025-03-24 11:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751869', 'tblTempUsageDetail_20' ) end [2025-03-24 11:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751869', 'tblTempVendorCDR_20' ) start [2025-03-24 11:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751869', 'tblTempVendorCDR_20' ) end [2025-03-24 11:32:23] Production.INFO: ProcessCDR(1,14751869,1,1,2) [2025-03-24 11:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:32:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:32:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:32:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:32:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751869', 'tblTempUsageDetail_20' ) start [2025-03-24 11:32:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751869', 'tblTempUsageDetail_20' ) end [2025-03-24 11:32:29] Production.ERROR: pbx prc_insertCDR start [2025-03-24 11:32:29] Production.ERROR: pbx prc_insertCDR end [2025-03-24 11:32:29] Production.INFO: ==24650== Releasing lock... [2025-03-24 11:32:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 11:32:29] Production.INFO: 71.75 MB #Memory Used# [2025-03-24 11:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 08:33:06 [end_date_ymd] => 2025-03-24 11:33:06 [RateCDR] => 1 ) [2025-03-24 11:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 08:33:06' and `end` < '2025-03-24 11:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 11:33:19] Production.INFO: count ==5876 [2025-03-24 11:33:22] Production.ERROR: pbx CDR StartTime 2025-03-24 08:33:06 - End Time 2025-03-24 11:33:06 [2025-03-24 11:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 11:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751874', 'tblTempUsageDetail_20' ) start [2025-03-24 11:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751874', 'tblTempUsageDetail_20' ) end [2025-03-24 11:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751874', 'tblTempVendorCDR_20' ) start [2025-03-24 11:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751874', 'tblTempVendorCDR_20' ) end [2025-03-24 11:33:22] Production.INFO: ProcessCDR(1,14751874,1,1,2) [2025-03-24 11:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:33:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751874', 'tblTempUsageDetail_20' ) start [2025-03-24 11:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751874', 'tblTempUsageDetail_20' ) end [2025-03-24 11:33:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 11:33:29] Production.ERROR: pbx prc_insertCDR end [2025-03-24 11:33:29] Production.INFO: ==24750== Releasing lock... [2025-03-24 11:33:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 11:33:29] Production.INFO: 72 MB #Memory Used# [2025-03-24 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 08:34:05 [end_date_ymd] => 2025-03-24 11:34:05 [RateCDR] => 1 ) [2025-03-24 11:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 08:34:05' and `end` < '2025-03-24 11:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 11:34:19] Production.INFO: count ==5883 [2025-03-24 11:34:22] Production.ERROR: pbx CDR StartTime 2025-03-24 08:34:05 - End Time 2025-03-24 11:34:05 [2025-03-24 11:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 11:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751879', 'tblTempUsageDetail_20' ) start [2025-03-24 11:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751879', 'tblTempUsageDetail_20' ) end [2025-03-24 11:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751879', 'tblTempVendorCDR_20' ) start [2025-03-24 11:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751879', 'tblTempVendorCDR_20' ) end [2025-03-24 11:34:22] Production.INFO: ProcessCDR(1,14751879,1,1,2) [2025-03-24 11:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:34:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751879', 'tblTempUsageDetail_20' ) start [2025-03-24 11:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751879', 'tblTempUsageDetail_20' ) end [2025-03-24 11:34:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 11:34:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 11:34:28] Production.INFO: ==24849== Releasing lock... [2025-03-24 11:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 11:34:28] Production.INFO: 72 MB #Memory Used# [2025-03-24 11:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 08:35:06 [end_date_ymd] => 2025-03-24 11:35:06 [RateCDR] => 1 ) [2025-03-24 11: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-03-24 08:35:06' and `end` < '2025-03-24 11: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-03-24 11:35:20] Production.INFO: count ==5883 [2025-03-24 11:35:23] Production.ERROR: pbx CDR StartTime 2025-03-24 08:35:06 - End Time 2025-03-24 11:35:06 [2025-03-24 11:35:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 11:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751884', 'tblTempUsageDetail_20' ) start [2025-03-24 11:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751884', 'tblTempUsageDetail_20' ) end [2025-03-24 11:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751884', 'tblTempVendorCDR_20' ) start [2025-03-24 11:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751884', 'tblTempVendorCDR_20' ) end [2025-03-24 11:35:23] Production.INFO: ProcessCDR(1,14751884,1,1,2) [2025-03-24 11:35:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:35:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:35:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:35:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:35:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751884', 'tblTempUsageDetail_20' ) start [2025-03-24 11:35:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751884', 'tblTempUsageDetail_20' ) end [2025-03-24 11:35:29] Production.ERROR: pbx prc_insertCDR start [2025-03-24 11:35:29] Production.ERROR: pbx prc_insertCDR end [2025-03-24 11:35:29] Production.INFO: ==24957== Releasing lock... [2025-03-24 11:35:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 11:35:29] Production.INFO: 72 MB #Memory Used# [2025-03-24 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 08:36:05 [end_date_ymd] => 2025-03-24 11:36:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 08:36:05' and `end` < '2025-03-24 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-03-24 11:36:19] Production.INFO: count ==5879 [2025-03-24 11:36:22] Production.ERROR: pbx CDR StartTime 2025-03-24 08:36:05 - End Time 2025-03-24 11:36:05 [2025-03-24 11:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751889', 'tblTempUsageDetail_20' ) start [2025-03-24 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751889', 'tblTempUsageDetail_20' ) end [2025-03-24 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751889', 'tblTempVendorCDR_20' ) start [2025-03-24 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751889', 'tblTempVendorCDR_20' ) end [2025-03-24 11:36:22] Production.INFO: ProcessCDR(1,14751889,1,1,2) [2025-03-24 11:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751889', 'tblTempUsageDetail_20' ) start [2025-03-24 11:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751889', 'tblTempUsageDetail_20' ) end [2025-03-24 11:36:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 11:36:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 11:36:27] Production.INFO: ==25052== Releasing lock... [2025-03-24 11:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 11:36:27] Production.INFO: 72 MB #Memory Used# [2025-03-24 11:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 08:37:06 [end_date_ymd] => 2025-03-24 11:37:06 [RateCDR] => 1 ) [2025-03-24 11: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-03-24 08:37:06' and `end` < '2025-03-24 11: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-03-24 11:37:20] Production.INFO: count ==5863 [2025-03-24 11:37:23] Production.ERROR: pbx CDR StartTime 2025-03-24 08:37:06 - End Time 2025-03-24 11:37:06 [2025-03-24 11:37:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 11:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751894', 'tblTempUsageDetail_20' ) start [2025-03-24 11:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751894', 'tblTempUsageDetail_20' ) end [2025-03-24 11:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751894', 'tblTempVendorCDR_20' ) start [2025-03-24 11:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751894', 'tblTempVendorCDR_20' ) end [2025-03-24 11:37:23] Production.INFO: ProcessCDR(1,14751894,1,1,2) [2025-03-24 11:37:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751894', 'tblTempUsageDetail_20' ) start [2025-03-24 11:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751894', 'tblTempUsageDetail_20' ) end [2025-03-24 11:37:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 11:37:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 11:37:27] Production.INFO: ==25149== Releasing lock... [2025-03-24 11:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 11:37:27] Production.INFO: 71.75 MB #Memory Used# [2025-03-24 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 08:38:05 [end_date_ymd] => 2025-03-24 11:38:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 08:38:05' and `end` < '2025-03-24 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-03-24 11:38:19] Production.INFO: count ==5878 [2025-03-24 11:38:22] Production.ERROR: pbx CDR StartTime 2025-03-24 08:38:05 - End Time 2025-03-24 11:38:05 [2025-03-24 11:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 11:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751898', 'tblTempUsageDetail_20' ) start [2025-03-24 11:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751898', 'tblTempUsageDetail_20' ) end [2025-03-24 11:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751898', 'tblTempVendorCDR_20' ) start [2025-03-24 11:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751898', 'tblTempVendorCDR_20' ) end [2025-03-24 11:38:22] Production.INFO: ProcessCDR(1,14751898,1,1,2) [2025-03-24 11:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:38:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751898', 'tblTempUsageDetail_20' ) start [2025-03-24 11:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751898', 'tblTempUsageDetail_20' ) end [2025-03-24 11:38:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 11:38:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 11:38:28] Production.INFO: ==25281== Releasing lock... [2025-03-24 11:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 11:38:28] Production.INFO: 72 MB #Memory Used# [2025-03-24 11:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 08:39:06 [end_date_ymd] => 2025-03-24 11:39:06 [RateCDR] => 1 ) [2025-03-24 11: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-03-24 08:39:06' and `end` < '2025-03-24 11: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-03-24 11:39:19] Production.INFO: count ==5890 [2025-03-24 11:39:23] Production.ERROR: pbx CDR StartTime 2025-03-24 08:39:06 - End Time 2025-03-24 11:39:06 [2025-03-24 11:39:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 11:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751904', 'tblTempUsageDetail_20' ) start [2025-03-24 11:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751904', 'tblTempUsageDetail_20' ) end [2025-03-24 11:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751904', 'tblTempVendorCDR_20' ) start [2025-03-24 11:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751904', 'tblTempVendorCDR_20' ) end [2025-03-24 11:39:23] Production.INFO: ProcessCDR(1,14751904,1,1,2) [2025-03-24 11:39:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:39:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:39:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:39:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751904', 'tblTempUsageDetail_20' ) start [2025-03-24 11:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751904', 'tblTempUsageDetail_20' ) end [2025-03-24 11:39:29] Production.ERROR: pbx prc_insertCDR start [2025-03-24 11:39:29] Production.ERROR: pbx prc_insertCDR end [2025-03-24 11:39:29] Production.INFO: ==25389== Releasing lock... [2025-03-24 11:39:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 11:39:29] Production.INFO: 72 MB #Memory Used# [2025-03-24 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 08:40:06 [end_date_ymd] => 2025-03-24 11:40:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 08:40:06' and `end` < '2025-03-24 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-03-24 11:40:20] Production.INFO: count ==5908 [2025-03-24 11:40:23] Production.ERROR: pbx CDR StartTime 2025-03-24 08:40:06 - End Time 2025-03-24 11:40:06 [2025-03-24 11:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 11:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751910', 'tblTempUsageDetail_20' ) start [2025-03-24 11:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751910', 'tblTempUsageDetail_20' ) end [2025-03-24 11:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751910', 'tblTempVendorCDR_20' ) start [2025-03-24 11:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751910', 'tblTempVendorCDR_20' ) end [2025-03-24 11:40:23] Production.INFO: ProcessCDR(1,14751910,1,1,2) [2025-03-24 11:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:40:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751910', 'tblTempUsageDetail_20' ) start [2025-03-24 11:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751910', 'tblTempUsageDetail_20' ) end [2025-03-24 11:40:29] Production.ERROR: pbx prc_insertCDR start [2025-03-24 11:40:29] Production.ERROR: pbx prc_insertCDR end [2025-03-24 11:40:29] Production.INFO: ==25481== Releasing lock... [2025-03-24 11:40:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 11:40:29] Production.INFO: 72.25 MB #Memory Used# [2025-03-24 11:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 08:41:06 [end_date_ymd] => 2025-03-24 11:41:06 [RateCDR] => 1 ) [2025-03-24 11:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 08:41:06' and `end` < '2025-03-24 11:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 11:41:19] Production.INFO: count ==5987 [2025-03-24 11:41:22] Production.ERROR: pbx CDR StartTime 2025-03-24 08:41:06 - End Time 2025-03-24 11:41:06 [2025-03-24 11:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 11:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751915', 'tblTempUsageDetail_20' ) start [2025-03-24 11:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751915', 'tblTempUsageDetail_20' ) end [2025-03-24 11:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751915', 'tblTempVendorCDR_20' ) start [2025-03-24 11:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751915', 'tblTempVendorCDR_20' ) end [2025-03-24 11:41:23] Production.INFO: ProcessCDR(1,14751915,1,1,2) [2025-03-24 11:41:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:41:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751915', 'tblTempUsageDetail_20' ) start [2025-03-24 11:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751915', 'tblTempUsageDetail_20' ) end [2025-03-24 11:41:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 11:41:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 11:41:28] Production.INFO: ==25588== Releasing lock... [2025-03-24 11:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 11:41:28] Production.INFO: 72.75 MB #Memory Used# [2025-03-24 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 08:42:05 [end_date_ymd] => 2025-03-24 11:42:05 [RateCDR] => 1 ) [2025-03-24 11:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 08:42:05' and `end` < '2025-03-24 11:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 11:42:19] Production.INFO: count ==5996 [2025-03-24 11:42:22] Production.ERROR: pbx CDR StartTime 2025-03-24 08:42:05 - End Time 2025-03-24 11:42:05 [2025-03-24 11:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 11:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751920', 'tblTempUsageDetail_20' ) start [2025-03-24 11:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751920', 'tblTempUsageDetail_20' ) end [2025-03-24 11:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751920', 'tblTempVendorCDR_20' ) start [2025-03-24 11:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751920', 'tblTempVendorCDR_20' ) end [2025-03-24 11:42:22] Production.INFO: ProcessCDR(1,14751920,1,1,2) [2025-03-24 11:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751920', 'tblTempUsageDetail_20' ) start [2025-03-24 11:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751920', 'tblTempUsageDetail_20' ) end [2025-03-24 11:42:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 11:42:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 11:42:27] Production.INFO: ==25680== Releasing lock... [2025-03-24 11:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 11:42:27] Production.INFO: 73 MB #Memory Used# [2025-03-24 11:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 08:43:06 [end_date_ymd] => 2025-03-24 11:43:06 [RateCDR] => 1 ) [2025-03-24 11: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-03-24 08:43:06' and `end` < '2025-03-24 11: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-03-24 11:43:19] Production.INFO: count ==5983 [2025-03-24 11:43:22] Production.ERROR: pbx CDR StartTime 2025-03-24 08:43:06 - End Time 2025-03-24 11:43:06 [2025-03-24 11:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 11:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751925', 'tblTempUsageDetail_20' ) start [2025-03-24 11:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751925', 'tblTempUsageDetail_20' ) end [2025-03-24 11:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751925', 'tblTempVendorCDR_20' ) start [2025-03-24 11:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751925', 'tblTempVendorCDR_20' ) end [2025-03-24 11:43:22] Production.INFO: ProcessCDR(1,14751925,1,1,2) [2025-03-24 11:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:43:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751925', 'tblTempUsageDetail_20' ) start [2025-03-24 11:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751925', 'tblTempUsageDetail_20' ) end [2025-03-24 11:43:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 11:43:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 11:43:28] Production.INFO: ==25770== Releasing lock... [2025-03-24 11:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 11:43:28] Production.INFO: 72.75 MB #Memory Used# [2025-03-24 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 08:44:05 [end_date_ymd] => 2025-03-24 11:44:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 08:44:05' and `end` < '2025-03-24 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-03-24 11:44:19] Production.INFO: count ==5992 [2025-03-24 11:44:22] Production.ERROR: pbx CDR StartTime 2025-03-24 08:44:05 - End Time 2025-03-24 11:44:05 [2025-03-24 11:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 11:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751930', 'tblTempUsageDetail_20' ) start [2025-03-24 11:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751930', 'tblTempUsageDetail_20' ) end [2025-03-24 11:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751930', 'tblTempVendorCDR_20' ) start [2025-03-24 11:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751930', 'tblTempVendorCDR_20' ) end [2025-03-24 11:44:22] Production.INFO: ProcessCDR(1,14751930,1,1,2) [2025-03-24 11:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751930', 'tblTempUsageDetail_20' ) start [2025-03-24 11:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751930', 'tblTempUsageDetail_20' ) end [2025-03-24 11:44:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 11:44:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 11:44:28] Production.INFO: ==25856== Releasing lock... [2025-03-24 11:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 11:44:28] Production.INFO: 72.75 MB #Memory Used# [2025-03-24 11:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 08:45:06 [end_date_ymd] => 2025-03-24 11:45:06 [RateCDR] => 1 ) [2025-03-24 11: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-03-24 08:45:06' and `end` < '2025-03-24 11: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-03-24 11:45:19] Production.INFO: count ==6003 [2025-03-24 11:45:22] Production.ERROR: pbx CDR StartTime 2025-03-24 08:45:06 - End Time 2025-03-24 11:45:06 [2025-03-24 11:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 11:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751935', 'tblTempUsageDetail_20' ) start [2025-03-24 11:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751935', 'tblTempUsageDetail_20' ) end [2025-03-24 11:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751935', 'tblTempVendorCDR_20' ) start [2025-03-24 11:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751935', 'tblTempVendorCDR_20' ) end [2025-03-24 11:45:23] Production.INFO: ProcessCDR(1,14751935,1,1,2) [2025-03-24 11:45:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:45:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:45:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:45:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751935', 'tblTempUsageDetail_20' ) start [2025-03-24 11:45:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751935', 'tblTempUsageDetail_20' ) end [2025-03-24 11:45:29] Production.ERROR: pbx prc_insertCDR start [2025-03-24 11:45:29] Production.ERROR: pbx prc_insertCDR end [2025-03-24 11:45:29] Production.INFO: ==25945== Releasing lock... [2025-03-24 11:45:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 11:45:29] Production.INFO: 73 MB #Memory Used# [2025-03-24 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 08:46:05 [end_date_ymd] => 2025-03-24 11:46:05 [RateCDR] => 1 ) [2025-03-24 11:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 08:46:05' and `end` < '2025-03-24 11:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 11:46:18] Production.INFO: count ==5994 [2025-03-24 11:46:21] Production.ERROR: pbx CDR StartTime 2025-03-24 08:46:05 - End Time 2025-03-24 11:46:05 [2025-03-24 11:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751940', 'tblTempUsageDetail_20' ) start [2025-03-24 11:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751940', 'tblTempUsageDetail_20' ) end [2025-03-24 11:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751940', 'tblTempVendorCDR_20' ) start [2025-03-24 11:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751940', 'tblTempVendorCDR_20' ) end [2025-03-24 11:46:22] Production.INFO: ProcessCDR(1,14751940,1,1,2) [2025-03-24 11:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751940', 'tblTempUsageDetail_20' ) start [2025-03-24 11:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751940', 'tblTempUsageDetail_20' ) end [2025-03-24 11:46:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 11:46:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 11:46:27] Production.INFO: ==26031== Releasing lock... [2025-03-24 11:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 11:46:27] Production.INFO: 72.75 MB #Memory Used# [2025-03-24 11:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 08:47:06 [end_date_ymd] => 2025-03-24 11:47:06 [RateCDR] => 1 ) [2025-03-24 11: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-03-24 08:47:06' and `end` < '2025-03-24 11: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-03-24 11:47:20] Production.INFO: count ==6003 [2025-03-24 11:47:23] Production.ERROR: pbx CDR StartTime 2025-03-24 08:47:06 - End Time 2025-03-24 11:47:06 [2025-03-24 11:47:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 11:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751945', 'tblTempUsageDetail_20' ) start [2025-03-24 11:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751945', 'tblTempUsageDetail_20' ) end [2025-03-24 11:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751945', 'tblTempVendorCDR_20' ) start [2025-03-24 11:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751945', 'tblTempVendorCDR_20' ) end [2025-03-24 11:47:23] Production.INFO: ProcessCDR(1,14751945,1,1,2) [2025-03-24 11:47:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:47:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:47:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:47:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751945', 'tblTempUsageDetail_20' ) start [2025-03-24 11:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751945', 'tblTempUsageDetail_20' ) end [2025-03-24 11:47:29] Production.ERROR: pbx prc_insertCDR start [2025-03-24 11:47:29] Production.ERROR: pbx prc_insertCDR end [2025-03-24 11:47:29] Production.INFO: ==26126== Releasing lock... [2025-03-24 11:47:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 11:47:29] Production.INFO: 73 MB #Memory Used# [2025-03-24 11:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 08:48:06 [end_date_ymd] => 2025-03-24 11:48:06 [RateCDR] => 1 ) [2025-03-24 11: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-03-24 08:48:06' and `end` < '2025-03-24 11: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-03-24 11:48:19] Production.INFO: count ==6014 [2025-03-24 11:48:22] Production.ERROR: pbx CDR StartTime 2025-03-24 08:48:06 - End Time 2025-03-24 11:48:06 [2025-03-24 11:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 11:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751950', 'tblTempUsageDetail_20' ) start [2025-03-24 11:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751950', 'tblTempUsageDetail_20' ) end [2025-03-24 11:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751950', 'tblTempVendorCDR_20' ) start [2025-03-24 11:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751950', 'tblTempVendorCDR_20' ) end [2025-03-24 11:48:23] Production.INFO: ProcessCDR(1,14751950,1,1,2) [2025-03-24 11:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:48:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:48:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751950', 'tblTempUsageDetail_20' ) start [2025-03-24 11:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751950', 'tblTempUsageDetail_20' ) end [2025-03-24 11:48:29] Production.ERROR: pbx prc_insertCDR start [2025-03-24 11:48:29] Production.ERROR: pbx prc_insertCDR end [2025-03-24 11:48:29] Production.INFO: ==26215== Releasing lock... [2025-03-24 11:48:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 11:48:29] Production.INFO: 73 MB #Memory Used# [2025-03-24 11:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 08:49:06 [end_date_ymd] => 2025-03-24 11:49:06 [RateCDR] => 1 ) [2025-03-24 11: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-03-24 08:49:06' and `end` < '2025-03-24 11: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-03-24 11:49:19] Production.INFO: count ==6023 [2025-03-24 11:49:23] Production.ERROR: pbx CDR StartTime 2025-03-24 08:49:06 - End Time 2025-03-24 11:49:06 [2025-03-24 11:49:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 11:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751955', 'tblTempUsageDetail_20' ) start [2025-03-24 11:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751955', 'tblTempUsageDetail_20' ) end [2025-03-24 11:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751955', 'tblTempVendorCDR_20' ) start [2025-03-24 11:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751955', 'tblTempVendorCDR_20' ) end [2025-03-24 11:49:23] Production.INFO: ProcessCDR(1,14751955,1,1,2) [2025-03-24 11:49:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:49:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:49:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751955', 'tblTempUsageDetail_20' ) start [2025-03-24 11:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751955', 'tblTempUsageDetail_20' ) end [2025-03-24 11:49:29] Production.ERROR: pbx prc_insertCDR start [2025-03-24 11:49:29] Production.ERROR: pbx prc_insertCDR end [2025-03-24 11:49:29] Production.INFO: ==26305== Releasing lock... [2025-03-24 11:49:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 11:49:29] Production.INFO: 73 MB #Memory Used# [2025-03-24 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 08:50:06 [end_date_ymd] => 2025-03-24 11:50:06 [RateCDR] => 1 ) [2025-03-24 11:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 08:50:06' and `end` < '2025-03-24 11:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 11:50:20] Production.INFO: count ==6044 [2025-03-24 11:50:23] Production.ERROR: pbx CDR StartTime 2025-03-24 08:50:06 - End Time 2025-03-24 11:50:06 [2025-03-24 11:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 11:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751960', 'tblTempUsageDetail_20' ) start [2025-03-24 11:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751960', 'tblTempUsageDetail_20' ) end [2025-03-24 11:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751960', 'tblTempVendorCDR_20' ) start [2025-03-24 11:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751960', 'tblTempVendorCDR_20' ) end [2025-03-24 11:50:24] Production.INFO: ProcessCDR(1,14751960,1,1,2) [2025-03-24 11:50:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:50:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:50:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:50:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751960', 'tblTempUsageDetail_20' ) start [2025-03-24 11:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751960', 'tblTempUsageDetail_20' ) end [2025-03-24 11:50:29] Production.ERROR: pbx prc_insertCDR start [2025-03-24 11:50:29] Production.ERROR: pbx prc_insertCDR end [2025-03-24 11:50:29] Production.INFO: ==26390== Releasing lock... [2025-03-24 11:50:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 11:50:29] Production.INFO: 73.25 MB #Memory Used# [2025-03-24 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 08:51:05 [end_date_ymd] => 2025-03-24 11:51:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 08:51:05' and `end` < '2025-03-24 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-03-24 11:51:19] Production.INFO: count ==6146 [2025-03-24 11:51:22] Production.ERROR: pbx CDR StartTime 2025-03-24 08:51:05 - End Time 2025-03-24 11:51:05 [2025-03-24 11:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 11:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751966', 'tblTempUsageDetail_20' ) start [2025-03-24 11:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751966', 'tblTempUsageDetail_20' ) end [2025-03-24 11:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751966', 'tblTempVendorCDR_20' ) start [2025-03-24 11:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751966', 'tblTempVendorCDR_20' ) end [2025-03-24 11:51:22] Production.INFO: ProcessCDR(1,14751966,1,1,2) [2025-03-24 11:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751966', 'tblTempUsageDetail_20' ) start [2025-03-24 11:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751966', 'tblTempUsageDetail_20' ) end [2025-03-24 11:51:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 11:51:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 11:51:28] Production.INFO: ==26483== Releasing lock... [2025-03-24 11:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 11:51:28] Production.INFO: 74 MB #Memory Used# [2025-03-24 11:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 08:52:06 [end_date_ymd] => 2025-03-24 11:52:06 [RateCDR] => 1 ) [2025-03-24 11: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-03-24 08:52:06' and `end` < '2025-03-24 11: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-03-24 11:52:19] Production.INFO: count ==6147 [2025-03-24 11:52:23] Production.ERROR: pbx CDR StartTime 2025-03-24 08:52:06 - End Time 2025-03-24 11:52:06 [2025-03-24 11:52:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 11:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751971', 'tblTempUsageDetail_20' ) start [2025-03-24 11:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751971', 'tblTempUsageDetail_20' ) end [2025-03-24 11:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751971', 'tblTempVendorCDR_20' ) start [2025-03-24 11:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751971', 'tblTempVendorCDR_20' ) end [2025-03-24 11:52:23] Production.INFO: ProcessCDR(1,14751971,1,1,2) [2025-03-24 11:52:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:52:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:52:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:52:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751971', 'tblTempUsageDetail_20' ) start [2025-03-24 11:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751971', 'tblTempUsageDetail_20' ) end [2025-03-24 11:52:29] Production.ERROR: pbx prc_insertCDR start [2025-03-24 11:52:29] Production.ERROR: pbx prc_insertCDR end [2025-03-24 11:52:29] Production.INFO: ==26574== Releasing lock... [2025-03-24 11:52:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 11:52:29] Production.INFO: 74 MB #Memory Used# [2025-03-24 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 08:53:05 [end_date_ymd] => 2025-03-24 11:53:05 [RateCDR] => 1 ) [2025-03-24 11:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 08:53:05' and `end` < '2025-03-24 11:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 11:53:19] Production.INFO: count ==6148 [2025-03-24 11:53:22] Production.ERROR: pbx CDR StartTime 2025-03-24 08:53:05 - End Time 2025-03-24 11:53:05 [2025-03-24 11:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 11:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751976', 'tblTempUsageDetail_20' ) start [2025-03-24 11:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751976', 'tblTempUsageDetail_20' ) end [2025-03-24 11:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751976', 'tblTempVendorCDR_20' ) start [2025-03-24 11:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751976', 'tblTempVendorCDR_20' ) end [2025-03-24 11:53:22] Production.INFO: ProcessCDR(1,14751976,1,1,2) [2025-03-24 11:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751976', 'tblTempUsageDetail_20' ) start [2025-03-24 11:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751976', 'tblTempUsageDetail_20' ) end [2025-03-24 11:53:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 11:53:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 11:53:28] Production.INFO: ==26660== Releasing lock... [2025-03-24 11:53:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 11:53:28] Production.INFO: 74 MB #Memory Used# [2025-03-24 11:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 08:54:06 [end_date_ymd] => 2025-03-24 11:54:06 [RateCDR] => 1 ) [2025-03-24 11: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-03-24 08:54:06' and `end` < '2025-03-24 11: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-03-24 11:54:19] Production.INFO: count ==6176 [2025-03-24 11:54:23] Production.ERROR: pbx CDR StartTime 2025-03-24 08:54:06 - End Time 2025-03-24 11:54:06 [2025-03-24 11:54:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 11:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751981', 'tblTempUsageDetail_20' ) start [2025-03-24 11:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751981', 'tblTempUsageDetail_20' ) end [2025-03-24 11:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751981', 'tblTempVendorCDR_20' ) start [2025-03-24 11:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751981', 'tblTempVendorCDR_20' ) end [2025-03-24 11:54:23] Production.INFO: ProcessCDR(1,14751981,1,1,2) [2025-03-24 11:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:54:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:54:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:54:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751981', 'tblTempUsageDetail_20' ) start [2025-03-24 11:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751981', 'tblTempUsageDetail_20' ) end [2025-03-24 11:54:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 11:54:29] Production.ERROR: pbx prc_insertCDR end [2025-03-24 11:54:29] Production.INFO: ==26793== Releasing lock... [2025-03-24 11:54:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 11:54:29] Production.INFO: 74.25 MB #Memory Used# [2025-03-24 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 08:55:05 [end_date_ymd] => 2025-03-24 11:55:05 [RateCDR] => 1 ) [2025-03-24 11:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 08:55:05' and `end` < '2025-03-24 11:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 11:55:19] Production.INFO: count ==6178 [2025-03-24 11:55:22] Production.ERROR: pbx CDR StartTime 2025-03-24 08:55:05 - End Time 2025-03-24 11:55:05 [2025-03-24 11:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 11:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751986', 'tblTempUsageDetail_20' ) start [2025-03-24 11:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751986', 'tblTempUsageDetail_20' ) end [2025-03-24 11:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751986', 'tblTempVendorCDR_20' ) start [2025-03-24 11:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751986', 'tblTempVendorCDR_20' ) end [2025-03-24 11:55:22] Production.INFO: ProcessCDR(1,14751986,1,1,2) [2025-03-24 11:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751986', 'tblTempUsageDetail_20' ) start [2025-03-24 11:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751986', 'tblTempUsageDetail_20' ) end [2025-03-24 11:55:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 11:55:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 11:55:28] Production.INFO: ==26881== Releasing lock... [2025-03-24 11:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 11:55:28] Production.INFO: 74.25 MB #Memory Used# [2025-03-24 11:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 08:56:06 [end_date_ymd] => 2025-03-24 11:56:06 [RateCDR] => 1 ) [2025-03-24 11: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-03-24 08:56:06' and `end` < '2025-03-24 11: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-03-24 11:56:20] Production.INFO: count ==6196 [2025-03-24 11:56:23] Production.ERROR: pbx CDR StartTime 2025-03-24 08:56:06 - End Time 2025-03-24 11:56:06 [2025-03-24 11:56:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 11:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751991', 'tblTempUsageDetail_20' ) start [2025-03-24 11:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751991', 'tblTempUsageDetail_20' ) end [2025-03-24 11:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751991', 'tblTempVendorCDR_20' ) start [2025-03-24 11:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751991', 'tblTempVendorCDR_20' ) end [2025-03-24 11:56:23] Production.INFO: ProcessCDR(1,14751991,1,1,2) [2025-03-24 11:56:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:56:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:56:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751991', 'tblTempUsageDetail_20' ) start [2025-03-24 11:56:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751991', 'tblTempUsageDetail_20' ) end [2025-03-24 11:56:29] Production.ERROR: pbx prc_insertCDR start [2025-03-24 11:56:29] Production.ERROR: pbx prc_insertCDR end [2025-03-24 11:56:29] Production.INFO: ==26971== Releasing lock... [2025-03-24 11:56:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 11:56:29] Production.INFO: 74.5 MB #Memory Used# [2025-03-24 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 08:57:05 [end_date_ymd] => 2025-03-24 11:57:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 08:57:05' and `end` < '2025-03-24 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-03-24 11:57:19] Production.INFO: count ==6203 [2025-03-24 11:57:22] Production.ERROR: pbx CDR StartTime 2025-03-24 08:57:05 - End Time 2025-03-24 11:57:05 [2025-03-24 11:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 11:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751996', 'tblTempUsageDetail_20' ) start [2025-03-24 11:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14751996', 'tblTempUsageDetail_20' ) end [2025-03-24 11:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751996', 'tblTempVendorCDR_20' ) start [2025-03-24 11:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14751996', 'tblTempVendorCDR_20' ) end [2025-03-24 11:57:22] Production.INFO: ProcessCDR(1,14751996,1,1,2) [2025-03-24 11:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14751996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14751996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14751996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:57:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14751996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751996', 'tblTempUsageDetail_20' ) start [2025-03-24 11:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14751996', 'tblTempUsageDetail_20' ) end [2025-03-24 11:57:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 11:57:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 11:57:28] Production.INFO: ==27062== Releasing lock... [2025-03-24 11:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 11:57:28] Production.INFO: 74.5 MB #Memory Used# [2025-03-24 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 08:58:05 [end_date_ymd] => 2025-03-24 11:58:05 [RateCDR] => 1 ) [2025-03-24 11:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 08:58:05' and `end` < '2025-03-24 11:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 11:58:19] Production.INFO: count ==6198 [2025-03-24 11:58:22] Production.ERROR: pbx CDR StartTime 2025-03-24 08:58:05 - End Time 2025-03-24 11:58:05 [2025-03-24 11:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 11:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752001', 'tblTempUsageDetail_20' ) start [2025-03-24 11:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752001', 'tblTempUsageDetail_20' ) end [2025-03-24 11:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752001', 'tblTempVendorCDR_20' ) start [2025-03-24 11:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752001', 'tblTempVendorCDR_20' ) end [2025-03-24 11:58:23] Production.INFO: ProcessCDR(1,14752001,1,1,2) [2025-03-24 11:58:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:58:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752001', 'tblTempUsageDetail_20' ) start [2025-03-24 11:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752001', 'tblTempUsageDetail_20' ) end [2025-03-24 11:58:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 11:58:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 11:58:28] Production.INFO: ==27150== Releasing lock... [2025-03-24 11:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 11:58:28] Production.INFO: 74.5 MB #Memory Used# [2025-03-24 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 08:59:05 [end_date_ymd] => 2025-03-24 11:59:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 08:59:05' and `end` < '2025-03-24 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-03-24 11:59:19] Production.INFO: count ==6223 [2025-03-24 11:59:22] Production.ERROR: pbx CDR StartTime 2025-03-24 08:59:05 - End Time 2025-03-24 11:59:05 [2025-03-24 11:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 11:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752006', 'tblTempUsageDetail_20' ) start [2025-03-24 11:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752006', 'tblTempUsageDetail_20' ) end [2025-03-24 11:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752006', 'tblTempVendorCDR_20' ) start [2025-03-24 11:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752006', 'tblTempVendorCDR_20' ) end [2025-03-24 11:59:23] Production.INFO: ProcessCDR(1,14752006,1,1,2) [2025-03-24 11:59:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:59:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 11:59:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:59:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 11:59:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752006', 'tblTempUsageDetail_20' ) start [2025-03-24 11:59:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752006', 'tblTempUsageDetail_20' ) end [2025-03-24 11:59:29] Production.ERROR: pbx prc_insertCDR start [2025-03-24 11:59:29] Production.ERROR: pbx prc_insertCDR end [2025-03-24 11:59:29] Production.INFO: ==27237== Releasing lock... [2025-03-24 11:59:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 11:59:29] Production.INFO: 74.5 MB #Memory Used# [2025-03-24 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 09:00:06 [end_date_ymd] => 2025-03-24 12:00:06 [RateCDR] => 1 ) [2025-03-24 12:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 09:00:06' and `end` < '2025-03-24 12:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 12:00:20] Production.INFO: count ==6232 [2025-03-24 12:00:23] Production.ERROR: pbx CDR StartTime 2025-03-24 09:00:06 - End Time 2025-03-24 12:00:06 [2025-03-24 12:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752011', 'tblTempUsageDetail_20' ) start [2025-03-24 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752011', 'tblTempUsageDetail_20' ) end [2025-03-24 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752011', 'tblTempVendorCDR_20' ) start [2025-03-24 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752011', 'tblTempVendorCDR_20' ) end [2025-03-24 12:00:23] Production.INFO: ProcessCDR(1,14752011,1,1,2) [2025-03-24 12:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752011', 'tblTempUsageDetail_20' ) start [2025-03-24 12:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752011', 'tblTempUsageDetail_20' ) end [2025-03-24 12:00:29] Production.ERROR: pbx prc_insertCDR start [2025-03-24 12:00:29] Production.ERROR: pbx prc_insertCDR end [2025-03-24 12:00:29] Production.INFO: ==27328== Releasing lock... [2025-03-24 12:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 12:00:29] Production.INFO: 74.75 MB #Memory Used# [2025-03-24 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 09:01:05 [end_date_ymd] => 2025-03-24 12:01:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 09:01:05' and `end` < '2025-03-24 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-03-24 12:01:19] Production.INFO: count ==6333 [2025-03-24 12:01:22] Production.ERROR: pbx CDR StartTime 2025-03-24 09:01:05 - End Time 2025-03-24 12:01:05 [2025-03-24 12:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 12:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752017', 'tblTempUsageDetail_20' ) start [2025-03-24 12:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752017', 'tblTempUsageDetail_20' ) end [2025-03-24 12:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752017', 'tblTempVendorCDR_20' ) start [2025-03-24 12:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752017', 'tblTempVendorCDR_20' ) end [2025-03-24 12:01:22] Production.INFO: ProcessCDR(1,14752017,1,1,2) [2025-03-24 12:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:01:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752017', 'tblTempUsageDetail_20' ) start [2025-03-24 12:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752017', 'tblTempUsageDetail_20' ) end [2025-03-24 12:01:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 12:01:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 12:01:28] Production.INFO: ==27429== Releasing lock... [2025-03-24 12:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 12:01:28] Production.INFO: 75.5 MB #Memory Used# [2025-03-24 12:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 09:02:06 [end_date_ymd] => 2025-03-24 12:02:06 [RateCDR] => 1 ) [2025-03-24 12: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-03-24 09:02:06' and `end` < '2025-03-24 12: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-03-24 12:02:19] Production.INFO: count ==6342 [2025-03-24 12:02:23] Production.ERROR: pbx CDR StartTime 2025-03-24 09:02:06 - End Time 2025-03-24 12:02:06 [2025-03-24 12:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 12:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752022', 'tblTempUsageDetail_20' ) start [2025-03-24 12:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752022', 'tblTempUsageDetail_20' ) end [2025-03-24 12:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752022', 'tblTempVendorCDR_20' ) start [2025-03-24 12:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752022', 'tblTempVendorCDR_20' ) end [2025-03-24 12:02:23] Production.INFO: ProcessCDR(1,14752022,1,1,2) [2025-03-24 12:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:02:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752022', 'tblTempUsageDetail_20' ) start [2025-03-24 12:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752022', 'tblTempUsageDetail_20' ) end [2025-03-24 12:02:29] Production.ERROR: pbx prc_insertCDR start [2025-03-24 12:02:29] Production.ERROR: pbx prc_insertCDR end [2025-03-24 12:02:29] Production.INFO: ==27530== Releasing lock... [2025-03-24 12:02:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 12:02:29] Production.INFO: 75.5 MB #Memory Used# [2025-03-24 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 09:03:05 [end_date_ymd] => 2025-03-24 12:03:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 09:03:05' and `end` < '2025-03-24 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-03-24 12:03:19] Production.INFO: count ==6360 [2025-03-24 12:03:22] Production.ERROR: pbx CDR StartTime 2025-03-24 09:03:05 - End Time 2025-03-24 12:03:05 [2025-03-24 12:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 12:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752027', 'tblTempUsageDetail_20' ) start [2025-03-24 12:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752027', 'tblTempUsageDetail_20' ) end [2025-03-24 12:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752027', 'tblTempVendorCDR_20' ) start [2025-03-24 12:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752027', 'tblTempVendorCDR_20' ) end [2025-03-24 12:03:22] Production.INFO: ProcessCDR(1,14752027,1,1,2) [2025-03-24 12:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752027', 'tblTempUsageDetail_20' ) start [2025-03-24 12:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752027', 'tblTempUsageDetail_20' ) end [2025-03-24 12:03:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 12:03:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 12:03:28] Production.INFO: ==27620== Releasing lock... [2025-03-24 12:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 12:03:28] Production.INFO: 75.5 MB #Memory Used# [2025-03-24 12:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 09:04:06 [end_date_ymd] => 2025-03-24 12:04:06 [RateCDR] => 1 ) [2025-03-24 12: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-03-24 09:04:06' and `end` < '2025-03-24 12: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-03-24 12:04:19] Production.INFO: count ==6381 [2025-03-24 12:04:22] Production.ERROR: pbx CDR StartTime 2025-03-24 09:04:06 - End Time 2025-03-24 12:04:06 [2025-03-24 12:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752032', 'tblTempUsageDetail_20' ) start [2025-03-24 12:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752032', 'tblTempUsageDetail_20' ) end [2025-03-24 12:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752032', 'tblTempVendorCDR_20' ) start [2025-03-24 12:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752032', 'tblTempVendorCDR_20' ) end [2025-03-24 12:04:23] Production.INFO: ProcessCDR(1,14752032,1,1,2) [2025-03-24 12:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:04:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:04:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752032', 'tblTempUsageDetail_20' ) start [2025-03-24 12:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752032', 'tblTempUsageDetail_20' ) end [2025-03-24 12:04:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 12:04:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 12:04:28] Production.INFO: ==27711== Releasing lock... [2025-03-24 12:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 12:04:28] Production.INFO: 75.75 MB #Memory Used# [2025-03-24 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 09:05:05 [end_date_ymd] => 2025-03-24 12:05:05 [RateCDR] => 1 ) [2025-03-24 12:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 09:05:05' and `end` < '2025-03-24 12:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 12:05:18] Production.INFO: count ==6371 [2025-03-24 12:05:22] Production.ERROR: pbx CDR StartTime 2025-03-24 09:05:05 - End Time 2025-03-24 12:05:05 [2025-03-24 12:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 12:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752033', 'tblTempUsageDetail_20' ) start [2025-03-24 12:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752033', 'tblTempUsageDetail_20' ) end [2025-03-24 12:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752033', 'tblTempVendorCDR_20' ) start [2025-03-24 12:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752033', 'tblTempVendorCDR_20' ) end [2025-03-24 12:05:22] Production.INFO: ProcessCDR(1,14752033,1,1,2) [2025-03-24 12:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:05:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752033', 'tblTempUsageDetail_20' ) start [2025-03-24 12:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752033', 'tblTempUsageDetail_20' ) end [2025-03-24 12:05:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 12:05:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 12:05:28] Production.INFO: ==27799== Releasing lock... [2025-03-24 12:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 12:05:28] Production.INFO: 75.75 MB #Memory Used# [2025-03-24 12:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 09:06:06 [end_date_ymd] => 2025-03-24 12:06:06 [RateCDR] => 1 ) [2025-03-24 12: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-03-24 09:06:06' and `end` < '2025-03-24 12: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-03-24 12:06:20] Production.INFO: count ==6376 [2025-03-24 12:06:23] Production.ERROR: pbx CDR StartTime 2025-03-24 09:06:06 - End Time 2025-03-24 12:06:06 [2025-03-24 12:06:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 12:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752042', 'tblTempUsageDetail_20' ) start [2025-03-24 12:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752042', 'tblTempUsageDetail_20' ) end [2025-03-24 12:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752042', 'tblTempVendorCDR_20' ) start [2025-03-24 12:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752042', 'tblTempVendorCDR_20' ) end [2025-03-24 12:06:24] Production.INFO: ProcessCDR(1,14752042,1,1,2) [2025-03-24 12:06:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:06:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:06:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:06:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752042', 'tblTempUsageDetail_20' ) start [2025-03-24 12:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752042', 'tblTempUsageDetail_20' ) end [2025-03-24 12:06:29] Production.ERROR: pbx prc_insertCDR start [2025-03-24 12:06:29] Production.ERROR: pbx prc_insertCDR end [2025-03-24 12:06:29] Production.INFO: ==27886== Releasing lock... [2025-03-24 12:06:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 12:06:29] Production.INFO: 75.75 MB #Memory Used# [2025-03-24 12:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 09:07:06 [end_date_ymd] => 2025-03-24 12:07:06 [RateCDR] => 1 ) [2025-03-24 12: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-03-24 09:07:06' and `end` < '2025-03-24 12: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-03-24 12:07:20] Production.INFO: count ==6373 [2025-03-24 12:07:23] Production.ERROR: pbx CDR StartTime 2025-03-24 09:07:06 - End Time 2025-03-24 12:07:06 [2025-03-24 12:07:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 12:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752047', 'tblTempUsageDetail_20' ) start [2025-03-24 12:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752047', 'tblTempUsageDetail_20' ) end [2025-03-24 12:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752047', 'tblTempVendorCDR_20' ) start [2025-03-24 12:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752047', 'tblTempVendorCDR_20' ) end [2025-03-24 12:07:23] Production.INFO: ProcessCDR(1,14752047,1,1,2) [2025-03-24 12:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:07:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:07:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752047', 'tblTempUsageDetail_20' ) start [2025-03-24 12:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752047', 'tblTempUsageDetail_20' ) end [2025-03-24 12:07:29] Production.ERROR: pbx prc_insertCDR start [2025-03-24 12:07:29] Production.ERROR: pbx prc_insertCDR end [2025-03-24 12:07:29] Production.INFO: ==27973== Releasing lock... [2025-03-24 12:07:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 12:07:29] Production.INFO: 75.75 MB #Memory Used# [2025-03-24 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 09:08:05 [end_date_ymd] => 2025-03-24 12:08:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 09:08:05' and `end` < '2025-03-24 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-03-24 12:08:19] Production.INFO: count ==6382 [2025-03-24 12:08:22] Production.ERROR: pbx CDR StartTime 2025-03-24 09:08:05 - End Time 2025-03-24 12:08:05 [2025-03-24 12:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 12:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752052', 'tblTempUsageDetail_20' ) start [2025-03-24 12:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752052', 'tblTempUsageDetail_20' ) end [2025-03-24 12:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752052', 'tblTempVendorCDR_20' ) start [2025-03-24 12:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752052', 'tblTempVendorCDR_20' ) end [2025-03-24 12:08:22] Production.INFO: ProcessCDR(1,14752052,1,1,2) [2025-03-24 12:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752052', 'tblTempUsageDetail_20' ) start [2025-03-24 12:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752052', 'tblTempUsageDetail_20' ) end [2025-03-24 12:08:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 12:08:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 12:08:28] Production.INFO: ==28079== Releasing lock... [2025-03-24 12:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 12:08:28] Production.INFO: 75.75 MB #Memory Used# [2025-03-24 12:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 09:09:06 [end_date_ymd] => 2025-03-24 12:09:06 [RateCDR] => 1 ) [2025-03-24 12:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 09:09:06' and `end` < '2025-03-24 12:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 12:09:19] Production.INFO: count ==6373 [2025-03-24 12:09:22] Production.ERROR: pbx CDR StartTime 2025-03-24 09:09:06 - End Time 2025-03-24 12:09:06 [2025-03-24 12:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 12:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752057', 'tblTempUsageDetail_20' ) start [2025-03-24 12:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752057', 'tblTempUsageDetail_20' ) end [2025-03-24 12:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752057', 'tblTempVendorCDR_20' ) start [2025-03-24 12:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752057', 'tblTempVendorCDR_20' ) end [2025-03-24 12:09:22] Production.INFO: ProcessCDR(1,14752057,1,1,2) [2025-03-24 12:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752057', 'tblTempUsageDetail_20' ) start [2025-03-24 12:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752057', 'tblTempUsageDetail_20' ) end [2025-03-24 12:09:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 12:09:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 12:09:28] Production.INFO: ==28204== Releasing lock... [2025-03-24 12:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 12:09:28] Production.INFO: 75.75 MB #Memory Used# [2025-03-24 12:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 09:10:07 [end_date_ymd] => 2025-03-24 12:10:07 [RateCDR] => 1 ) [2025-03-24 12:10: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-03-24 09:10:07' and `end` < '2025-03-24 12:10: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-03-24 12:10:20] Production.INFO: count ==6354 [2025-03-24 12:10:23] Production.ERROR: pbx CDR StartTime 2025-03-24 09:10:07 - End Time 2025-03-24 12:10:07 [2025-03-24 12:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 12:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752063', 'tblTempUsageDetail_20' ) start [2025-03-24 12:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752063', 'tblTempUsageDetail_20' ) end [2025-03-24 12:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752063', 'tblTempVendorCDR_20' ) start [2025-03-24 12:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752063', 'tblTempVendorCDR_20' ) end [2025-03-24 12:10:23] Production.INFO: ProcessCDR(1,14752063,1,1,2) [2025-03-24 12:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:10:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752063', 'tblTempUsageDetail_20' ) start [2025-03-24 12:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752063', 'tblTempUsageDetail_20' ) end [2025-03-24 12:10:29] Production.ERROR: pbx prc_insertCDR start [2025-03-24 12:10:29] Production.ERROR: pbx prc_insertCDR end [2025-03-24 12:10:29] Production.INFO: ==28293== Releasing lock... [2025-03-24 12:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 12:10:29] Production.INFO: 75.5 MB #Memory Used# [2025-03-24 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 09:11:05 [end_date_ymd] => 2025-03-24 12:11:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 09:11:05' and `end` < '2025-03-24 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-03-24 12:11:19] Production.INFO: count ==6380 [2025-03-24 12:11:22] Production.ERROR: pbx CDR StartTime 2025-03-24 09:11:05 - End Time 2025-03-24 12:11:05 [2025-03-24 12:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 12:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752068', 'tblTempUsageDetail_20' ) start [2025-03-24 12:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752068', 'tblTempUsageDetail_20' ) end [2025-03-24 12:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752068', 'tblTempVendorCDR_20' ) start [2025-03-24 12:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752068', 'tblTempVendorCDR_20' ) end [2025-03-24 12:11:22] Production.INFO: ProcessCDR(1,14752068,1,1,2) [2025-03-24 12:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752068', 'tblTempUsageDetail_20' ) start [2025-03-24 12:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752068', 'tblTempUsageDetail_20' ) end [2025-03-24 12:11:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 12:11:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 12:11:28] Production.INFO: ==28384== Releasing lock... [2025-03-24 12:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 12:11:28] Production.INFO: 75.75 MB #Memory Used# [2025-03-24 12:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 09:12:06 [end_date_ymd] => 2025-03-24 12:12:06 [RateCDR] => 1 ) [2025-03-24 12: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-03-24 09:12:06' and `end` < '2025-03-24 12: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-03-24 12:12:19] Production.INFO: count ==6364 [2025-03-24 12:12:22] Production.ERROR: pbx CDR StartTime 2025-03-24 09:12:06 - End Time 2025-03-24 12:12:06 [2025-03-24 12:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 12:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752073', 'tblTempUsageDetail_20' ) start [2025-03-24 12:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752073', 'tblTempUsageDetail_20' ) end [2025-03-24 12:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752073', 'tblTempVendorCDR_20' ) start [2025-03-24 12:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752073', 'tblTempVendorCDR_20' ) end [2025-03-24 12:12:22] Production.INFO: ProcessCDR(1,14752073,1,1,2) [2025-03-24 12:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752073', 'tblTempUsageDetail_20' ) start [2025-03-24 12:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752073', 'tblTempUsageDetail_20' ) end [2025-03-24 12:12:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 12:12:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 12:12:28] Production.INFO: ==28473== Releasing lock... [2025-03-24 12:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 12:12:28] Production.INFO: 75.75 MB #Memory Used# [2025-03-24 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 09:13:05 [end_date_ymd] => 2025-03-24 12:13:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 09:13:05' and `end` < '2025-03-24 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-03-24 12:13:19] Production.INFO: count ==6359 [2025-03-24 12:13:22] Production.ERROR: pbx CDR StartTime 2025-03-24 09:13:05 - End Time 2025-03-24 12:13:05 [2025-03-24 12:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 12:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752078', 'tblTempUsageDetail_20' ) start [2025-03-24 12:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752078', 'tblTempUsageDetail_20' ) end [2025-03-24 12:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752078', 'tblTempVendorCDR_20' ) start [2025-03-24 12:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752078', 'tblTempVendorCDR_20' ) end [2025-03-24 12:13:22] Production.INFO: ProcessCDR(1,14752078,1,1,2) [2025-03-24 12:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752078', 'tblTempUsageDetail_20' ) start [2025-03-24 12:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752078', 'tblTempUsageDetail_20' ) end [2025-03-24 12:13:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 12:13:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 12:13:28] Production.INFO: ==28559== Releasing lock... [2025-03-24 12:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 12:13:28] Production.INFO: 75.5 MB #Memory Used# [2025-03-24 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 09:14:05 [end_date_ymd] => 2025-03-24 12:14:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 09:14:05' and `end` < '2025-03-24 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-03-24 12:14:19] Production.INFO: count ==6332 [2025-03-24 12:14:22] Production.ERROR: pbx CDR StartTime 2025-03-24 09:14:05 - End Time 2025-03-24 12:14:05 [2025-03-24 12:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752083', 'tblTempUsageDetail_20' ) start [2025-03-24 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752083', 'tblTempUsageDetail_20' ) end [2025-03-24 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752083', 'tblTempVendorCDR_20' ) start [2025-03-24 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752083', 'tblTempVendorCDR_20' ) end [2025-03-24 12:14:22] Production.INFO: ProcessCDR(1,14752083,1,1,2) [2025-03-24 12:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752083', 'tblTempUsageDetail_20' ) start [2025-03-24 12:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752083', 'tblTempUsageDetail_20' ) end [2025-03-24 12:14:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 12:14:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 12:14:27] Production.INFO: ==28650== Releasing lock... [2025-03-24 12:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 12:14:27] Production.INFO: 75.5 MB #Memory Used# [2025-03-24 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 09:15:05 [end_date_ymd] => 2025-03-24 12:15:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 09:15:05' and `end` < '2025-03-24 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-03-24 12:15:19] Production.INFO: count ==6338 [2025-03-24 12:15:22] Production.ERROR: pbx CDR StartTime 2025-03-24 09:15:05 - End Time 2025-03-24 12:15:05 [2025-03-24 12:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752088', 'tblTempUsageDetail_20' ) start [2025-03-24 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752088', 'tblTempUsageDetail_20' ) end [2025-03-24 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752088', 'tblTempVendorCDR_20' ) start [2025-03-24 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752088', 'tblTempVendorCDR_20' ) end [2025-03-24 12:15:22] Production.INFO: ProcessCDR(1,14752088,1,1,2) [2025-03-24 12:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752088', 'tblTempUsageDetail_20' ) start [2025-03-24 12:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752088', 'tblTempUsageDetail_20' ) end [2025-03-24 12:15:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 12:15:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 12:15:27] Production.INFO: ==28737== Releasing lock... [2025-03-24 12:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 12:15:27] Production.INFO: 75.5 MB #Memory Used# [2025-03-24 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 09:16:05 [end_date_ymd] => 2025-03-24 12:16:05 [RateCDR] => 1 ) [2025-03-24 12:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 09:16:05' and `end` < '2025-03-24 12:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 12:16:19] Production.INFO: count ==6338 [2025-03-24 12:16:22] Production.ERROR: pbx CDR StartTime 2025-03-24 09:16:05 - End Time 2025-03-24 12:16:05 [2025-03-24 12:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 12:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752093', 'tblTempUsageDetail_20' ) start [2025-03-24 12:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752093', 'tblTempUsageDetail_20' ) end [2025-03-24 12:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752093', 'tblTempVendorCDR_20' ) start [2025-03-24 12:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752093', 'tblTempVendorCDR_20' ) end [2025-03-24 12:16:22] Production.INFO: ProcessCDR(1,14752093,1,1,2) [2025-03-24 12:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752093', 'tblTempUsageDetail_20' ) start [2025-03-24 12:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752093', 'tblTempUsageDetail_20' ) end [2025-03-24 12:16:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 12:16:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 12:16:28] Production.INFO: ==28823== Releasing lock... [2025-03-24 12:16:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 12:16:28] Production.INFO: 75.5 MB #Memory Used# [2025-03-24 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 09:17:05 [end_date_ymd] => 2025-03-24 12:17:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 09:17:05' and `end` < '2025-03-24 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-03-24 12:17:19] Production.INFO: count ==6345 [2025-03-24 12:17:22] Production.ERROR: pbx CDR StartTime 2025-03-24 09:17:05 - End Time 2025-03-24 12:17:05 [2025-03-24 12:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752098', 'tblTempUsageDetail_20' ) start [2025-03-24 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752098', 'tblTempUsageDetail_20' ) end [2025-03-24 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752098', 'tblTempVendorCDR_20' ) start [2025-03-24 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752098', 'tblTempVendorCDR_20' ) end [2025-03-24 12:17:22] Production.INFO: ProcessCDR(1,14752098,1,1,2) [2025-03-24 12:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752098', 'tblTempUsageDetail_20' ) start [2025-03-24 12:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752098', 'tblTempUsageDetail_20' ) end [2025-03-24 12:17:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 12:17:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 12:17:27] Production.INFO: ==28914== Releasing lock... [2025-03-24 12:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 12:17:27] Production.INFO: 75.5 MB #Memory Used# [2025-03-24 12:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 09:18:06 [end_date_ymd] => 2025-03-24 12:18:06 [RateCDR] => 1 ) [2025-03-24 12: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-03-24 09:18:06' and `end` < '2025-03-24 12: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-03-24 12:18:19] Production.INFO: count ==6334 [2025-03-24 12:18:22] Production.ERROR: pbx CDR StartTime 2025-03-24 09:18:06 - End Time 2025-03-24 12:18:06 [2025-03-24 12:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 12:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752103', 'tblTempUsageDetail_20' ) start [2025-03-24 12:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752103', 'tblTempUsageDetail_20' ) end [2025-03-24 12:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752103', 'tblTempVendorCDR_20' ) start [2025-03-24 12:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752103', 'tblTempVendorCDR_20' ) end [2025-03-24 12:18:23] Production.INFO: ProcessCDR(1,14752103,1,1,2) [2025-03-24 12:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752103', 'tblTempUsageDetail_20' ) start [2025-03-24 12:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752103', 'tblTempUsageDetail_20' ) end [2025-03-24 12:18:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 12:18:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 12:18:28] Production.INFO: ==29003== Releasing lock... [2025-03-24 12:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 12:18:28] Production.INFO: 75.5 MB #Memory Used# [2025-03-24 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 09:19:05 [end_date_ymd] => 2025-03-24 12:19:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 09:19:05' and `end` < '2025-03-24 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-03-24 12:19:19] Production.INFO: count ==6326 [2025-03-24 12:19:22] Production.ERROR: pbx CDR StartTime 2025-03-24 09:19:05 - End Time 2025-03-24 12:19:05 [2025-03-24 12:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 12:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752108', 'tblTempUsageDetail_20' ) start [2025-03-24 12:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752108', 'tblTempUsageDetail_20' ) end [2025-03-24 12:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752108', 'tblTempVendorCDR_20' ) start [2025-03-24 12:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752108', 'tblTempVendorCDR_20' ) end [2025-03-24 12:19:22] Production.INFO: ProcessCDR(1,14752108,1,1,2) [2025-03-24 12:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752108', 'tblTempUsageDetail_20' ) start [2025-03-24 12:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752108', 'tblTempUsageDetail_20' ) end [2025-03-24 12:19:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 12:19:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 12:19:27] Production.INFO: ==29092== Releasing lock... [2025-03-24 12:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 12:19:27] Production.INFO: 75.25 MB #Memory Used# [2025-03-24 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 09:20:06 [end_date_ymd] => 2025-03-24 12:20:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 09:20:06' and `end` < '2025-03-24 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-03-24 12:20:20] Production.INFO: count ==6313 [2025-03-24 12:20:23] Production.ERROR: pbx CDR StartTime 2025-03-24 09:20:06 - End Time 2025-03-24 12:20:06 [2025-03-24 12:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 12:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752114', 'tblTempUsageDetail_20' ) start [2025-03-24 12:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752114', 'tblTempUsageDetail_20' ) end [2025-03-24 12:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752114', 'tblTempVendorCDR_20' ) start [2025-03-24 12:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752114', 'tblTempVendorCDR_20' ) end [2025-03-24 12:20:23] Production.INFO: ProcessCDR(1,14752114,1,1,2) [2025-03-24 12:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752114', 'tblTempUsageDetail_20' ) start [2025-03-24 12:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752114', 'tblTempUsageDetail_20' ) end [2025-03-24 12:20:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 12:20:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 12:20:28] Production.INFO: ==29182== Releasing lock... [2025-03-24 12:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 12:20:28] Production.INFO: 75.25 MB #Memory Used# [2025-03-24 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 09:21:05 [end_date_ymd] => 2025-03-24 12:21:05 [RateCDR] => 1 ) [2025-03-24 12:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 09:21:05' and `end` < '2025-03-24 12:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 12:21:19] Production.INFO: count ==6340 [2025-03-24 12:21:22] Production.ERROR: pbx CDR StartTime 2025-03-24 09:21:05 - End Time 2025-03-24 12:21:05 [2025-03-24 12:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 12:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752119', 'tblTempUsageDetail_20' ) start [2025-03-24 12:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752119', 'tblTempUsageDetail_20' ) end [2025-03-24 12:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752119', 'tblTempVendorCDR_20' ) start [2025-03-24 12:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752119', 'tblTempVendorCDR_20' ) end [2025-03-24 12:21:22] Production.INFO: ProcessCDR(1,14752119,1,1,2) [2025-03-24 12:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752119', 'tblTempUsageDetail_20' ) start [2025-03-24 12:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752119', 'tblTempUsageDetail_20' ) end [2025-03-24 12:21:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 12:21:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 12:21:27] Production.INFO: ==29272== Releasing lock... [2025-03-24 12:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 12:21:27] Production.INFO: 75.5 MB #Memory Used# [2025-03-24 12:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 09:22:06 [end_date_ymd] => 2025-03-24 12:22:06 [RateCDR] => 1 ) [2025-03-24 12: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-03-24 09:22:06' and `end` < '2025-03-24 12: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-03-24 12:22:20] Production.INFO: count ==6364 [2025-03-24 12:22:23] Production.ERROR: pbx CDR StartTime 2025-03-24 09:22:06 - End Time 2025-03-24 12:22:06 [2025-03-24 12:22:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 12:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752124', 'tblTempUsageDetail_20' ) start [2025-03-24 12:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752124', 'tblTempUsageDetail_20' ) end [2025-03-24 12:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752124', 'tblTempVendorCDR_20' ) start [2025-03-24 12:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752124', 'tblTempVendorCDR_20' ) end [2025-03-24 12:22:23] Production.INFO: ProcessCDR(1,14752124,1,1,2) [2025-03-24 12:22:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:22:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752124', 'tblTempUsageDetail_20' ) start [2025-03-24 12:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752124', 'tblTempUsageDetail_20' ) end [2025-03-24 12:22:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 12:22:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 12:22:28] Production.INFO: ==29357== Releasing lock... [2025-03-24 12:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 12:22:28] Production.INFO: 75.75 MB #Memory Used# [2025-03-24 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 09:23:05 [end_date_ymd] => 2025-03-24 12:23:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 09:23:05' and `end` < '2025-03-24 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-03-24 12:23:19] Production.INFO: count ==6345 [2025-03-24 12:23:21] Production.ERROR: pbx CDR StartTime 2025-03-24 09:23:05 - End Time 2025-03-24 12:23:05 [2025-03-24 12:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752129', 'tblTempUsageDetail_20' ) start [2025-03-24 12:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752129', 'tblTempUsageDetail_20' ) end [2025-03-24 12:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752129', 'tblTempVendorCDR_20' ) start [2025-03-24 12:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752129', 'tblTempVendorCDR_20' ) end [2025-03-24 12:23:22] Production.INFO: ProcessCDR(1,14752129,1,1,2) [2025-03-24 12:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752129', 'tblTempUsageDetail_20' ) start [2025-03-24 12:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752129', 'tblTempUsageDetail_20' ) end [2025-03-24 12:23:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 12:23:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 12:23:27] Production.INFO: ==29445== Releasing lock... [2025-03-24 12:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 12:23:27] Production.INFO: 75.5 MB #Memory Used# [2025-03-24 12:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 09:24:06 [end_date_ymd] => 2025-03-24 12:24:06 [RateCDR] => 1 ) [2025-03-24 12: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-03-24 09:24:06' and `end` < '2025-03-24 12: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-03-24 12:24:19] Production.INFO: count ==6343 [2025-03-24 12:24:22] Production.ERROR: pbx CDR StartTime 2025-03-24 09:24:06 - End Time 2025-03-24 12:24:06 [2025-03-24 12:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 12:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752134', 'tblTempUsageDetail_20' ) start [2025-03-24 12:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752134', 'tblTempUsageDetail_20' ) end [2025-03-24 12:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752134', 'tblTempVendorCDR_20' ) start [2025-03-24 12:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752134', 'tblTempVendorCDR_20' ) end [2025-03-24 12:24:23] Production.INFO: ProcessCDR(1,14752134,1,1,2) [2025-03-24 12:24:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:24:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:24:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:24:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752134', 'tblTempUsageDetail_20' ) start [2025-03-24 12:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752134', 'tblTempUsageDetail_20' ) end [2025-03-24 12:24:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 12:24:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 12:24:28] Production.INFO: ==29531== Releasing lock... [2025-03-24 12:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 12:24:28] Production.INFO: 75.5 MB #Memory Used# [2025-03-24 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 09:25:05 [end_date_ymd] => 2025-03-24 12:25:05 [RateCDR] => 1 ) [2025-03-24 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 09:25:05' and `end` < '2025-03-24 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 12:25:18] Production.INFO: count ==6329 [2025-03-24 12:25:21] Production.ERROR: pbx CDR StartTime 2025-03-24 09:25:05 - End Time 2025-03-24 12:25:05 [2025-03-24 12:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752139', 'tblTempUsageDetail_20' ) start [2025-03-24 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752139', 'tblTempUsageDetail_20' ) end [2025-03-24 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752139', 'tblTempVendorCDR_20' ) start [2025-03-24 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752139', 'tblTempVendorCDR_20' ) end [2025-03-24 12:25:21] Production.INFO: ProcessCDR(1,14752139,1,1,2) [2025-03-24 12:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752139', 'tblTempUsageDetail_20' ) start [2025-03-24 12:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752139', 'tblTempUsageDetail_20' ) end [2025-03-24 12:25:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 12:25:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 12:25:26] Production.INFO: ==29655== Releasing lock... [2025-03-24 12:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 12:25:26] Production.INFO: 75.5 MB #Memory Used# [2025-03-24 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 09:26:05 [end_date_ymd] => 2025-03-24 12:26:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 09:26:05' and `end` < '2025-03-24 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-03-24 12:26:19] Production.INFO: count ==6298 [2025-03-24 12:26:22] Production.ERROR: pbx CDR StartTime 2025-03-24 09:26:05 - End Time 2025-03-24 12:26:05 [2025-03-24 12:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752143', 'tblTempUsageDetail_20' ) start [2025-03-24 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752143', 'tblTempUsageDetail_20' ) end [2025-03-24 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752143', 'tblTempVendorCDR_20' ) start [2025-03-24 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752143', 'tblTempVendorCDR_20' ) end [2025-03-24 12:26:22] Production.INFO: ProcessCDR(1,14752143,1,1,2) [2025-03-24 12:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752143', 'tblTempUsageDetail_20' ) start [2025-03-24 12:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752143', 'tblTempUsageDetail_20' ) end [2025-03-24 12:26:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 12:26:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 12:26:28] Production.INFO: ==29743== Releasing lock... [2025-03-24 12:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 12:26:28] Production.INFO: 75.25 MB #Memory Used# [2025-03-24 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 09:27:05 [end_date_ymd] => 2025-03-24 12:27:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 09:27:05' and `end` < '2025-03-24 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-03-24 12:27:19] Production.INFO: count ==6294 [2025-03-24 12:27:22] Production.ERROR: pbx CDR StartTime 2025-03-24 09:27:05 - End Time 2025-03-24 12:27:05 [2025-03-24 12:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 12:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752149', 'tblTempUsageDetail_20' ) start [2025-03-24 12:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752149', 'tblTempUsageDetail_20' ) end [2025-03-24 12:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752149', 'tblTempVendorCDR_20' ) start [2025-03-24 12:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752149', 'tblTempVendorCDR_20' ) end [2025-03-24 12:27:22] Production.INFO: ProcessCDR(1,14752149,1,1,2) [2025-03-24 12:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752149', 'tblTempUsageDetail_20' ) start [2025-03-24 12:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752149', 'tblTempUsageDetail_20' ) end [2025-03-24 12:27:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 12:27:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 12:27:27] Production.INFO: ==29830== Releasing lock... [2025-03-24 12:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 12:27:27] Production.INFO: 75.25 MB #Memory Used# [2025-03-24 12:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 09:28:06 [end_date_ymd] => 2025-03-24 12:28:06 [RateCDR] => 1 ) [2025-03-24 12: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-03-24 09:28:06' and `end` < '2025-03-24 12: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-03-24 12:28:19] Production.INFO: count ==6250 [2025-03-24 12:28:22] Production.ERROR: pbx CDR StartTime 2025-03-24 09:28:06 - End Time 2025-03-24 12:28:06 [2025-03-24 12:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 12:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752154', 'tblTempUsageDetail_20' ) start [2025-03-24 12:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752154', 'tblTempUsageDetail_20' ) end [2025-03-24 12:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752154', 'tblTempVendorCDR_20' ) start [2025-03-24 12:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752154', 'tblTempVendorCDR_20' ) end [2025-03-24 12:28:22] Production.INFO: ProcessCDR(1,14752154,1,1,2) [2025-03-24 12:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752154', 'tblTempUsageDetail_20' ) start [2025-03-24 12:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752154', 'tblTempUsageDetail_20' ) end [2025-03-24 12:28:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 12:28:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 12:28:27] Production.INFO: ==29915== Releasing lock... [2025-03-24 12:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 12:28:27] Production.INFO: 74.75 MB #Memory Used# [2025-03-24 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 09:29:05 [end_date_ymd] => 2025-03-24 12:29:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 09:29:05' and `end` < '2025-03-24 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-03-24 12:29:19] Production.INFO: count ==6192 [2025-03-24 12:29:22] Production.ERROR: pbx CDR StartTime 2025-03-24 09:29:05 - End Time 2025-03-24 12:29:05 [2025-03-24 12:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752159', 'tblTempUsageDetail_20' ) start [2025-03-24 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752159', 'tblTempUsageDetail_20' ) end [2025-03-24 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752159', 'tblTempVendorCDR_20' ) start [2025-03-24 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752159', 'tblTempVendorCDR_20' ) end [2025-03-24 12:29:22] Production.INFO: ProcessCDR(1,14752159,1,1,2) [2025-03-24 12:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752159', 'tblTempUsageDetail_20' ) start [2025-03-24 12:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752159', 'tblTempUsageDetail_20' ) end [2025-03-24 12:29:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 12:29:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 12:29:27] Production.INFO: ==30003== Releasing lock... [2025-03-24 12:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 12:29:27] Production.INFO: 74.25 MB #Memory Used# [2025-03-24 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 09:30:06 [end_date_ymd] => 2025-03-24 12:30:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 09:30:06' and `end` < '2025-03-24 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-03-24 12:30:19] Production.INFO: count ==6188 [2025-03-24 12:30:22] Production.ERROR: pbx CDR StartTime 2025-03-24 09:30:06 - End Time 2025-03-24 12:30:06 [2025-03-24 12:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752164', 'tblTempUsageDetail_20' ) start [2025-03-24 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752164', 'tblTempUsageDetail_20' ) end [2025-03-24 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752164', 'tblTempVendorCDR_20' ) start [2025-03-24 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752164', 'tblTempVendorCDR_20' ) end [2025-03-24 12:30:22] Production.INFO: ProcessCDR(1,14752164,1,1,2) [2025-03-24 12:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752164', 'tblTempUsageDetail_20' ) start [2025-03-24 12:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752164', 'tblTempUsageDetail_20' ) end [2025-03-24 12:30:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 12:30:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 12:30:27] Production.INFO: ==30093== Releasing lock... [2025-03-24 12:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 12:30:27] Production.INFO: 74.25 MB #Memory Used# [2025-03-24 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 09:31:05 [end_date_ymd] => 2025-03-24 12:31:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 09:31:05' and `end` < '2025-03-24 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-03-24 12:31:18] Production.INFO: count ==6245 [2025-03-24 12:31:21] Production.ERROR: pbx CDR StartTime 2025-03-24 09:31:05 - End Time 2025-03-24 12:31:05 [2025-03-24 12:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752170', 'tblTempUsageDetail_20' ) start [2025-03-24 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752170', 'tblTempUsageDetail_20' ) end [2025-03-24 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752170', 'tblTempVendorCDR_20' ) start [2025-03-24 12:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752170', 'tblTempVendorCDR_20' ) end [2025-03-24 12:31:22] Production.INFO: ProcessCDR(1,14752170,1,1,2) [2025-03-24 12:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752170', 'tblTempUsageDetail_20' ) start [2025-03-24 12:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752170', 'tblTempUsageDetail_20' ) end [2025-03-24 12:31:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 12:31:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 12:31:27] Production.INFO: ==30185== Releasing lock... [2025-03-24 12:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 12:31:27] Production.INFO: 74.75 MB #Memory Used# [2025-03-24 12:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 09:32:06 [end_date_ymd] => 2025-03-24 12:32:06 [RateCDR] => 1 ) [2025-03-24 12:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 09:32:06' and `end` < '2025-03-24 12:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 12:32:19] Production.INFO: count ==6248 [2025-03-24 12:32:22] Production.ERROR: pbx CDR StartTime 2025-03-24 09:32:06 - End Time 2025-03-24 12:32:06 [2025-03-24 12:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752175', 'tblTempUsageDetail_20' ) start [2025-03-24 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752175', 'tblTempUsageDetail_20' ) end [2025-03-24 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752175', 'tblTempVendorCDR_20' ) start [2025-03-24 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752175', 'tblTempVendorCDR_20' ) end [2025-03-24 12:32:22] Production.INFO: ProcessCDR(1,14752175,1,1,2) [2025-03-24 12:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752175', 'tblTempUsageDetail_20' ) start [2025-03-24 12:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752175', 'tblTempUsageDetail_20' ) end [2025-03-24 12:32:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 12:32:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 12:32:27] Production.INFO: ==30273== Releasing lock... [2025-03-24 12:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 12:32:27] Production.INFO: 74.75 MB #Memory Used# [2025-03-24 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 09:33:05 [end_date_ymd] => 2025-03-24 12:33:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 09:33:05' and `end` < '2025-03-24 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-03-24 12:33:19] Production.INFO: count ==6255 [2025-03-24 12:33:22] Production.ERROR: pbx CDR StartTime 2025-03-24 09:33:05 - End Time 2025-03-24 12:33:05 [2025-03-24 12:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752180', 'tblTempUsageDetail_20' ) start [2025-03-24 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752180', 'tblTempUsageDetail_20' ) end [2025-03-24 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752180', 'tblTempVendorCDR_20' ) start [2025-03-24 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752180', 'tblTempVendorCDR_20' ) end [2025-03-24 12:33:22] Production.INFO: ProcessCDR(1,14752180,1,1,2) [2025-03-24 12:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752180', 'tblTempUsageDetail_20' ) start [2025-03-24 12:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752180', 'tblTempUsageDetail_20' ) end [2025-03-24 12:33:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 12:33:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 12:33:27] Production.INFO: ==30366== Releasing lock... [2025-03-24 12:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 12:33:27] Production.INFO: 74.75 MB #Memory Used# [2025-03-24 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 09:34:05 [end_date_ymd] => 2025-03-24 12:34:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 09:34:05' and `end` < '2025-03-24 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-03-24 12:34:19] Production.INFO: count ==6274 [2025-03-24 12:34:21] Production.ERROR: pbx CDR StartTime 2025-03-24 09:34:05 - End Time 2025-03-24 12:34:05 [2025-03-24 12:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752185', 'tblTempUsageDetail_20' ) start [2025-03-24 12:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752185', 'tblTempUsageDetail_20' ) end [2025-03-24 12:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752185', 'tblTempVendorCDR_20' ) start [2025-03-24 12:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752185', 'tblTempVendorCDR_20' ) end [2025-03-24 12:34:22] Production.INFO: ProcessCDR(1,14752185,1,1,2) [2025-03-24 12:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752185', 'tblTempUsageDetail_20' ) start [2025-03-24 12:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752185', 'tblTempUsageDetail_20' ) end [2025-03-24 12:34:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 12:34:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 12:34:27] Production.INFO: ==30454== Releasing lock... [2025-03-24 12:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 12:34:27] Production.INFO: 75 MB #Memory Used# [2025-03-24 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 09:35:05 [end_date_ymd] => 2025-03-24 12:35:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 09:35:05' and `end` < '2025-03-24 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-03-24 12:35:18] Production.INFO: count ==6265 [2025-03-24 12:35:21] Production.ERROR: pbx CDR StartTime 2025-03-24 09:35:05 - End Time 2025-03-24 12:35:05 [2025-03-24 12:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752190', 'tblTempUsageDetail_20' ) start [2025-03-24 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752190', 'tblTempUsageDetail_20' ) end [2025-03-24 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752190', 'tblTempVendorCDR_20' ) start [2025-03-24 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752190', 'tblTempVendorCDR_20' ) end [2025-03-24 12:35:21] Production.INFO: ProcessCDR(1,14752190,1,1,2) [2025-03-24 12:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752190', 'tblTempUsageDetail_20' ) start [2025-03-24 12:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752190', 'tblTempUsageDetail_20' ) end [2025-03-24 12:35:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 12:35:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 12:35:27] Production.INFO: ==30539== Releasing lock... [2025-03-24 12:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 12:35:27] Production.INFO: 75 MB #Memory Used# [2025-03-24 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 09:36:05 [end_date_ymd] => 2025-03-24 12:36:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 09:36:05' and `end` < '2025-03-24 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-03-24 12:36:19] Production.INFO: count ==6237 [2025-03-24 12:36:22] Production.ERROR: pbx CDR StartTime 2025-03-24 09:36:05 - End Time 2025-03-24 12:36:05 [2025-03-24 12:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 12:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752195', 'tblTempUsageDetail_20' ) start [2025-03-24 12:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752195', 'tblTempUsageDetail_20' ) end [2025-03-24 12:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752195', 'tblTempVendorCDR_20' ) start [2025-03-24 12:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752195', 'tblTempVendorCDR_20' ) end [2025-03-24 12:36:22] Production.INFO: ProcessCDR(1,14752195,1,1,2) [2025-03-24 12:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752195', 'tblTempUsageDetail_20' ) start [2025-03-24 12:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752195', 'tblTempUsageDetail_20' ) end [2025-03-24 12:36:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 12:36:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 12:36:27] Production.INFO: ==30627== Releasing lock... [2025-03-24 12:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 12:36:27] Production.INFO: 74.75 MB #Memory Used# [2025-03-24 12:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 09:37:06 [end_date_ymd] => 2025-03-24 12:37:06 [RateCDR] => 1 ) [2025-03-24 12: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-03-24 09:37:06' and `end` < '2025-03-24 12: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-03-24 12:37:19] Production.INFO: count ==6203 [2025-03-24 12:37:22] Production.ERROR: pbx CDR StartTime 2025-03-24 09:37:06 - End Time 2025-03-24 12:37:06 [2025-03-24 12:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 12:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752200', 'tblTempUsageDetail_20' ) start [2025-03-24 12:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752200', 'tblTempUsageDetail_20' ) end [2025-03-24 12:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752200', 'tblTempVendorCDR_20' ) start [2025-03-24 12:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752200', 'tblTempVendorCDR_20' ) end [2025-03-24 12:37:22] Production.INFO: ProcessCDR(1,14752200,1,1,2) [2025-03-24 12:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:37:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752200', 'tblTempUsageDetail_20' ) start [2025-03-24 12:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752200', 'tblTempUsageDetail_20' ) end [2025-03-24 12:37:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 12:37:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 12:37:28] Production.INFO: ==30714== Releasing lock... [2025-03-24 12:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 12:37:28] Production.INFO: 74.5 MB #Memory Used# [2025-03-24 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 09:38:05 [end_date_ymd] => 2025-03-24 12:38:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 09:38:05' and `end` < '2025-03-24 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-03-24 12:38:19] Production.INFO: count ==6169 [2025-03-24 12:38:22] Production.ERROR: pbx CDR StartTime 2025-03-24 09:38:05 - End Time 2025-03-24 12:38:05 [2025-03-24 12:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 12:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752205', 'tblTempUsageDetail_20' ) start [2025-03-24 12:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752205', 'tblTempUsageDetail_20' ) end [2025-03-24 12:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752205', 'tblTempVendorCDR_20' ) start [2025-03-24 12:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752205', 'tblTempVendorCDR_20' ) end [2025-03-24 12:38:22] Production.INFO: ProcessCDR(1,14752205,1,1,2) [2025-03-24 12:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752205', 'tblTempUsageDetail_20' ) start [2025-03-24 12:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752205', 'tblTempUsageDetail_20' ) end [2025-03-24 12:38:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 12:38:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 12:38:27] Production.INFO: ==30802== Releasing lock... [2025-03-24 12:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 12:38:27] Production.INFO: 74.25 MB #Memory Used# [2025-03-24 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 09:39:05 [end_date_ymd] => 2025-03-24 12:39:05 [RateCDR] => 1 ) [2025-03-24 12:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 09:39:05' and `end` < '2025-03-24 12:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 12:39:19] Production.INFO: count ==6136 [2025-03-24 12:39:21] Production.ERROR: pbx CDR StartTime 2025-03-24 09:39:05 - End Time 2025-03-24 12:39:05 [2025-03-24 12:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752210', 'tblTempUsageDetail_20' ) start [2025-03-24 12:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752210', 'tblTempUsageDetail_20' ) end [2025-03-24 12:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752210', 'tblTempVendorCDR_20' ) start [2025-03-24 12:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752210', 'tblTempVendorCDR_20' ) end [2025-03-24 12:39:22] Production.INFO: ProcessCDR(1,14752210,1,1,2) [2025-03-24 12:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752210', 'tblTempUsageDetail_20' ) start [2025-03-24 12:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752210', 'tblTempUsageDetail_20' ) end [2025-03-24 12:39:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 12:39:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 12:39:26] Production.INFO: ==30888== Releasing lock... [2025-03-24 12:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 12:39:26] Production.INFO: 74 MB #Memory Used# [2025-03-24 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 09:40:06 [end_date_ymd] => 2025-03-24 12:40:06 [RateCDR] => 1 ) [2025-03-24 12:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 09:40:06' and `end` < '2025-03-24 12:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 12:40:20] Production.INFO: count ==6109 [2025-03-24 12:40:22] Production.ERROR: pbx CDR StartTime 2025-03-24 09:40:06 - End Time 2025-03-24 12:40:06 [2025-03-24 12:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752216', 'tblTempUsageDetail_20' ) start [2025-03-24 12:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752216', 'tblTempUsageDetail_20' ) end [2025-03-24 12:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752216', 'tblTempVendorCDR_20' ) start [2025-03-24 12:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752216', 'tblTempVendorCDR_20' ) end [2025-03-24 12:40:23] Production.INFO: ProcessCDR(1,14752216,1,1,2) [2025-03-24 12:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752216', 'tblTempUsageDetail_20' ) start [2025-03-24 12:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752216', 'tblTempUsageDetail_20' ) end [2025-03-24 12:40:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 12:40:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 12:40:28] Production.INFO: ==31016== Releasing lock... [2025-03-24 12:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 12:40:28] Production.INFO: 73.75 MB #Memory Used# [2025-03-24 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 09:41:05 [end_date_ymd] => 2025-03-24 12:41:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 09:41:05' and `end` < '2025-03-24 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-03-24 12:41:18] Production.INFO: count ==6169 [2025-03-24 12:41:21] Production.ERROR: pbx CDR StartTime 2025-03-24 09:41:05 - End Time 2025-03-24 12:41:05 [2025-03-24 12:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752221', 'tblTempUsageDetail_20' ) start [2025-03-24 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752221', 'tblTempUsageDetail_20' ) end [2025-03-24 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752221', 'tblTempVendorCDR_20' ) start [2025-03-24 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752221', 'tblTempVendorCDR_20' ) end [2025-03-24 12:41:21] Production.INFO: ProcessCDR(1,14752221,1,1,2) [2025-03-24 12:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752221', 'tblTempUsageDetail_20' ) start [2025-03-24 12:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752221', 'tblTempUsageDetail_20' ) end [2025-03-24 12:41:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 12:41:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 12:41:27] Production.INFO: ==31107== Releasing lock... [2025-03-24 12:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 12:41:27] Production.INFO: 74.25 MB #Memory Used# [2025-03-24 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 09:42:05 [end_date_ymd] => 2025-03-24 12:42:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 09:42:05' and `end` < '2025-03-24 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-03-24 12:42:18] Production.INFO: count ==6214 [2025-03-24 12:42:21] Production.ERROR: pbx CDR StartTime 2025-03-24 09:42:05 - End Time 2025-03-24 12:42:05 [2025-03-24 12:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752226', 'tblTempUsageDetail_20' ) start [2025-03-24 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752226', 'tblTempUsageDetail_20' ) end [2025-03-24 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752226', 'tblTempVendorCDR_20' ) start [2025-03-24 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752226', 'tblTempVendorCDR_20' ) end [2025-03-24 12:42:21] Production.INFO: ProcessCDR(1,14752226,1,1,2) [2025-03-24 12:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752226', 'tblTempUsageDetail_20' ) start [2025-03-24 12:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752226', 'tblTempUsageDetail_20' ) end [2025-03-24 12:42:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 12:42:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 12:42:27] Production.INFO: ==31196== Releasing lock... [2025-03-24 12:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 12:42:27] Production.INFO: 74.5 MB #Memory Used# [2025-03-24 12:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 09:43:04 [end_date_ymd] => 2025-03-24 12:43:04 [RateCDR] => 1 ) [2025-03-24 12:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 09:43:04' and `end` < '2025-03-24 12:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 12:43:18] Production.INFO: count ==6232 [2025-03-24 12:43:21] Production.ERROR: pbx CDR StartTime 2025-03-24 09:43:04 - End Time 2025-03-24 12:43:04 [2025-03-24 12:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752231', 'tblTempUsageDetail_20' ) start [2025-03-24 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752231', 'tblTempUsageDetail_20' ) end [2025-03-24 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752231', 'tblTempVendorCDR_20' ) start [2025-03-24 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752231', 'tblTempVendorCDR_20' ) end [2025-03-24 12:43:21] Production.INFO: ProcessCDR(1,14752231,1,1,2) [2025-03-24 12:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752231', 'tblTempUsageDetail_20' ) start [2025-03-24 12:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752231', 'tblTempUsageDetail_20' ) end [2025-03-24 12:43:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 12:43:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 12:43:26] Production.INFO: ==31284== Releasing lock... [2025-03-24 12:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 12:43:26] Production.INFO: 74.75 MB #Memory Used# [2025-03-24 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 09:44:05 [end_date_ymd] => 2025-03-24 12:44:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 09:44:05' and `end` < '2025-03-24 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-03-24 12:44:19] Production.INFO: count ==6217 [2025-03-24 12:44:21] Production.ERROR: pbx CDR StartTime 2025-03-24 09:44:05 - End Time 2025-03-24 12:44:05 [2025-03-24 12:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752236', 'tblTempUsageDetail_20' ) start [2025-03-24 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752236', 'tblTempUsageDetail_20' ) end [2025-03-24 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752236', 'tblTempVendorCDR_20' ) start [2025-03-24 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752236', 'tblTempVendorCDR_20' ) end [2025-03-24 12:44:22] Production.INFO: ProcessCDR(1,14752236,1,1,2) [2025-03-24 12:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752236', 'tblTempUsageDetail_20' ) start [2025-03-24 12:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752236', 'tblTempUsageDetail_20' ) end [2025-03-24 12:44:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 12:44:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 12:44:27] Production.INFO: ==31371== Releasing lock... [2025-03-24 12:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 12:44:27] Production.INFO: 74.5 MB #Memory Used# [2025-03-24 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 09:45:05 [end_date_ymd] => 2025-03-24 12:45:05 [RateCDR] => 1 ) [2025-03-24 12:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 09:45:05' and `end` < '2025-03-24 12:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 12:45:19] Production.INFO: count ==6206 [2025-03-24 12:45:21] Production.ERROR: pbx CDR StartTime 2025-03-24 09:45:05 - End Time 2025-03-24 12:45:05 [2025-03-24 12:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752241', 'tblTempUsageDetail_20' ) start [2025-03-24 12:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752241', 'tblTempUsageDetail_20' ) end [2025-03-24 12:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752241', 'tblTempVendorCDR_20' ) start [2025-03-24 12:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752241', 'tblTempVendorCDR_20' ) end [2025-03-24 12:45:22] Production.INFO: ProcessCDR(1,14752241,1,1,2) [2025-03-24 12:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752241', 'tblTempUsageDetail_20' ) start [2025-03-24 12:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752241', 'tblTempUsageDetail_20' ) end [2025-03-24 12:45:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 12:45:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 12:45:25] Production.INFO: ==31462== Releasing lock... [2025-03-24 12:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 12:45:25] Production.INFO: 74.5 MB #Memory Used# [2025-03-24 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 09:46:05 [end_date_ymd] => 2025-03-24 12:46:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 09:46:05' and `end` < '2025-03-24 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-03-24 12:46:19] Production.INFO: count ==6205 [2025-03-24 12:46:22] Production.ERROR: pbx CDR StartTime 2025-03-24 09:46:05 - End Time 2025-03-24 12:46:05 [2025-03-24 12:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 12:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752246', 'tblTempUsageDetail_20' ) start [2025-03-24 12:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752246', 'tblTempUsageDetail_20' ) end [2025-03-24 12:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752246', 'tblTempVendorCDR_20' ) start [2025-03-24 12:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752246', 'tblTempVendorCDR_20' ) end [2025-03-24 12:46:22] Production.INFO: ProcessCDR(1,14752246,1,1,2) [2025-03-24 12:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752246', 'tblTempUsageDetail_20' ) start [2025-03-24 12:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752246', 'tblTempUsageDetail_20' ) end [2025-03-24 12:46:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 12:46:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 12:46:27] Production.INFO: ==31549== Releasing lock... [2025-03-24 12:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 12:46:27] Production.INFO: 74.5 MB #Memory Used# [2025-03-24 12:47:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 09:47:07 [end_date_ymd] => 2025-03-24 12:47:07 [RateCDR] => 1 ) [2025-03-24 12:47: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-03-24 09:47:07' and `end` < '2025-03-24 12:47: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-03-24 12:47:20] Production.INFO: count ==6209 [2025-03-24 12:47:23] Production.ERROR: pbx CDR StartTime 2025-03-24 09:47:07 - End Time 2025-03-24 12:47:07 [2025-03-24 12:47:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 12:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752251', 'tblTempUsageDetail_20' ) start [2025-03-24 12:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752251', 'tblTempUsageDetail_20' ) end [2025-03-24 12:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752251', 'tblTempVendorCDR_20' ) start [2025-03-24 12:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752251', 'tblTempVendorCDR_20' ) end [2025-03-24 12:47:23] Production.INFO: ProcessCDR(1,14752251,1,1,2) [2025-03-24 12:47:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:47:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:47:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:47:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752251', 'tblTempUsageDetail_20' ) start [2025-03-24 12:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752251', 'tblTempUsageDetail_20' ) end [2025-03-24 12:47:29] Production.ERROR: pbx prc_insertCDR start [2025-03-24 12:47:29] Production.ERROR: pbx prc_insertCDR end [2025-03-24 12:47:29] Production.INFO: ==31633== Releasing lock... [2025-03-24 12:47:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 12:47:29] Production.INFO: 74.5 MB #Memory Used# [2025-03-24 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 09:48:05 [end_date_ymd] => 2025-03-24 12:48:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 09:48:05' and `end` < '2025-03-24 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-03-24 12:48:19] Production.INFO: count ==6198 [2025-03-24 12:48:21] Production.ERROR: pbx CDR StartTime 2025-03-24 09:48:05 - End Time 2025-03-24 12:48:05 [2025-03-24 12:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752256', 'tblTempUsageDetail_20' ) start [2025-03-24 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752256', 'tblTempUsageDetail_20' ) end [2025-03-24 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752256', 'tblTempVendorCDR_20' ) start [2025-03-24 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752256', 'tblTempVendorCDR_20' ) end [2025-03-24 12:48:22] Production.INFO: ProcessCDR(1,14752256,1,1,2) [2025-03-24 12:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752256', 'tblTempUsageDetail_20' ) start [2025-03-24 12:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752256', 'tblTempUsageDetail_20' ) end [2025-03-24 12:48:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 12:48:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 12:48:26] Production.INFO: ==31718== Releasing lock... [2025-03-24 12:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 12:48:26] Production.INFO: 74.5 MB #Memory Used# [2025-03-24 12:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 09:49:06 [end_date_ymd] => 2025-03-24 12:49:06 [RateCDR] => 1 ) [2025-03-24 12: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-03-24 09:49:06' and `end` < '2025-03-24 12: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-03-24 12:49:20] Production.INFO: count ==6189 [2025-03-24 12:49:23] Production.ERROR: pbx CDR StartTime 2025-03-24 09:49:06 - End Time 2025-03-24 12:49:06 [2025-03-24 12:49:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 12:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752261', 'tblTempUsageDetail_20' ) start [2025-03-24 12:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752261', 'tblTempUsageDetail_20' ) end [2025-03-24 12:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752261', 'tblTempVendorCDR_20' ) start [2025-03-24 12:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752261', 'tblTempVendorCDR_20' ) end [2025-03-24 12:49:23] Production.INFO: ProcessCDR(1,14752261,1,1,2) [2025-03-24 12:49:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752261', 'tblTempUsageDetail_20' ) start [2025-03-24 12:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752261', 'tblTempUsageDetail_20' ) end [2025-03-24 12:49:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 12:49:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 12:49:28] Production.INFO: ==31812== Releasing lock... [2025-03-24 12:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 12:49:28] Production.INFO: 74.25 MB #Memory Used# [2025-03-24 12:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 09:50:05 [end_date_ymd] => 2025-03-24 12:50:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 09:50:05' and `end` < '2025-03-24 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-03-24 12:50:19] Production.INFO: count ==6210 [2025-03-24 12:50:22] Production.ERROR: pbx CDR StartTime 2025-03-24 09:50:05 - End Time 2025-03-24 12:50:05 [2025-03-24 12:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752267', 'tblTempUsageDetail_20' ) start [2025-03-24 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752267', 'tblTempUsageDetail_20' ) end [2025-03-24 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752267', 'tblTempVendorCDR_20' ) start [2025-03-24 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752267', 'tblTempVendorCDR_20' ) end [2025-03-24 12:50:22] Production.INFO: ProcessCDR(1,14752267,1,1,2) [2025-03-24 12:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752267', 'tblTempUsageDetail_20' ) start [2025-03-24 12:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752267', 'tblTempUsageDetail_20' ) end [2025-03-24 12:50:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 12:50:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 12:50:27] Production.INFO: ==31901== Releasing lock... [2025-03-24 12:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 12:50:27] Production.INFO: 74.5 MB #Memory Used# [2025-03-24 12:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 09:51:06 [end_date_ymd] => 2025-03-24 12:51:06 [RateCDR] => 1 ) [2025-03-24 12: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-03-24 09:51:06' and `end` < '2025-03-24 12: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-03-24 12:51:20] Production.INFO: count ==6255 [2025-03-24 12:51:23] Production.ERROR: pbx CDR StartTime 2025-03-24 09:51:06 - End Time 2025-03-24 12:51:06 [2025-03-24 12:51:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 12:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752272', 'tblTempUsageDetail_20' ) start [2025-03-24 12:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752272', 'tblTempUsageDetail_20' ) end [2025-03-24 12:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752272', 'tblTempVendorCDR_20' ) start [2025-03-24 12:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752272', 'tblTempVendorCDR_20' ) end [2025-03-24 12:51:23] Production.INFO: ProcessCDR(1,14752272,1,1,2) [2025-03-24 12:51:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752272', 'tblTempUsageDetail_20' ) start [2025-03-24 12:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752272', 'tblTempUsageDetail_20' ) end [2025-03-24 12:51:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 12:51:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 12:51:28] Production.INFO: ==31997== Releasing lock... [2025-03-24 12:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 12:51:28] Production.INFO: 74.75 MB #Memory Used# [2025-03-24 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 09:52:05 [end_date_ymd] => 2025-03-24 12:52:05 [RateCDR] => 1 ) [2025-03-24 12:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 09:52:05' and `end` < '2025-03-24 12:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 12:52:19] Production.INFO: count ==6209 [2025-03-24 12:52:22] Production.ERROR: pbx CDR StartTime 2025-03-24 09:52:05 - End Time 2025-03-24 12:52:05 [2025-03-24 12:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752277', 'tblTempUsageDetail_20' ) start [2025-03-24 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752277', 'tblTempUsageDetail_20' ) end [2025-03-24 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752277', 'tblTempVendorCDR_20' ) start [2025-03-24 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752277', 'tblTempVendorCDR_20' ) end [2025-03-24 12:52:22] Production.INFO: ProcessCDR(1,14752277,1,1,2) [2025-03-24 12:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:52:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752277', 'tblTempUsageDetail_20' ) start [2025-03-24 12:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752277', 'tblTempUsageDetail_20' ) end [2025-03-24 12:52:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 12:52:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 12:52:28] Production.INFO: ==32082== Releasing lock... [2025-03-24 12:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 12:52:28] Production.INFO: 74.5 MB #Memory Used# [2025-03-24 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 09:53:05 [end_date_ymd] => 2025-03-24 12:53:05 [RateCDR] => 1 ) [2025-03-24 12:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 09:53:05' and `end` < '2025-03-24 12:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 12:53:19] Production.INFO: count ==6208 [2025-03-24 12:53:22] Production.ERROR: pbx CDR StartTime 2025-03-24 09:53:05 - End Time 2025-03-24 12:53:05 [2025-03-24 12:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 12:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752282', 'tblTempUsageDetail_20' ) start [2025-03-24 12:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752282', 'tblTempUsageDetail_20' ) end [2025-03-24 12:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752282', 'tblTempVendorCDR_20' ) start [2025-03-24 12:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752282', 'tblTempVendorCDR_20' ) end [2025-03-24 12:53:22] Production.INFO: ProcessCDR(1,14752282,1,1,2) [2025-03-24 12:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752282', 'tblTempUsageDetail_20' ) start [2025-03-24 12:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752282', 'tblTempUsageDetail_20' ) end [2025-03-24 12:53:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 12:53:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 12:53:27] Production.INFO: ==32176== Releasing lock... [2025-03-24 12:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 12:53:27] Production.INFO: 74.5 MB #Memory Used# [2025-03-24 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 09:54:05 [end_date_ymd] => 2025-03-24 12:54:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 09:54:05' and `end` < '2025-03-24 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-03-24 12:54:18] Production.INFO: count ==6178 [2025-03-24 12:54:21] Production.ERROR: pbx CDR StartTime 2025-03-24 09:54:05 - End Time 2025-03-24 12:54:05 [2025-03-24 12:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752287', 'tblTempUsageDetail_20' ) start [2025-03-24 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752287', 'tblTempUsageDetail_20' ) end [2025-03-24 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752287', 'tblTempVendorCDR_20' ) start [2025-03-24 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752287', 'tblTempVendorCDR_20' ) end [2025-03-24 12:54:21] Production.INFO: ProcessCDR(1,14752287,1,1,2) [2025-03-24 12:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752287', 'tblTempUsageDetail_20' ) start [2025-03-24 12:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752287', 'tblTempUsageDetail_20' ) end [2025-03-24 12:54:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 12:54:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 12:54:26] Production.INFO: ==32259== Releasing lock... [2025-03-24 12:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 12:54:26] Production.INFO: 74.25 MB #Memory Used# [2025-03-24 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 09:55:05 [end_date_ymd] => 2025-03-24 12:55:05 [RateCDR] => 1 ) [2025-03-24 12:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 09:55:05' and `end` < '2025-03-24 12:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 12:55:19] Production.INFO: count ==6149 [2025-03-24 12:55:22] Production.ERROR: pbx CDR StartTime 2025-03-24 09:55:05 - End Time 2025-03-24 12:55:05 [2025-03-24 12:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752292', 'tblTempUsageDetail_20' ) start [2025-03-24 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752292', 'tblTempUsageDetail_20' ) end [2025-03-24 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752292', 'tblTempVendorCDR_20' ) start [2025-03-24 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752292', 'tblTempVendorCDR_20' ) end [2025-03-24 12:55:22] Production.INFO: ProcessCDR(1,14752292,1,1,2) [2025-03-24 12:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752292', 'tblTempUsageDetail_20' ) start [2025-03-24 12:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752292', 'tblTempUsageDetail_20' ) end [2025-03-24 12:55:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 12:55:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 12:55:27] Production.INFO: ==32350== Releasing lock... [2025-03-24 12:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 12:55:27] Production.INFO: 74 MB #Memory Used# [2025-03-24 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 09:56:05 [end_date_ymd] => 2025-03-24 12:56:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 09:56:05' and `end` < '2025-03-24 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-03-24 12:56:18] Production.INFO: count ==6119 [2025-03-24 12:56:21] Production.ERROR: pbx CDR StartTime 2025-03-24 09:56:05 - End Time 2025-03-24 12:56:05 [2025-03-24 12:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752297', 'tblTempUsageDetail_20' ) start [2025-03-24 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752297', 'tblTempUsageDetail_20' ) end [2025-03-24 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752297', 'tblTempVendorCDR_20' ) start [2025-03-24 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752297', 'tblTempVendorCDR_20' ) end [2025-03-24 12:56:21] Production.INFO: ProcessCDR(1,14752297,1,1,2) [2025-03-24 12:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752297', 'tblTempUsageDetail_20' ) start [2025-03-24 12:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752297', 'tblTempUsageDetail_20' ) end [2025-03-24 12:56:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 12:56:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 12:56:27] Production.INFO: ==32477== Releasing lock... [2025-03-24 12:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 12:56:27] Production.INFO: 73.75 MB #Memory Used# [2025-03-24 12:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 09:57:06 [end_date_ymd] => 2025-03-24 12:57:06 [RateCDR] => 1 ) [2025-03-24 12: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-03-24 09:57:06' and `end` < '2025-03-24 12: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-03-24 12:57:19] Production.INFO: count ==6136 [2025-03-24 12:57:22] Production.ERROR: pbx CDR StartTime 2025-03-24 09:57:06 - End Time 2025-03-24 12:57:06 [2025-03-24 12:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 12:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752302', 'tblTempUsageDetail_20' ) start [2025-03-24 12:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752302', 'tblTempUsageDetail_20' ) end [2025-03-24 12:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752302', 'tblTempVendorCDR_20' ) start [2025-03-24 12:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752302', 'tblTempVendorCDR_20' ) end [2025-03-24 12:57:22] Production.INFO: ProcessCDR(1,14752302,1,1,2) [2025-03-24 12:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752302', 'tblTempUsageDetail_20' ) start [2025-03-24 12:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752302', 'tblTempUsageDetail_20' ) end [2025-03-24 12:57:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 12:57:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 12:57:28] Production.INFO: ==32570== Releasing lock... [2025-03-24 12:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 12:57:28] Production.INFO: 74 MB #Memory Used# [2025-03-24 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 09:58:05 [end_date_ymd] => 2025-03-24 12:58:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 09:58:05' and `end` < '2025-03-24 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-03-24 12:58:18] Production.INFO: count ==6114 [2025-03-24 12:58:21] Production.ERROR: pbx CDR StartTime 2025-03-24 09:58:05 - End Time 2025-03-24 12:58:05 [2025-03-24 12:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752307', 'tblTempUsageDetail_20' ) start [2025-03-24 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752307', 'tblTempUsageDetail_20' ) end [2025-03-24 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752307', 'tblTempVendorCDR_20' ) start [2025-03-24 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752307', 'tblTempVendorCDR_20' ) end [2025-03-24 12:58:21] Production.INFO: ProcessCDR(1,14752307,1,1,2) [2025-03-24 12:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752307', 'tblTempUsageDetail_20' ) start [2025-03-24 12:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752307', 'tblTempUsageDetail_20' ) end [2025-03-24 12:58:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 12:58:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 12:58:25] Production.INFO: ==32655== Releasing lock... [2025-03-24 12:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 12:58:25] Production.INFO: 73.75 MB #Memory Used# [2025-03-24 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 09:59:05 [end_date_ymd] => 2025-03-24 12:59:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 09:59:05' and `end` < '2025-03-24 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-03-24 12:59:18] Production.INFO: count ==6111 [2025-03-24 12:59:21] Production.ERROR: pbx CDR StartTime 2025-03-24 09:59:05 - End Time 2025-03-24 12:59:05 [2025-03-24 12:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752312', 'tblTempUsageDetail_20' ) start [2025-03-24 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752312', 'tblTempUsageDetail_20' ) end [2025-03-24 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752312', 'tblTempVendorCDR_20' ) start [2025-03-24 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752312', 'tblTempVendorCDR_20' ) end [2025-03-24 12:59:21] Production.INFO: ProcessCDR(1,14752312,1,1,2) [2025-03-24 12:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 12:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 12:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752312', 'tblTempUsageDetail_20' ) start [2025-03-24 12:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752312', 'tblTempUsageDetail_20' ) end [2025-03-24 12:59:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 12:59:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 12:59:26] Production.INFO: ==32745== Releasing lock... [2025-03-24 12:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 12:59:26] Production.INFO: 73.75 MB #Memory Used# [2025-03-24 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 10:00:06 [end_date_ymd] => 2025-03-24 13:00:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 10:00:06' and `end` < '2025-03-24 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-03-24 13:00:20] Production.INFO: count ==6115 [2025-03-24 13:00:23] Production.ERROR: pbx CDR StartTime 2025-03-24 10:00:06 - End Time 2025-03-24 13:00:06 [2025-03-24 13:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752318', 'tblTempUsageDetail_20' ) start [2025-03-24 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752318', 'tblTempUsageDetail_20' ) end [2025-03-24 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752318', 'tblTempVendorCDR_20' ) start [2025-03-24 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752318', 'tblTempVendorCDR_20' ) end [2025-03-24 13:00:23] Production.INFO: ProcessCDR(1,14752318,1,1,2) [2025-03-24 13:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752318', 'tblTempUsageDetail_20' ) start [2025-03-24 13:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752318', 'tblTempUsageDetail_20' ) end [2025-03-24 13:00:29] Production.ERROR: pbx prc_insertCDR start [2025-03-24 13:00:29] Production.ERROR: pbx prc_insertCDR end [2025-03-24 13:00:29] Production.INFO: ==384== Releasing lock... [2025-03-24 13:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 13:00:29] Production.INFO: 73.75 MB #Memory Used# [2025-03-24 13:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 10:01:06 [end_date_ymd] => 2025-03-24 13:01:06 [RateCDR] => 1 ) [2025-03-24 13:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 10:01:06' and `end` < '2025-03-24 13:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 13:01:19] Production.INFO: count ==6150 [2025-03-24 13:01:22] Production.ERROR: pbx CDR StartTime 2025-03-24 10:01:06 - End Time 2025-03-24 13:01:06 [2025-03-24 13:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752323', 'tblTempUsageDetail_20' ) start [2025-03-24 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752323', 'tblTempUsageDetail_20' ) end [2025-03-24 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752323', 'tblTempVendorCDR_20' ) start [2025-03-24 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752323', 'tblTempVendorCDR_20' ) end [2025-03-24 13:01:22] Production.INFO: ProcessCDR(1,14752323,1,1,2) [2025-03-24 13:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:01:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752323', 'tblTempUsageDetail_20' ) start [2025-03-24 13:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752323', 'tblTempUsageDetail_20' ) end [2025-03-24 13:01:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 13:01:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 13:01:28] Production.INFO: ==491== Releasing lock... [2025-03-24 13:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 13:01:28] Production.INFO: 74 MB #Memory Used# [2025-03-24 13:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 10:02:06 [end_date_ymd] => 2025-03-24 13:02:06 [RateCDR] => 1 ) [2025-03-24 13: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-03-24 10:02:06' and `end` < '2025-03-24 13: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-03-24 13:02:20] Production.INFO: count ==6165 [2025-03-24 13:02:23] Production.ERROR: pbx CDR StartTime 2025-03-24 10:02:06 - End Time 2025-03-24 13:02:06 [2025-03-24 13:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 13:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752328', 'tblTempUsageDetail_20' ) start [2025-03-24 13:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752328', 'tblTempUsageDetail_20' ) end [2025-03-24 13:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752328', 'tblTempVendorCDR_20' ) start [2025-03-24 13:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752328', 'tblTempVendorCDR_20' ) end [2025-03-24 13:02:23] Production.INFO: ProcessCDR(1,14752328,1,1,2) [2025-03-24 13:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752328', 'tblTempUsageDetail_20' ) start [2025-03-24 13:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752328', 'tblTempUsageDetail_20' ) end [2025-03-24 13:02:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 13:02:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 13:02:28] Production.INFO: ==586== Releasing lock... [2025-03-24 13:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 13:02:28] Production.INFO: 74.25 MB #Memory Used# [2025-03-24 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 10:03:05 [end_date_ymd] => 2025-03-24 13:03:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 10:03:05' and `end` < '2025-03-24 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-03-24 13:03:18] Production.INFO: count ==6170 [2025-03-24 13:03:21] Production.ERROR: pbx CDR StartTime 2025-03-24 10:03:05 - End Time 2025-03-24 13:03:05 [2025-03-24 13:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752333', 'tblTempUsageDetail_20' ) start [2025-03-24 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752333', 'tblTempUsageDetail_20' ) end [2025-03-24 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752333', 'tblTempVendorCDR_20' ) start [2025-03-24 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752333', 'tblTempVendorCDR_20' ) end [2025-03-24 13:03:21] Production.INFO: ProcessCDR(1,14752333,1,1,2) [2025-03-24 13:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752333', 'tblTempUsageDetail_20' ) start [2025-03-24 13:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752333', 'tblTempUsageDetail_20' ) end [2025-03-24 13:03:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 13:03:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 13:03:26] Production.INFO: ==701== Releasing lock... [2025-03-24 13:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 13:03:26] Production.INFO: 74.25 MB #Memory Used# [2025-03-24 13:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 10:04:05 [end_date_ymd] => 2025-03-24 13:04:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 10:04:05' and `end` < '2025-03-24 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-03-24 13:04:19] Production.INFO: count ==6160 [2025-03-24 13:04:21] Production.ERROR: pbx CDR StartTime 2025-03-24 10:04:05 - End Time 2025-03-24 13:04:05 [2025-03-24 13:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752338', 'tblTempUsageDetail_20' ) start [2025-03-24 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752338', 'tblTempUsageDetail_20' ) end [2025-03-24 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752338', 'tblTempVendorCDR_20' ) start [2025-03-24 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752338', 'tblTempVendorCDR_20' ) end [2025-03-24 13:04:22] Production.INFO: ProcessCDR(1,14752338,1,1,2) [2025-03-24 13:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752338', 'tblTempUsageDetail_20' ) start [2025-03-24 13:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752338', 'tblTempUsageDetail_20' ) end [2025-03-24 13:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 13:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 13:04:27] Production.INFO: ==796== Releasing lock... [2025-03-24 13:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 13:04:27] Production.INFO: 74.25 MB #Memory Used# [2025-03-24 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 10:05:05 [end_date_ymd] => 2025-03-24 13:05:05 [RateCDR] => 1 ) [2025-03-24 13:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 10:05:05' and `end` < '2025-03-24 13:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 13:05:19] Production.INFO: count ==6159 [2025-03-24 13:05:22] Production.ERROR: pbx CDR StartTime 2025-03-24 10:05:05 - End Time 2025-03-24 13:05:05 [2025-03-24 13:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 13:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752343', 'tblTempUsageDetail_20' ) start [2025-03-24 13:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752343', 'tblTempUsageDetail_20' ) end [2025-03-24 13:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752343', 'tblTempVendorCDR_20' ) start [2025-03-24 13:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752343', 'tblTempVendorCDR_20' ) end [2025-03-24 13:05:22] Production.INFO: ProcessCDR(1,14752343,1,1,2) [2025-03-24 13:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752343', 'tblTempUsageDetail_20' ) start [2025-03-24 13:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752343', 'tblTempUsageDetail_20' ) end [2025-03-24 13:05:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 13:05:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 13:05:27] Production.INFO: ==885== Releasing lock... [2025-03-24 13:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 13:05:27] Production.INFO: 74.25 MB #Memory Used# [2025-03-24 13:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 10:06:06 [end_date_ymd] => 2025-03-24 13:06:06 [RateCDR] => 1 ) [2025-03-24 13: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-03-24 10:06:06' and `end` < '2025-03-24 13: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-03-24 13:06:19] Production.INFO: count ==6156 [2025-03-24 13:06:22] Production.ERROR: pbx CDR StartTime 2025-03-24 10:06:06 - End Time 2025-03-24 13:06:06 [2025-03-24 13:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 13:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752348', 'tblTempUsageDetail_20' ) start [2025-03-24 13:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752348', 'tblTempUsageDetail_20' ) end [2025-03-24 13:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752348', 'tblTempVendorCDR_20' ) start [2025-03-24 13:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752348', 'tblTempVendorCDR_20' ) end [2025-03-24 13:06:22] Production.INFO: ProcessCDR(1,14752348,1,1,2) [2025-03-24 13:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752348', 'tblTempUsageDetail_20' ) start [2025-03-24 13:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752348', 'tblTempUsageDetail_20' ) end [2025-03-24 13:06:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 13:06:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 13:06:27] Production.INFO: ==973== Releasing lock... [2025-03-24 13:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 13:06:27] Production.INFO: 74 MB #Memory Used# [2025-03-24 13:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 10:07:05 [end_date_ymd] => 2025-03-24 13:07:05 [RateCDR] => 1 ) [2025-03-24 13:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 10:07:05' and `end` < '2025-03-24 13:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 13:07:19] Production.INFO: count ==6142 [2025-03-24 13:07:21] Production.ERROR: pbx CDR StartTime 2025-03-24 10:07:05 - End Time 2025-03-24 13:07:05 [2025-03-24 13:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752353', 'tblTempUsageDetail_20' ) start [2025-03-24 13:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752353', 'tblTempUsageDetail_20' ) end [2025-03-24 13:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752353', 'tblTempVendorCDR_20' ) start [2025-03-24 13:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752353', 'tblTempVendorCDR_20' ) end [2025-03-24 13:07:22] Production.INFO: ProcessCDR(1,14752353,1,1,2) [2025-03-24 13:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752353', 'tblTempUsageDetail_20' ) start [2025-03-24 13:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752353', 'tblTempUsageDetail_20' ) end [2025-03-24 13:07:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 13:07:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 13:07:27] Production.INFO: ==1058== Releasing lock... [2025-03-24 13:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 13:07:27] Production.INFO: 74 MB #Memory Used# [2025-03-24 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 10:08:05 [end_date_ymd] => 2025-03-24 13:08:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 10:08:05' and `end` < '2025-03-24 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-03-24 13:08:19] Production.INFO: count ==6126 [2025-03-24 13:08:21] Production.ERROR: pbx CDR StartTime 2025-03-24 10:08:05 - End Time 2025-03-24 13:08:05 [2025-03-24 13:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752358', 'tblTempUsageDetail_20' ) start [2025-03-24 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752358', 'tblTempUsageDetail_20' ) end [2025-03-24 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752358', 'tblTempVendorCDR_20' ) start [2025-03-24 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752358', 'tblTempVendorCDR_20' ) end [2025-03-24 13:08:22] Production.INFO: ProcessCDR(1,14752358,1,1,2) [2025-03-24 13:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752358', 'tblTempUsageDetail_20' ) start [2025-03-24 13:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752358', 'tblTempUsageDetail_20' ) end [2025-03-24 13:08:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 13:08:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 13:08:27] Production.INFO: ==1148== Releasing lock... [2025-03-24 13:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 13:08:27] Production.INFO: 74 MB #Memory Used# [2025-03-24 13:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 10:09:04 [end_date_ymd] => 2025-03-24 13:09:04 [RateCDR] => 1 ) [2025-03-24 13:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 10:09:04' and `end` < '2025-03-24 13:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 13:09:18] Production.INFO: count ==6134 [2025-03-24 13:09:21] Production.ERROR: pbx CDR StartTime 2025-03-24 10:09:04 - End Time 2025-03-24 13:09:04 [2025-03-24 13:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752363', 'tblTempUsageDetail_20' ) start [2025-03-24 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752363', 'tblTempUsageDetail_20' ) end [2025-03-24 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752363', 'tblTempVendorCDR_20' ) start [2025-03-24 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752363', 'tblTempVendorCDR_20' ) end [2025-03-24 13:09:21] Production.INFO: ProcessCDR(1,14752363,1,1,2) [2025-03-24 13:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752363', 'tblTempUsageDetail_20' ) start [2025-03-24 13:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752363', 'tblTempUsageDetail_20' ) end [2025-03-24 13:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 13:09:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 13:09:26] Production.INFO: ==1246== Releasing lock... [2025-03-24 13:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 13:09:26] Production.INFO: 74 MB #Memory Used# [2025-03-24 13:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 10:10:06 [end_date_ymd] => 2025-03-24 13:10:06 [RateCDR] => 1 ) [2025-03-24 13:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 10:10:06' and `end` < '2025-03-24 13:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 13:10:20] Production.INFO: count ==6128 [2025-03-24 13:10:22] Production.ERROR: pbx CDR StartTime 2025-03-24 10:10:06 - End Time 2025-03-24 13:10:06 [2025-03-24 13:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752368', 'tblTempUsageDetail_20' ) start [2025-03-24 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752368', 'tblTempUsageDetail_20' ) end [2025-03-24 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752368', 'tblTempVendorCDR_20' ) start [2025-03-24 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752368', 'tblTempVendorCDR_20' ) end [2025-03-24 13:10:22] Production.INFO: ProcessCDR(1,14752368,1,1,2) [2025-03-24 13:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752368', 'tblTempUsageDetail_20' ) start [2025-03-24 13:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752368', 'tblTempUsageDetail_20' ) end [2025-03-24 13:10:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 13:10:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 13:10:27] Production.INFO: ==1342== Releasing lock... [2025-03-24 13:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 13:10:27] Production.INFO: 74 MB #Memory Used# [2025-03-24 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 10:11:05 [end_date_ymd] => 2025-03-24 13:11:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 10:11:05' and `end` < '2025-03-24 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-03-24 13:11:19] Production.INFO: count ==6093 [2025-03-24 13:11:21] Production.ERROR: pbx CDR StartTime 2025-03-24 10:11:05 - End Time 2025-03-24 13:11:05 [2025-03-24 13:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752374', 'tblTempUsageDetail_20' ) start [2025-03-24 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752374', 'tblTempUsageDetail_20' ) end [2025-03-24 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752374', 'tblTempVendorCDR_20' ) start [2025-03-24 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752374', 'tblTempVendorCDR_20' ) end [2025-03-24 13:11:21] Production.INFO: ProcessCDR(1,14752374,1,1,2) [2025-03-24 13:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752374', 'tblTempUsageDetail_20' ) start [2025-03-24 13:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752374', 'tblTempUsageDetail_20' ) end [2025-03-24 13:11:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 13:11:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 13:11:26] Production.INFO: ==1475== Releasing lock... [2025-03-24 13:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 13:11:26] Production.INFO: 73.75 MB #Memory Used# [2025-03-24 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 10:12:05 [end_date_ymd] => 2025-03-24 13:12:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 10:12:05' and `end` < '2025-03-24 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-03-24 13:12:19] Production.INFO: count ==6094 [2025-03-24 13:12:22] Production.ERROR: pbx CDR StartTime 2025-03-24 10:12:05 - End Time 2025-03-24 13:12:05 [2025-03-24 13:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752379', 'tblTempUsageDetail_20' ) start [2025-03-24 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752379', 'tblTempUsageDetail_20' ) end [2025-03-24 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752379', 'tblTempVendorCDR_20' ) start [2025-03-24 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752379', 'tblTempVendorCDR_20' ) end [2025-03-24 13:12:22] Production.INFO: ProcessCDR(1,14752379,1,1,2) [2025-03-24 13:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752379', 'tblTempUsageDetail_20' ) start [2025-03-24 13:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752379', 'tblTempUsageDetail_20' ) end [2025-03-24 13:12:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 13:12:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 13:12:26] Production.INFO: ==1603== Releasing lock... [2025-03-24 13:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 13:12:26] Production.INFO: 73.75 MB #Memory Used# [2025-03-24 13:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 10:13:06 [end_date_ymd] => 2025-03-24 13:13:06 [RateCDR] => 1 ) [2025-03-24 13: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-03-24 10:13:06' and `end` < '2025-03-24 13: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-03-24 13:13:19] Production.INFO: count ==6089 [2025-03-24 13:13:22] Production.ERROR: pbx CDR StartTime 2025-03-24 10:13:06 - End Time 2025-03-24 13:13:06 [2025-03-24 13:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752384', 'tblTempUsageDetail_20' ) start [2025-03-24 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752384', 'tblTempUsageDetail_20' ) end [2025-03-24 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752384', 'tblTempVendorCDR_20' ) start [2025-03-24 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752384', 'tblTempVendorCDR_20' ) end [2025-03-24 13:13:22] Production.INFO: ProcessCDR(1,14752384,1,1,2) [2025-03-24 13:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752384', 'tblTempUsageDetail_20' ) start [2025-03-24 13:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752384', 'tblTempUsageDetail_20' ) end [2025-03-24 13:13:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 13:13:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 13:13:27] Production.INFO: ==1688== Releasing lock... [2025-03-24 13:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 13:13:27] Production.INFO: 73.5 MB #Memory Used# [2025-03-24 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 10:14:05 [end_date_ymd] => 2025-03-24 13:14:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 10:14:05' and `end` < '2025-03-24 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-03-24 13:14:18] Production.INFO: count ==6052 [2025-03-24 13:14:21] Production.ERROR: pbx CDR StartTime 2025-03-24 10:14:05 - End Time 2025-03-24 13:14:05 [2025-03-24 13:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752389', 'tblTempUsageDetail_20' ) start [2025-03-24 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752389', 'tblTempUsageDetail_20' ) end [2025-03-24 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752389', 'tblTempVendorCDR_20' ) start [2025-03-24 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752389', 'tblTempVendorCDR_20' ) end [2025-03-24 13:14:21] Production.INFO: ProcessCDR(1,14752389,1,1,2) [2025-03-24 13:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752389', 'tblTempUsageDetail_20' ) start [2025-03-24 13:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752389', 'tblTempUsageDetail_20' ) end [2025-03-24 13:14:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 13:14:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 13:14:26] Production.INFO: ==1771== Releasing lock... [2025-03-24 13:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 13:14:26] Production.INFO: 73.25 MB #Memory Used# [2025-03-24 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 10:15:05 [end_date_ymd] => 2025-03-24 13:15:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 10:15:05' and `end` < '2025-03-24 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-03-24 13:15:19] Production.INFO: count ==6052 [2025-03-24 13:15:21] Production.ERROR: pbx CDR StartTime 2025-03-24 10:15:05 - End Time 2025-03-24 13:15:05 [2025-03-24 13:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752394', 'tblTempUsageDetail_20' ) start [2025-03-24 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752394', 'tblTempUsageDetail_20' ) end [2025-03-24 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752394', 'tblTempVendorCDR_20' ) start [2025-03-24 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752394', 'tblTempVendorCDR_20' ) end [2025-03-24 13:15:22] Production.INFO: ProcessCDR(1,14752394,1,1,2) [2025-03-24 13:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752394', 'tblTempUsageDetail_20' ) start [2025-03-24 13:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752394', 'tblTempUsageDetail_20' ) end [2025-03-24 13:15:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 13:15:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 13:15:27] Production.INFO: ==1866== Releasing lock... [2025-03-24 13:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 13:15:27] Production.INFO: 73.25 MB #Memory Used# [2025-03-24 13:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 10:16:06 [end_date_ymd] => 2025-03-24 13:16:06 [RateCDR] => 1 ) [2025-03-24 13: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-03-24 10:16:06' and `end` < '2025-03-24 13: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-03-24 13:16:19] Production.INFO: count ==6047 [2025-03-24 13:16:22] Production.ERROR: pbx CDR StartTime 2025-03-24 10:16:06 - End Time 2025-03-24 13:16:06 [2025-03-24 13:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752399', 'tblTempUsageDetail_20' ) start [2025-03-24 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752399', 'tblTempUsageDetail_20' ) end [2025-03-24 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752399', 'tblTempVendorCDR_20' ) start [2025-03-24 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752399', 'tblTempVendorCDR_20' ) end [2025-03-24 13:16:22] Production.INFO: ProcessCDR(1,14752399,1,1,2) [2025-03-24 13:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752399', 'tblTempUsageDetail_20' ) start [2025-03-24 13:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752399', 'tblTempUsageDetail_20' ) end [2025-03-24 13:16:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 13:16:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 13:16:27] Production.INFO: ==1954== Releasing lock... [2025-03-24 13:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 13:16:27] Production.INFO: 73.25 MB #Memory Used# [2025-03-24 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 10:17:05 [end_date_ymd] => 2025-03-24 13:17:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 10:17:05' and `end` < '2025-03-24 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-03-24 13:17:19] Production.INFO: count ==6058 [2025-03-24 13:17:22] Production.ERROR: pbx CDR StartTime 2025-03-24 10:17:05 - End Time 2025-03-24 13:17:05 [2025-03-24 13:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752404', 'tblTempUsageDetail_20' ) start [2025-03-24 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752404', 'tblTempUsageDetail_20' ) end [2025-03-24 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752404', 'tblTempVendorCDR_20' ) start [2025-03-24 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752404', 'tblTempVendorCDR_20' ) end [2025-03-24 13:17:22] Production.INFO: ProcessCDR(1,14752404,1,1,2) [2025-03-24 13:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752404', 'tblTempUsageDetail_20' ) start [2025-03-24 13:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752404', 'tblTempUsageDetail_20' ) end [2025-03-24 13:17:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 13:17:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 13:17:25] Production.INFO: ==2044== Releasing lock... [2025-03-24 13:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 13:17:25] Production.INFO: 73.25 MB #Memory Used# [2025-03-24 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 10:18:05 [end_date_ymd] => 2025-03-24 13:18:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 10:18:05' and `end` < '2025-03-24 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-03-24 13:18:19] Production.INFO: count ==6063 [2025-03-24 13:18:22] Production.ERROR: pbx CDR StartTime 2025-03-24 10:18:05 - End Time 2025-03-24 13:18:05 [2025-03-24 13:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752409', 'tblTempUsageDetail_20' ) start [2025-03-24 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752409', 'tblTempUsageDetail_20' ) end [2025-03-24 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752409', 'tblTempVendorCDR_20' ) start [2025-03-24 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752409', 'tblTempVendorCDR_20' ) end [2025-03-24 13:18:22] Production.INFO: ProcessCDR(1,14752409,1,1,2) [2025-03-24 13:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752409', 'tblTempUsageDetail_20' ) start [2025-03-24 13:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752409', 'tblTempUsageDetail_20' ) end [2025-03-24 13:18:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 13:18:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 13:18:27] Production.INFO: ==2140== Releasing lock... [2025-03-24 13:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 13:18:27] Production.INFO: 73.5 MB #Memory Used# [2025-03-24 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 10:19:05 [end_date_ymd] => 2025-03-24 13:19:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 10:19:05' and `end` < '2025-03-24 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-03-24 13:19:19] Production.INFO: count ==6061 [2025-03-24 13:19:22] Production.ERROR: pbx CDR StartTime 2025-03-24 10:19:05 - End Time 2025-03-24 13:19:05 [2025-03-24 13:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752414', 'tblTempUsageDetail_20' ) start [2025-03-24 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752414', 'tblTempUsageDetail_20' ) end [2025-03-24 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752414', 'tblTempVendorCDR_20' ) start [2025-03-24 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752414', 'tblTempVendorCDR_20' ) end [2025-03-24 13:19:22] Production.INFO: ProcessCDR(1,14752414,1,1,2) [2025-03-24 13:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752414', 'tblTempUsageDetail_20' ) start [2025-03-24 13:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752414', 'tblTempUsageDetail_20' ) end [2025-03-24 13:19:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 13:19:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 13:19:27] Production.INFO: ==2230== Releasing lock... [2025-03-24 13:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 13:19:27] Production.INFO: 73.5 MB #Memory Used# [2025-03-24 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 10:20:06 [end_date_ymd] => 2025-03-24 13:20:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 10:20:06' and `end` < '2025-03-24 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-03-24 13:20:20] Production.INFO: count ==6066 [2025-03-24 13:20:22] Production.ERROR: pbx CDR StartTime 2025-03-24 10:20:06 - End Time 2025-03-24 13:20:06 [2025-03-24 13:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752419', 'tblTempUsageDetail_20' ) start [2025-03-24 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752419', 'tblTempUsageDetail_20' ) end [2025-03-24 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752419', 'tblTempVendorCDR_20' ) start [2025-03-24 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752419', 'tblTempVendorCDR_20' ) end [2025-03-24 13:20:22] Production.INFO: ProcessCDR(1,14752419,1,1,2) [2025-03-24 13:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752419', 'tblTempUsageDetail_20' ) start [2025-03-24 13:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752419', 'tblTempUsageDetail_20' ) end [2025-03-24 13:20:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 13:20:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 13:20:28] Production.INFO: ==2320== Releasing lock... [2025-03-24 13:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 13:20:28] Production.INFO: 73.5 MB #Memory Used# [2025-03-24 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 10:21:05 [end_date_ymd] => 2025-03-24 13:21:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 10:21:05' and `end` < '2025-03-24 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-03-24 13:21:19] Production.INFO: count ==6042 [2025-03-24 13:21:22] Production.ERROR: pbx CDR StartTime 2025-03-24 10:21:05 - End Time 2025-03-24 13:21:05 [2025-03-24 13:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752425', 'tblTempUsageDetail_20' ) start [2025-03-24 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752425', 'tblTempUsageDetail_20' ) end [2025-03-24 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752425', 'tblTempVendorCDR_20' ) start [2025-03-24 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752425', 'tblTempVendorCDR_20' ) end [2025-03-24 13:21:22] Production.INFO: ProcessCDR(1,14752425,1,1,2) [2025-03-24 13:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:21:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752425', 'tblTempUsageDetail_20' ) start [2025-03-24 13:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752425', 'tblTempUsageDetail_20' ) end [2025-03-24 13:21:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 13:21:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 13:21:28] Production.INFO: ==2417== Releasing lock... [2025-03-24 13:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 13:21:28] Production.INFO: 73.25 MB #Memory Used# [2025-03-24 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 10:22:05 [end_date_ymd] => 2025-03-24 13:22:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 10:22:05' and `end` < '2025-03-24 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-03-24 13:22:19] Production.INFO: count ==6034 [2025-03-24 13:22:22] Production.ERROR: pbx CDR StartTime 2025-03-24 10:22:05 - End Time 2025-03-24 13:22:05 [2025-03-24 13:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752430', 'tblTempUsageDetail_20' ) start [2025-03-24 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752430', 'tblTempUsageDetail_20' ) end [2025-03-24 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752430', 'tblTempVendorCDR_20' ) start [2025-03-24 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752430', 'tblTempVendorCDR_20' ) end [2025-03-24 13:22:22] Production.INFO: ProcessCDR(1,14752430,1,1,2) [2025-03-24 13:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:22:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752430', 'tblTempUsageDetail_20' ) start [2025-03-24 13:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752430', 'tblTempUsageDetail_20' ) end [2025-03-24 13:22:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 13:22:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 13:22:28] Production.INFO: ==2507== Releasing lock... [2025-03-24 13:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 13:22:28] Production.INFO: 73.25 MB #Memory Used# [2025-03-24 13:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 10:23:06 [end_date_ymd] => 2025-03-24 13:23:06 [RateCDR] => 1 ) [2025-03-24 13: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-03-24 10:23:06' and `end` < '2025-03-24 13: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-03-24 13:23:19] Production.INFO: count ==6006 [2025-03-24 13:23:22] Production.ERROR: pbx CDR StartTime 2025-03-24 10:23:06 - End Time 2025-03-24 13:23:06 [2025-03-24 13:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752435', 'tblTempUsageDetail_20' ) start [2025-03-24 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752435', 'tblTempUsageDetail_20' ) end [2025-03-24 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752435', 'tblTempVendorCDR_20' ) start [2025-03-24 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752435', 'tblTempVendorCDR_20' ) end [2025-03-24 13:23:22] Production.INFO: ProcessCDR(1,14752435,1,1,2) [2025-03-24 13:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752435', 'tblTempUsageDetail_20' ) start [2025-03-24 13:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752435', 'tblTempUsageDetail_20' ) end [2025-03-24 13:23:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 13:23:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 13:23:27] Production.INFO: ==2596== Releasing lock... [2025-03-24 13:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 13:23:27] Production.INFO: 73 MB #Memory Used# [2025-03-24 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 10:24:05 [end_date_ymd] => 2025-03-24 13:24:05 [RateCDR] => 1 ) [2025-03-24 13:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 10:24:05' and `end` < '2025-03-24 13:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 13:24:19] Production.INFO: count ==5994 [2025-03-24 13:24:22] Production.ERROR: pbx CDR StartTime 2025-03-24 10:24:05 - End Time 2025-03-24 13:24:05 [2025-03-24 13:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752440', 'tblTempUsageDetail_20' ) start [2025-03-24 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752440', 'tblTempUsageDetail_20' ) end [2025-03-24 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752440', 'tblTempVendorCDR_20' ) start [2025-03-24 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752440', 'tblTempVendorCDR_20' ) end [2025-03-24 13:24:22] Production.INFO: ProcessCDR(1,14752440,1,1,2) [2025-03-24 13:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752440', 'tblTempUsageDetail_20' ) start [2025-03-24 13:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752440', 'tblTempUsageDetail_20' ) end [2025-03-24 13:24:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 13:24:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 13:24:27] Production.INFO: ==2682== Releasing lock... [2025-03-24 13:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 13:24:27] Production.INFO: 73 MB #Memory Used# [2025-03-24 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 10:25:05 [end_date_ymd] => 2025-03-24 13:25:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 10:25:05' and `end` < '2025-03-24 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-03-24 13:25:19] Production.INFO: count ==6001 [2025-03-24 13:25:21] Production.ERROR: pbx CDR StartTime 2025-03-24 10:25:05 - End Time 2025-03-24 13:25:05 [2025-03-24 13:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752445', 'tblTempUsageDetail_20' ) start [2025-03-24 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752445', 'tblTempUsageDetail_20' ) end [2025-03-24 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752445', 'tblTempVendorCDR_20' ) start [2025-03-24 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752445', 'tblTempVendorCDR_20' ) end [2025-03-24 13:25:21] Production.INFO: ProcessCDR(1,14752445,1,1,2) [2025-03-24 13:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752445', 'tblTempUsageDetail_20' ) start [2025-03-24 13:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752445', 'tblTempUsageDetail_20' ) end [2025-03-24 13:25:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 13:25:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 13:25:27] Production.INFO: ==2768== Releasing lock... [2025-03-24 13:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 13:25:27] Production.INFO: 73 MB #Memory Used# [2025-03-24 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 10:26:05 [end_date_ymd] => 2025-03-24 13:26:05 [RateCDR] => 1 ) [2025-03-24 13:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 10:26:05' and `end` < '2025-03-24 13:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 13:26:19] Production.INFO: count ==6004 [2025-03-24 13:26:21] Production.ERROR: pbx CDR StartTime 2025-03-24 10:26:05 - End Time 2025-03-24 13:26:05 [2025-03-24 13:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752450', 'tblTempUsageDetail_20' ) start [2025-03-24 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752450', 'tblTempUsageDetail_20' ) end [2025-03-24 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752450', 'tblTempVendorCDR_20' ) start [2025-03-24 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752450', 'tblTempVendorCDR_20' ) end [2025-03-24 13:26:21] Production.INFO: ProcessCDR(1,14752450,1,1,2) [2025-03-24 13:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752450', 'tblTempUsageDetail_20' ) start [2025-03-24 13:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752450', 'tblTempUsageDetail_20' ) end [2025-03-24 13:26:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 13:26:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 13:26:26] Production.INFO: ==2855== Releasing lock... [2025-03-24 13:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 13:26:26] Production.INFO: 73 MB #Memory Used# [2025-03-24 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 10:27:05 [end_date_ymd] => 2025-03-24 13:27:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 10:27:05' and `end` < '2025-03-24 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-03-24 13:27:19] Production.INFO: count ==5985 [2025-03-24 13:27:22] Production.ERROR: pbx CDR StartTime 2025-03-24 10:27:05 - End Time 2025-03-24 13:27:05 [2025-03-24 13:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752455', 'tblTempUsageDetail_20' ) start [2025-03-24 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752455', 'tblTempUsageDetail_20' ) end [2025-03-24 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752455', 'tblTempVendorCDR_20' ) start [2025-03-24 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752455', 'tblTempVendorCDR_20' ) end [2025-03-24 13:27:22] Production.INFO: ProcessCDR(1,14752455,1,1,2) [2025-03-24 13:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752455', 'tblTempUsageDetail_20' ) start [2025-03-24 13:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752455', 'tblTempUsageDetail_20' ) end [2025-03-24 13:27:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 13:27:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 13:27:27] Production.INFO: ==2980== Releasing lock... [2025-03-24 13:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 13:27:27] Production.INFO: 72.75 MB #Memory Used# [2025-03-24 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 10:28:05 [end_date_ymd] => 2025-03-24 13:28:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 10:28:05' and `end` < '2025-03-24 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-03-24 13:28:19] Production.INFO: count ==6033 [2025-03-24 13:28:22] Production.ERROR: pbx CDR StartTime 2025-03-24 10:28:05 - End Time 2025-03-24 13:28:05 [2025-03-24 13:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752460', 'tblTempUsageDetail_20' ) start [2025-03-24 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752460', 'tblTempUsageDetail_20' ) end [2025-03-24 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752460', 'tblTempVendorCDR_20' ) start [2025-03-24 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752460', 'tblTempVendorCDR_20' ) end [2025-03-24 13:28:22] Production.INFO: ProcessCDR(1,14752460,1,1,2) [2025-03-24 13:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752460', 'tblTempUsageDetail_20' ) start [2025-03-24 13:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752460', 'tblTempUsageDetail_20' ) end [2025-03-24 13:28:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 13:28:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 13:28:27] Production.INFO: ==3073== Releasing lock... [2025-03-24 13:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 13:28:27] Production.INFO: 73.25 MB #Memory Used# [2025-03-24 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 10:29:05 [end_date_ymd] => 2025-03-24 13:29:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 10:29:05' and `end` < '2025-03-24 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-03-24 13:29:19] Production.INFO: count ==6029 [2025-03-24 13:29:21] Production.ERROR: pbx CDR StartTime 2025-03-24 10:29:05 - End Time 2025-03-24 13:29:05 [2025-03-24 13:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752465', 'tblTempUsageDetail_20' ) start [2025-03-24 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752465', 'tblTempUsageDetail_20' ) end [2025-03-24 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752465', 'tblTempVendorCDR_20' ) start [2025-03-24 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752465', 'tblTempVendorCDR_20' ) end [2025-03-24 13:29:21] Production.INFO: ProcessCDR(1,14752465,1,1,2) [2025-03-24 13:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752465', 'tblTempUsageDetail_20' ) start [2025-03-24 13:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752465', 'tblTempUsageDetail_20' ) end [2025-03-24 13:29:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 13:29:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 13:29:26] Production.INFO: ==3166== Releasing lock... [2025-03-24 13:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 13:29:26] Production.INFO: 73.25 MB #Memory Used# [2025-03-24 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 10:30:06 [end_date_ymd] => 2025-03-24 13:30:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 10:30:06' and `end` < '2025-03-24 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-03-24 13:30:20] Production.INFO: count ==6023 [2025-03-24 13:30:23] Production.ERROR: pbx CDR StartTime 2025-03-24 10:30:06 - End Time 2025-03-24 13:30:06 [2025-03-24 13:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 13:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752471', 'tblTempUsageDetail_20' ) start [2025-03-24 13:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752471', 'tblTempUsageDetail_20' ) end [2025-03-24 13:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752471', 'tblTempVendorCDR_20' ) start [2025-03-24 13:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752471', 'tblTempVendorCDR_20' ) end [2025-03-24 13:30:23] Production.INFO: ProcessCDR(1,14752471,1,1,2) [2025-03-24 13:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752471', 'tblTempUsageDetail_20' ) start [2025-03-24 13:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752471', 'tblTempUsageDetail_20' ) end [2025-03-24 13:30:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 13:30:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 13:30:28] Production.INFO: ==3257== Releasing lock... [2025-03-24 13:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 13:30:28] Production.INFO: 73 MB #Memory Used# [2025-03-24 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 10:31:05 [end_date_ymd] => 2025-03-24 13:31:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 10:31:05' and `end` < '2025-03-24 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-03-24 13:31:19] Production.INFO: count ==5952 [2025-03-24 13:31:21] Production.ERROR: pbx CDR StartTime 2025-03-24 10:31:05 - End Time 2025-03-24 13:31:05 [2025-03-24 13:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752476', 'tblTempUsageDetail_20' ) start [2025-03-24 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752476', 'tblTempUsageDetail_20' ) end [2025-03-24 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752476', 'tblTempVendorCDR_20' ) start [2025-03-24 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752476', 'tblTempVendorCDR_20' ) end [2025-03-24 13:31:22] Production.INFO: ProcessCDR(1,14752476,1,1,2) [2025-03-24 13:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752476', 'tblTempUsageDetail_20' ) start [2025-03-24 13:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752476', 'tblTempUsageDetail_20' ) end [2025-03-24 13:31:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 13:31:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 13:31:27] Production.INFO: ==3359== Releasing lock... [2025-03-24 13:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 13:31:27] Production.INFO: 72.5 MB #Memory Used# [2025-03-24 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 10:32:05 [end_date_ymd] => 2025-03-24 13:32:05 [RateCDR] => 1 ) [2025-03-24 13:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 10:32:05' and `end` < '2025-03-24 13:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 13:32:19] Production.INFO: count ==5891 [2025-03-24 13:32:21] Production.ERROR: pbx CDR StartTime 2025-03-24 10:32:05 - End Time 2025-03-24 13:32:05 [2025-03-24 13:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752481', 'tblTempUsageDetail_20' ) start [2025-03-24 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752481', 'tblTempUsageDetail_20' ) end [2025-03-24 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752481', 'tblTempVendorCDR_20' ) start [2025-03-24 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752481', 'tblTempVendorCDR_20' ) end [2025-03-24 13:32:21] Production.INFO: ProcessCDR(1,14752481,1,1,2) [2025-03-24 13:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752481', 'tblTempUsageDetail_20' ) start [2025-03-24 13:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752481', 'tblTempUsageDetail_20' ) end [2025-03-24 13:32:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 13:32:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 13:32:26] Production.INFO: ==3446== Releasing lock... [2025-03-24 13:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 13:32:26] Production.INFO: 72 MB #Memory Used# [2025-03-24 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 10:33:05 [end_date_ymd] => 2025-03-24 13:33:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 10:33:05' and `end` < '2025-03-24 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-03-24 13:33:19] Production.INFO: count ==5875 [2025-03-24 13:33:22] Production.ERROR: pbx CDR StartTime 2025-03-24 10:33:05 - End Time 2025-03-24 13:33:05 [2025-03-24 13:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752486', 'tblTempUsageDetail_20' ) start [2025-03-24 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752486', 'tblTempUsageDetail_20' ) end [2025-03-24 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752486', 'tblTempVendorCDR_20' ) start [2025-03-24 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752486', 'tblTempVendorCDR_20' ) end [2025-03-24 13:33:22] Production.INFO: ProcessCDR(1,14752486,1,1,2) [2025-03-24 13:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752486', 'tblTempUsageDetail_20' ) start [2025-03-24 13:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752486', 'tblTempUsageDetail_20' ) end [2025-03-24 13:33:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 13:33:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 13:33:27] Production.INFO: ==3544== Releasing lock... [2025-03-24 13:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 13:33:27] Production.INFO: 72 MB #Memory Used# [2025-03-24 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 10:34:05 [end_date_ymd] => 2025-03-24 13:34:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 10:34:05' and `end` < '2025-03-24 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-03-24 13:34:19] Production.INFO: count ==5862 [2025-03-24 13:34:21] Production.ERROR: pbx CDR StartTime 2025-03-24 10:34:05 - End Time 2025-03-24 13:34:05 [2025-03-24 13:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752491', 'tblTempUsageDetail_20' ) start [2025-03-24 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752491', 'tblTempUsageDetail_20' ) end [2025-03-24 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752491', 'tblTempVendorCDR_20' ) start [2025-03-24 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752491', 'tblTempVendorCDR_20' ) end [2025-03-24 13:34:21] Production.INFO: ProcessCDR(1,14752491,1,1,2) [2025-03-24 13:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752491', 'tblTempUsageDetail_20' ) start [2025-03-24 13:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752491', 'tblTempUsageDetail_20' ) end [2025-03-24 13:34:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 13:34:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 13:34:27] Production.INFO: ==3636== Releasing lock... [2025-03-24 13:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 13:34:27] Production.INFO: 72 MB #Memory Used# [2025-03-24 13:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 10:35:06 [end_date_ymd] => 2025-03-24 13:35:06 [RateCDR] => 1 ) [2025-03-24 13: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-03-24 10:35:06' and `end` < '2025-03-24 13: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-03-24 13:35:19] Production.INFO: count ==5830 [2025-03-24 13:35:22] Production.ERROR: pbx CDR StartTime 2025-03-24 10:35:06 - End Time 2025-03-24 13:35:06 [2025-03-24 13:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 13:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752496', 'tblTempUsageDetail_20' ) start [2025-03-24 13:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752496', 'tblTempUsageDetail_20' ) end [2025-03-24 13:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752496', 'tblTempVendorCDR_20' ) start [2025-03-24 13:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752496', 'tblTempVendorCDR_20' ) end [2025-03-24 13:35:22] Production.INFO: ProcessCDR(1,14752496,1,1,2) [2025-03-24 13:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752496', 'tblTempUsageDetail_20' ) start [2025-03-24 13:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752496', 'tblTempUsageDetail_20' ) end [2025-03-24 13:35:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 13:35:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 13:35:27] Production.INFO: ==3731== Releasing lock... [2025-03-24 13:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 13:35:27] Production.INFO: 71.75 MB #Memory Used# [2025-03-24 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 10:36:05 [end_date_ymd] => 2025-03-24 13:36:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 10:36:05' and `end` < '2025-03-24 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-03-24 13:36:19] Production.INFO: count ==5832 [2025-03-24 13:36:21] Production.ERROR: pbx CDR StartTime 2025-03-24 10:36:05 - End Time 2025-03-24 13:36:05 [2025-03-24 13:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752501', 'tblTempUsageDetail_20' ) start [2025-03-24 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752501', 'tblTempUsageDetail_20' ) end [2025-03-24 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752501', 'tblTempVendorCDR_20' ) start [2025-03-24 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752501', 'tblTempVendorCDR_20' ) end [2025-03-24 13:36:21] Production.INFO: ProcessCDR(1,14752501,1,1,2) [2025-03-24 13:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752501', 'tblTempUsageDetail_20' ) start [2025-03-24 13:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752501', 'tblTempUsageDetail_20' ) end [2025-03-24 13:36:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 13:36:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 13:36:26] Production.INFO: ==3817== Releasing lock... [2025-03-24 13:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 13:36:26] Production.INFO: 71.75 MB #Memory Used# [2025-03-24 13:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 10:37:06 [end_date_ymd] => 2025-03-24 13:37:06 [RateCDR] => 1 ) [2025-03-24 13: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-03-24 10:37:06' and `end` < '2025-03-24 13: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-03-24 13:37:19] Production.INFO: count ==5818 [2025-03-24 13:37:22] Production.ERROR: pbx CDR StartTime 2025-03-24 10:37:06 - End Time 2025-03-24 13:37:06 [2025-03-24 13:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752506', 'tblTempUsageDetail_20' ) start [2025-03-24 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752506', 'tblTempUsageDetail_20' ) end [2025-03-24 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752506', 'tblTempVendorCDR_20' ) start [2025-03-24 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752506', 'tblTempVendorCDR_20' ) end [2025-03-24 13:37:22] Production.INFO: ProcessCDR(1,14752506,1,1,2) [2025-03-24 13:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752506', 'tblTempUsageDetail_20' ) start [2025-03-24 13:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752506', 'tblTempUsageDetail_20' ) end [2025-03-24 13:37:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 13:37:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 13:37:27] Production.INFO: ==3910== Releasing lock... [2025-03-24 13:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 13:37:27] Production.INFO: 71.5 MB #Memory Used# [2025-03-24 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 10:38:05 [end_date_ymd] => 2025-03-24 13:38:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 10:38:05' and `end` < '2025-03-24 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-03-24 13:38:18] Production.INFO: count ==5820 [2025-03-24 13:38:21] Production.ERROR: pbx CDR StartTime 2025-03-24 10:38:05 - End Time 2025-03-24 13:38:05 [2025-03-24 13:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752511', 'tblTempUsageDetail_20' ) start [2025-03-24 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752511', 'tblTempUsageDetail_20' ) end [2025-03-24 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752511', 'tblTempVendorCDR_20' ) start [2025-03-24 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752511', 'tblTempVendorCDR_20' ) end [2025-03-24 13:38:21] Production.INFO: ProcessCDR(1,14752511,1,1,2) [2025-03-24 13:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752511', 'tblTempUsageDetail_20' ) start [2025-03-24 13:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752511', 'tblTempUsageDetail_20' ) end [2025-03-24 13:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 13:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 13:38:26] Production.INFO: ==4004== Releasing lock... [2025-03-24 13:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 13:38:26] Production.INFO: 71.5 MB #Memory Used# [2025-03-24 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 10:39:05 [end_date_ymd] => 2025-03-24 13:39:05 [RateCDR] => 1 ) [2025-03-24 13:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 10:39:05' and `end` < '2025-03-24 13:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 13:39:18] Production.INFO: count ==5836 [2025-03-24 13:39:21] Production.ERROR: pbx CDR StartTime 2025-03-24 10:39:05 - End Time 2025-03-24 13:39:05 [2025-03-24 13:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752516', 'tblTempUsageDetail_20' ) start [2025-03-24 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752516', 'tblTempUsageDetail_20' ) end [2025-03-24 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752516', 'tblTempVendorCDR_20' ) start [2025-03-24 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752516', 'tblTempVendorCDR_20' ) end [2025-03-24 13:39:21] Production.INFO: ProcessCDR(1,14752516,1,1,2) [2025-03-24 13:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752516', 'tblTempUsageDetail_20' ) start [2025-03-24 13:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752516', 'tblTempUsageDetail_20' ) end [2025-03-24 13:39:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 13:39:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 13:39:26] Production.INFO: ==4095== Releasing lock... [2025-03-24 13:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 13:39:26] Production.INFO: 71.75 MB #Memory Used# [2025-03-24 13:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 10:40:06 [end_date_ymd] => 2025-03-24 13:40:06 [RateCDR] => 1 ) [2025-03-24 13:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 10:40:06' and `end` < '2025-03-24 13:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 13:40:20] Production.INFO: count ==5838 [2025-03-24 13:40:22] Production.ERROR: pbx CDR StartTime 2025-03-24 10:40:06 - End Time 2025-03-24 13:40:06 [2025-03-24 13:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752521', 'tblTempUsageDetail_20' ) start [2025-03-24 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752521', 'tblTempUsageDetail_20' ) end [2025-03-24 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752521', 'tblTempVendorCDR_20' ) start [2025-03-24 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752521', 'tblTempVendorCDR_20' ) end [2025-03-24 13:40:22] Production.INFO: ProcessCDR(1,14752521,1,1,2) [2025-03-24 13:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752521', 'tblTempUsageDetail_20' ) start [2025-03-24 13:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752521', 'tblTempUsageDetail_20' ) end [2025-03-24 13:40:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 13:40:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 13:40:27] Production.INFO: ==4194== Releasing lock... [2025-03-24 13:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 13:40:27] Production.INFO: 71.75 MB #Memory Used# [2025-03-24 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 10:41:05 [end_date_ymd] => 2025-03-24 13:41:05 [RateCDR] => 1 ) [2025-03-24 13:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 10:41:05' and `end` < '2025-03-24 13:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 13:41:19] Production.INFO: count ==5832 [2025-03-24 13:41:21] Production.ERROR: pbx CDR StartTime 2025-03-24 10:41:05 - End Time 2025-03-24 13:41:05 [2025-03-24 13:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752527', 'tblTempUsageDetail_20' ) start [2025-03-24 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752527', 'tblTempUsageDetail_20' ) end [2025-03-24 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752527', 'tblTempVendorCDR_20' ) start [2025-03-24 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752527', 'tblTempVendorCDR_20' ) end [2025-03-24 13:41:21] Production.INFO: ProcessCDR(1,14752527,1,1,2) [2025-03-24 13:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752527', 'tblTempUsageDetail_20' ) start [2025-03-24 13:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752527', 'tblTempUsageDetail_20' ) end [2025-03-24 13:41:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 13:41:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 13:41:24] Production.INFO: ==4288== Releasing lock... [2025-03-24 13:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 13:41:24] Production.INFO: 71.75 MB #Memory Used# [2025-03-24 13:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 10:42:06 [end_date_ymd] => 2025-03-24 13:42:06 [RateCDR] => 1 ) [2025-03-24 13:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 10:42:06' and `end` < '2025-03-24 13:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 13:42:19] Production.INFO: count ==5830 [2025-03-24 13:42:22] Production.ERROR: pbx CDR StartTime 2025-03-24 10:42:06 - End Time 2025-03-24 13:42:06 [2025-03-24 13:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752532', 'tblTempUsageDetail_20' ) start [2025-03-24 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752532', 'tblTempUsageDetail_20' ) end [2025-03-24 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752532', 'tblTempVendorCDR_20' ) start [2025-03-24 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752532', 'tblTempVendorCDR_20' ) end [2025-03-24 13:42:22] Production.INFO: ProcessCDR(1,14752532,1,1,2) [2025-03-24 13:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752532', 'tblTempUsageDetail_20' ) start [2025-03-24 13:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752532', 'tblTempUsageDetail_20' ) end [2025-03-24 13:42:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 13:42:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 13:42:27] Production.INFO: ==4417== Releasing lock... [2025-03-24 13:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 13:42:27] Production.INFO: 71.75 MB #Memory Used# [2025-03-24 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 10:43:05 [end_date_ymd] => 2025-03-24 13:43:05 [RateCDR] => 1 ) [2025-03-24 13:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 10:43:05' and `end` < '2025-03-24 13:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 13:43:19] Production.INFO: count ==5824 [2025-03-24 13:43:22] Production.ERROR: pbx CDR StartTime 2025-03-24 10:43:05 - End Time 2025-03-24 13:43:05 [2025-03-24 13:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752537', 'tblTempUsageDetail_20' ) start [2025-03-24 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752537', 'tblTempUsageDetail_20' ) end [2025-03-24 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752537', 'tblTempVendorCDR_20' ) start [2025-03-24 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752537', 'tblTempVendorCDR_20' ) end [2025-03-24 13:43:22] Production.INFO: ProcessCDR(1,14752537,1,1,2) [2025-03-24 13:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:43:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752537', 'tblTempUsageDetail_20' ) start [2025-03-24 13:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752537', 'tblTempUsageDetail_20' ) end [2025-03-24 13:43:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 13:43:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 13:43:28] Production.INFO: ==4511== Releasing lock... [2025-03-24 13:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 13:43:28] Production.INFO: 71.5 MB #Memory Used# [2025-03-24 13:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 10:44:06 [end_date_ymd] => 2025-03-24 13:44:06 [RateCDR] => 1 ) [2025-03-24 13: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-03-24 10:44:06' and `end` < '2025-03-24 13: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-03-24 13:44:19] Production.INFO: count ==5821 [2025-03-24 13:44:22] Production.ERROR: pbx CDR StartTime 2025-03-24 10:44:06 - End Time 2025-03-24 13:44:06 [2025-03-24 13:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 13:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752542', 'tblTempUsageDetail_20' ) start [2025-03-24 13:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752542', 'tblTempUsageDetail_20' ) end [2025-03-24 13:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752542', 'tblTempVendorCDR_20' ) start [2025-03-24 13:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752542', 'tblTempVendorCDR_20' ) end [2025-03-24 13:44:22] Production.INFO: ProcessCDR(1,14752542,1,1,2) [2025-03-24 13:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752542', 'tblTempUsageDetail_20' ) start [2025-03-24 13:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752542', 'tblTempUsageDetail_20' ) end [2025-03-24 13:44:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 13:44:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 13:44:28] Production.INFO: ==4610== Releasing lock... [2025-03-24 13:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 13:44:28] Production.INFO: 71.5 MB #Memory Used# [2025-03-24 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 10:45:05 [end_date_ymd] => 2025-03-24 13:45:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 10:45:05' and `end` < '2025-03-24 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-03-24 13:45:18] Production.INFO: count ==5789 [2025-03-24 13:45:21] Production.ERROR: pbx CDR StartTime 2025-03-24 10:45:05 - End Time 2025-03-24 13:45:05 [2025-03-24 13:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752547', 'tblTempUsageDetail_20' ) start [2025-03-24 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752547', 'tblTempUsageDetail_20' ) end [2025-03-24 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752547', 'tblTempVendorCDR_20' ) start [2025-03-24 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752547', 'tblTempVendorCDR_20' ) end [2025-03-24 13:45:21] Production.INFO: ProcessCDR(1,14752547,1,1,2) [2025-03-24 13:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752547', 'tblTempUsageDetail_20' ) start [2025-03-24 13:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752547', 'tblTempUsageDetail_20' ) end [2025-03-24 13:45:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 13:45:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 13:45:26] Production.INFO: ==4703== Releasing lock... [2025-03-24 13:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 13:45:26] Production.INFO: 71.25 MB #Memory Used# [2025-03-24 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 10:46:05 [end_date_ymd] => 2025-03-24 13:46:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 10:46:05' and `end` < '2025-03-24 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-03-24 13:46:19] Production.INFO: count ==5787 [2025-03-24 13:46:21] Production.ERROR: pbx CDR StartTime 2025-03-24 10:46:05 - End Time 2025-03-24 13:46:05 [2025-03-24 13:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752552', 'tblTempUsageDetail_20' ) start [2025-03-24 13:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752552', 'tblTempUsageDetail_20' ) end [2025-03-24 13:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752552', 'tblTempVendorCDR_20' ) start [2025-03-24 13:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752552', 'tblTempVendorCDR_20' ) end [2025-03-24 13:46:22] Production.INFO: ProcessCDR(1,14752552,1,1,2) [2025-03-24 13:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752552', 'tblTempUsageDetail_20' ) start [2025-03-24 13:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752552', 'tblTempUsageDetail_20' ) end [2025-03-24 13:46:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 13:46:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 13:46:27] Production.INFO: ==4794== Releasing lock... [2025-03-24 13:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 13:46:27] Production.INFO: 71.25 MB #Memory Used# [2025-03-24 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 10:47:05 [end_date_ymd] => 2025-03-24 13:47:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 10:47:05' and `end` < '2025-03-24 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-03-24 13:47:19] Production.INFO: count ==5776 [2025-03-24 13:47:21] Production.ERROR: pbx CDR StartTime 2025-03-24 10:47:05 - End Time 2025-03-24 13:47:05 [2025-03-24 13:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752557', 'tblTempUsageDetail_20' ) start [2025-03-24 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752557', 'tblTempUsageDetail_20' ) end [2025-03-24 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752557', 'tblTempVendorCDR_20' ) start [2025-03-24 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752557', 'tblTempVendorCDR_20' ) end [2025-03-24 13:47:21] Production.INFO: ProcessCDR(1,14752557,1,1,2) [2025-03-24 13:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752557', 'tblTempUsageDetail_20' ) start [2025-03-24 13:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752557', 'tblTempUsageDetail_20' ) end [2025-03-24 13:47:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 13:47:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 13:47:24] Production.INFO: ==4887== Releasing lock... [2025-03-24 13:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 13:47:24] Production.INFO: 71.25 MB #Memory Used# [2025-03-24 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 10:48:05 [end_date_ymd] => 2025-03-24 13:48:05 [RateCDR] => 1 ) [2025-03-24 13:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 10:48:05' and `end` < '2025-03-24 13:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 13:48:19] Production.INFO: count ==5786 [2025-03-24 13:48:21] Production.ERROR: pbx CDR StartTime 2025-03-24 10:48:05 - End Time 2025-03-24 13:48:05 [2025-03-24 13:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752562', 'tblTempUsageDetail_20' ) start [2025-03-24 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752562', 'tblTempUsageDetail_20' ) end [2025-03-24 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752562', 'tblTempVendorCDR_20' ) start [2025-03-24 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752562', 'tblTempVendorCDR_20' ) end [2025-03-24 13:48:22] Production.INFO: ProcessCDR(1,14752562,1,1,2) [2025-03-24 13:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752562', 'tblTempUsageDetail_20' ) start [2025-03-24 13:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752562', 'tblTempUsageDetail_20' ) end [2025-03-24 13:48:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 13:48:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 13:48:27] Production.INFO: ==4976== Releasing lock... [2025-03-24 13:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 13:48:27] Production.INFO: 71.25 MB #Memory Used# [2025-03-24 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 10:49:05 [end_date_ymd] => 2025-03-24 13:49:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 10:49:05' and `end` < '2025-03-24 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-03-24 13:49:19] Production.INFO: count ==5741 [2025-03-24 13:49:21] Production.ERROR: pbx CDR StartTime 2025-03-24 10:49:05 - End Time 2025-03-24 13:49:05 [2025-03-24 13:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752567', 'tblTempUsageDetail_20' ) start [2025-03-24 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752567', 'tblTempUsageDetail_20' ) end [2025-03-24 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752567', 'tblTempVendorCDR_20' ) start [2025-03-24 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752567', 'tblTempVendorCDR_20' ) end [2025-03-24 13:49:21] Production.INFO: ProcessCDR(1,14752567,1,1,2) [2025-03-24 13:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752567', 'tblTempUsageDetail_20' ) start [2025-03-24 13:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752567', 'tblTempUsageDetail_20' ) end [2025-03-24 13:49:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 13:49:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 13:49:26] Production.INFO: ==5069== Releasing lock... [2025-03-24 13:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 13:49:26] Production.INFO: 71 MB #Memory Used# [2025-03-24 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 10:50:06 [end_date_ymd] => 2025-03-24 13:50:06 [RateCDR] => 1 ) [2025-03-24 13:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 10:50:06' and `end` < '2025-03-24 13:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 13:50:20] Production.INFO: count ==5752 [2025-03-24 13:50:22] Production.ERROR: pbx CDR StartTime 2025-03-24 10:50:06 - End Time 2025-03-24 13:50:06 [2025-03-24 13:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752573', 'tblTempUsageDetail_20' ) start [2025-03-24 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752573', 'tblTempUsageDetail_20' ) end [2025-03-24 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752573', 'tblTempVendorCDR_20' ) start [2025-03-24 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752573', 'tblTempVendorCDR_20' ) end [2025-03-24 13:50:22] Production.INFO: ProcessCDR(1,14752573,1,1,2) [2025-03-24 13:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752573', 'tblTempUsageDetail_20' ) start [2025-03-24 13:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752573', 'tblTempUsageDetail_20' ) end [2025-03-24 13:50:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 13:50:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 13:50:27] Production.INFO: ==5167== Releasing lock... [2025-03-24 13:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 13:50:27] Production.INFO: 71 MB #Memory Used# [2025-03-24 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 10:51:05 [end_date_ymd] => 2025-03-24 13:51:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 10:51:05' and `end` < '2025-03-24 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-03-24 13:51:18] Production.INFO: count ==5719 [2025-03-24 13:51:20] Production.ERROR: pbx CDR StartTime 2025-03-24 10:51:05 - End Time 2025-03-24 13:51:05 [2025-03-24 13:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 13:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752578', 'tblTempUsageDetail_20' ) start [2025-03-24 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752578', 'tblTempUsageDetail_20' ) end [2025-03-24 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752578', 'tblTempVendorCDR_20' ) start [2025-03-24 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752578', 'tblTempVendorCDR_20' ) end [2025-03-24 13:51:21] Production.INFO: ProcessCDR(1,14752578,1,1,2) [2025-03-24 13:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752578', 'tblTempUsageDetail_20' ) start [2025-03-24 13:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752578', 'tblTempUsageDetail_20' ) end [2025-03-24 13:51:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 13:51:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 13:51:25] Production.INFO: ==5266== Releasing lock... [2025-03-24 13:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 13:51:25] Production.INFO: 70.75 MB #Memory Used# [2025-03-24 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 10:52:05 [end_date_ymd] => 2025-03-24 13:52:05 [RateCDR] => 1 ) [2025-03-24 13:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 10:52:05' and `end` < '2025-03-24 13:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 13:52:19] Production.INFO: count ==5718 [2025-03-24 13:52:21] Production.ERROR: pbx CDR StartTime 2025-03-24 10:52:05 - End Time 2025-03-24 13:52:05 [2025-03-24 13:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752583', 'tblTempUsageDetail_20' ) start [2025-03-24 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752583', 'tblTempUsageDetail_20' ) end [2025-03-24 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752583', 'tblTempVendorCDR_20' ) start [2025-03-24 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752583', 'tblTempVendorCDR_20' ) end [2025-03-24 13:52:22] Production.INFO: ProcessCDR(1,14752583,1,1,2) [2025-03-24 13:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752583', 'tblTempUsageDetail_20' ) start [2025-03-24 13:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752583', 'tblTempUsageDetail_20' ) end [2025-03-24 13:52:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 13:52:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 13:52:27] Production.INFO: ==5352== Releasing lock... [2025-03-24 13:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 13:52:27] Production.INFO: 70.75 MB #Memory Used# [2025-03-24 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 10:53:05 [end_date_ymd] => 2025-03-24 13:53:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 10:53:05' and `end` < '2025-03-24 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-03-24 13:53:19] Production.INFO: count ==5724 [2025-03-24 13:53:21] Production.ERROR: pbx CDR StartTime 2025-03-24 10:53:05 - End Time 2025-03-24 13:53:05 [2025-03-24 13:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752588', 'tblTempUsageDetail_20' ) start [2025-03-24 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752588', 'tblTempUsageDetail_20' ) end [2025-03-24 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752588', 'tblTempVendorCDR_20' ) start [2025-03-24 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752588', 'tblTempVendorCDR_20' ) end [2025-03-24 13:53:21] Production.INFO: ProcessCDR(1,14752588,1,1,2) [2025-03-24 13:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752588', 'tblTempUsageDetail_20' ) start [2025-03-24 13:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752588', 'tblTempUsageDetail_20' ) end [2025-03-24 13:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 13:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 13:53:26] Production.INFO: ==5448== Releasing lock... [2025-03-24 13:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 13:53:26] Production.INFO: 70.75 MB #Memory Used# [2025-03-24 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 10:54:05 [end_date_ymd] => 2025-03-24 13:54:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 10:54:05' and `end` < '2025-03-24 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-03-24 13:54:19] Production.INFO: count ==5717 [2025-03-24 13:54:21] Production.ERROR: pbx CDR StartTime 2025-03-24 10:54:05 - End Time 2025-03-24 13:54:05 [2025-03-24 13:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752593', 'tblTempUsageDetail_20' ) start [2025-03-24 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752593', 'tblTempUsageDetail_20' ) end [2025-03-24 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752593', 'tblTempVendorCDR_20' ) start [2025-03-24 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752593', 'tblTempVendorCDR_20' ) end [2025-03-24 13:54:21] Production.INFO: ProcessCDR(1,14752593,1,1,2) [2025-03-24 13:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752593', 'tblTempUsageDetail_20' ) start [2025-03-24 13:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752593', 'tblTempUsageDetail_20' ) end [2025-03-24 13:54:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 13:54:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 13:54:26] Production.INFO: ==5566== Releasing lock... [2025-03-24 13:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 13:54:26] Production.INFO: 70.75 MB #Memory Used# [2025-03-24 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 10:55:05 [end_date_ymd] => 2025-03-24 13:55:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 10:55:05' and `end` < '2025-03-24 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-03-24 13:55:18] Production.INFO: count ==5748 [2025-03-24 13:55:21] Production.ERROR: pbx CDR StartTime 2025-03-24 10:55:05 - End Time 2025-03-24 13:55:05 [2025-03-24 13:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752598', 'tblTempUsageDetail_20' ) start [2025-03-24 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752598', 'tblTempUsageDetail_20' ) end [2025-03-24 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752598', 'tblTempVendorCDR_20' ) start [2025-03-24 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752598', 'tblTempVendorCDR_20' ) end [2025-03-24 13:55:21] Production.INFO: ProcessCDR(1,14752598,1,1,2) [2025-03-24 13:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752598', 'tblTempUsageDetail_20' ) start [2025-03-24 13:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752598', 'tblTempUsageDetail_20' ) end [2025-03-24 13:55:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 13:55:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 13:55:26] Production.INFO: ==5656== Releasing lock... [2025-03-24 13:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 13:55:26] Production.INFO: 71 MB #Memory Used# [2025-03-24 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 10:56:05 [end_date_ymd] => 2025-03-24 13:56:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 10:56:05' and `end` < '2025-03-24 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-03-24 13:56:19] Production.INFO: count ==5755 [2025-03-24 13:56:21] Production.ERROR: pbx CDR StartTime 2025-03-24 10:56:05 - End Time 2025-03-24 13:56:05 [2025-03-24 13:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752603', 'tblTempUsageDetail_20' ) start [2025-03-24 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752603', 'tblTempUsageDetail_20' ) end [2025-03-24 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752603', 'tblTempVendorCDR_20' ) start [2025-03-24 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752603', 'tblTempVendorCDR_20' ) end [2025-03-24 13:56:21] Production.INFO: ProcessCDR(1,14752603,1,1,2) [2025-03-24 13:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752603', 'tblTempUsageDetail_20' ) start [2025-03-24 13:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752603', 'tblTempUsageDetail_20' ) end [2025-03-24 13:56:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 13:56:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 13:56:27] Production.INFO: ==5749== Releasing lock... [2025-03-24 13:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 13:56:27] Production.INFO: 71 MB #Memory Used# [2025-03-24 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 10:57:05 [end_date_ymd] => 2025-03-24 13:57:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 10:57:05' and `end` < '2025-03-24 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-03-24 13:57:19] Production.INFO: count ==5814 [2025-03-24 13:57:21] Production.ERROR: pbx CDR StartTime 2025-03-24 10:57:05 - End Time 2025-03-24 13:57:05 [2025-03-24 13:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752608', 'tblTempUsageDetail_20' ) start [2025-03-24 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752608', 'tblTempUsageDetail_20' ) end [2025-03-24 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752608', 'tblTempVendorCDR_20' ) start [2025-03-24 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752608', 'tblTempVendorCDR_20' ) end [2025-03-24 13:57:22] Production.INFO: ProcessCDR(1,14752608,1,1,2) [2025-03-24 13:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752608', 'tblTempUsageDetail_20' ) start [2025-03-24 13:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752608', 'tblTempUsageDetail_20' ) end [2025-03-24 13:57:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 13:57:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 13:57:27] Production.INFO: ==5842== Releasing lock... [2025-03-24 13:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 13:57:27] Production.INFO: 71.5 MB #Memory Used# [2025-03-24 13:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 10:58:06 [end_date_ymd] => 2025-03-24 13:58:06 [RateCDR] => 1 ) [2025-03-24 13:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 10:58:06' and `end` < '2025-03-24 13:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 13:58:20] Production.INFO: count ==5799 [2025-03-24 13:58:22] Production.ERROR: pbx CDR StartTime 2025-03-24 10:58:06 - End Time 2025-03-24 13:58:06 [2025-03-24 13:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 13:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752613', 'tblTempUsageDetail_20' ) start [2025-03-24 13:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752613', 'tblTempUsageDetail_20' ) end [2025-03-24 13:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752613', 'tblTempVendorCDR_20' ) start [2025-03-24 13:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752613', 'tblTempVendorCDR_20' ) end [2025-03-24 13:58:23] Production.INFO: ProcessCDR(1,14752613,1,1,2) [2025-03-24 13:58:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:58:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752613', 'tblTempUsageDetail_20' ) start [2025-03-24 13:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752613', 'tblTempUsageDetail_20' ) end [2025-03-24 13:58:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 13:58:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 13:58:28] Production.INFO: ==5973== Releasing lock... [2025-03-24 13:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 13:58:28] Production.INFO: 71.5 MB #Memory Used# [2025-03-24 13:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 10:59:04 [end_date_ymd] => 2025-03-24 13:59:04 [RateCDR] => 1 ) [2025-03-24 13:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 10:59:04' and `end` < '2025-03-24 13:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 13:59:18] Production.INFO: count ==5812 [2025-03-24 13:59:21] Production.ERROR: pbx CDR StartTime 2025-03-24 10:59:04 - End Time 2025-03-24 13:59:04 [2025-03-24 13:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752618', 'tblTempUsageDetail_20' ) start [2025-03-24 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752618', 'tblTempUsageDetail_20' ) end [2025-03-24 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752618', 'tblTempVendorCDR_20' ) start [2025-03-24 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752618', 'tblTempVendorCDR_20' ) end [2025-03-24 13:59:21] Production.INFO: ProcessCDR(1,14752618,1,1,2) [2025-03-24 13:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 13:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 13:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752618', 'tblTempUsageDetail_20' ) start [2025-03-24 13:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752618', 'tblTempUsageDetail_20' ) end [2025-03-24 13:59:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 13:59:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 13:59:26] Production.INFO: ==6069== Releasing lock... [2025-03-24 13:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 13:59:26] Production.INFO: 71.5 MB #Memory Used# [2025-03-24 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 11:00:06 [end_date_ymd] => 2025-03-24 14:00:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 11:00:06' and `end` < '2025-03-24 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-03-24 14:00:20] Production.INFO: count ==5803 [2025-03-24 14:00:22] Production.ERROR: pbx CDR StartTime 2025-03-24 11:00:06 - End Time 2025-03-24 14:00:06 [2025-03-24 14:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752624', 'tblTempUsageDetail_20' ) start [2025-03-24 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752624', 'tblTempUsageDetail_20' ) end [2025-03-24 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752624', 'tblTempVendorCDR_20' ) start [2025-03-24 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752624', 'tblTempVendorCDR_20' ) end [2025-03-24 14:00:23] Production.INFO: ProcessCDR(1,14752624,1,1,2) [2025-03-24 14:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752624', 'tblTempUsageDetail_20' ) start [2025-03-24 14:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752624', 'tblTempUsageDetail_20' ) end [2025-03-24 14:00:29] Production.ERROR: pbx prc_insertCDR start [2025-03-24 14:00:29] Production.ERROR: pbx prc_insertCDR end [2025-03-24 14:00:29] Production.INFO: ==6167== Releasing lock... [2025-03-24 14:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 14:00:29] Production.INFO: 71.5 MB #Memory Used# [2025-03-24 14:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 11:01:06 [end_date_ymd] => 2025-03-24 14:01:06 [RateCDR] => 1 ) [2025-03-24 14:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 11:01:06' and `end` < '2025-03-24 14:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 14:01:20] Production.INFO: count ==5801 [2025-03-24 14:01:23] Production.ERROR: pbx CDR StartTime 2025-03-24 11:01:06 - End Time 2025-03-24 14:01:06 [2025-03-24 14:01:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 14:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752629', 'tblTempUsageDetail_20' ) start [2025-03-24 14:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752629', 'tblTempUsageDetail_20' ) end [2025-03-24 14:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752629', 'tblTempVendorCDR_20' ) start [2025-03-24 14:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752629', 'tblTempVendorCDR_20' ) end [2025-03-24 14:01:23] Production.INFO: ProcessCDR(1,14752629,1,1,2) [2025-03-24 14:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:01:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:01:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:01:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752629', 'tblTempUsageDetail_20' ) start [2025-03-24 14:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752629', 'tblTempUsageDetail_20' ) end [2025-03-24 14:01:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 14:01:29] Production.ERROR: pbx prc_insertCDR end [2025-03-24 14:01:29] Production.INFO: ==6278== Releasing lock... [2025-03-24 14:01:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 14:01:29] Production.INFO: 71.5 MB #Memory Used# [2025-03-24 14:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 11:02:06 [end_date_ymd] => 2025-03-24 14:02:06 [RateCDR] => 1 ) [2025-03-24 14: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-03-24 11:02:06' and `end` < '2025-03-24 14: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-03-24 14:02:19] Production.INFO: count ==5790 [2025-03-24 14:02:22] Production.ERROR: pbx CDR StartTime 2025-03-24 11:02:06 - End Time 2025-03-24 14:02:06 [2025-03-24 14:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752634', 'tblTempUsageDetail_20' ) start [2025-03-24 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752634', 'tblTempUsageDetail_20' ) end [2025-03-24 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752634', 'tblTempVendorCDR_20' ) start [2025-03-24 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752634', 'tblTempVendorCDR_20' ) end [2025-03-24 14:02:22] Production.INFO: ProcessCDR(1,14752634,1,1,2) [2025-03-24 14:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752634', 'tblTempUsageDetail_20' ) start [2025-03-24 14:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752634', 'tblTempUsageDetail_20' ) end [2025-03-24 14:02:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 14:02:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 14:02:28] Production.INFO: ==6375== Releasing lock... [2025-03-24 14:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 14:02:28] Production.INFO: 71.25 MB #Memory Used# [2025-03-24 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 11:03:05 [end_date_ymd] => 2025-03-24 14:03:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 11:03:05' and `end` < '2025-03-24 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-03-24 14:03:19] Production.INFO: count ==5792 [2025-03-24 14:03:22] Production.ERROR: pbx CDR StartTime 2025-03-24 11:03:05 - End Time 2025-03-24 14:03:05 [2025-03-24 14:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752639', 'tblTempUsageDetail_20' ) start [2025-03-24 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752639', 'tblTempUsageDetail_20' ) end [2025-03-24 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752639', 'tblTempVendorCDR_20' ) start [2025-03-24 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752639', 'tblTempVendorCDR_20' ) end [2025-03-24 14:03:22] Production.INFO: ProcessCDR(1,14752639,1,1,2) [2025-03-24 14:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752639', 'tblTempUsageDetail_20' ) start [2025-03-24 14:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752639', 'tblTempUsageDetail_20' ) end [2025-03-24 14:03:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 14:03:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 14:03:28] Production.INFO: ==6470== Releasing lock... [2025-03-24 14:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 14:03:28] Production.INFO: 71.5 MB #Memory Used# [2025-03-24 14:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 11:04:05 [end_date_ymd] => 2025-03-24 14:04:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 11:04:05' and `end` < '2025-03-24 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-03-24 14:04:20] Production.INFO: count ==5756 [2025-03-24 14:04:22] Production.ERROR: pbx CDR StartTime 2025-03-24 11:04:05 - End Time 2025-03-24 14:04:05 [2025-03-24 14:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 14:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752644', 'tblTempUsageDetail_20' ) start [2025-03-24 14:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752644', 'tblTempUsageDetail_20' ) end [2025-03-24 14:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752644', 'tblTempVendorCDR_20' ) start [2025-03-24 14:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752644', 'tblTempVendorCDR_20' ) end [2025-03-24 14:04:22] Production.INFO: ProcessCDR(1,14752644,1,1,2) [2025-03-24 14:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752644', 'tblTempUsageDetail_20' ) start [2025-03-24 14:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752644', 'tblTempUsageDetail_20' ) end [2025-03-24 14:04:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 14:04:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 14:04:28] Production.INFO: ==6570== Releasing lock... [2025-03-24 14:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 14:04:28] Production.INFO: 71 MB #Memory Used# [2025-03-24 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 11:05:05 [end_date_ymd] => 2025-03-24 14:05:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 11:05:05' and `end` < '2025-03-24 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-03-24 14:05:19] Production.INFO: count ==5764 [2025-03-24 14:05:21] Production.ERROR: pbx CDR StartTime 2025-03-24 11:05:05 - End Time 2025-03-24 14:05:05 [2025-03-24 14:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752649', 'tblTempUsageDetail_20' ) start [2025-03-24 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752649', 'tblTempUsageDetail_20' ) end [2025-03-24 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752649', 'tblTempVendorCDR_20' ) start [2025-03-24 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752649', 'tblTempVendorCDR_20' ) end [2025-03-24 14:05:22] Production.INFO: ProcessCDR(1,14752649,1,1,2) [2025-03-24 14:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752649', 'tblTempUsageDetail_20' ) start [2025-03-24 14:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752649', 'tblTempUsageDetail_20' ) end [2025-03-24 14:05:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 14:05:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 14:05:28] Production.INFO: ==6668== Releasing lock... [2025-03-24 14:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 14:05:28] Production.INFO: 71.25 MB #Memory Used# [2025-03-24 14:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 11:06:06 [end_date_ymd] => 2025-03-24 14:06:06 [RateCDR] => 1 ) [2025-03-24 14: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-03-24 11:06:06' and `end` < '2025-03-24 14: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-03-24 14:06:20] Production.INFO: count ==5766 [2025-03-24 14:06:23] Production.ERROR: pbx CDR StartTime 2025-03-24 11:06:06 - End Time 2025-03-24 14:06:06 [2025-03-24 14:06:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 14:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752654', 'tblTempUsageDetail_20' ) start [2025-03-24 14:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752654', 'tblTempUsageDetail_20' ) end [2025-03-24 14:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752654', 'tblTempVendorCDR_20' ) start [2025-03-24 14:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752654', 'tblTempVendorCDR_20' ) end [2025-03-24 14:06:23] Production.INFO: ProcessCDR(1,14752654,1,1,2) [2025-03-24 14:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:06:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:06:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752654', 'tblTempUsageDetail_20' ) start [2025-03-24 14:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752654', 'tblTempUsageDetail_20' ) end [2025-03-24 14:06:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 14:06:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 14:06:28] Production.INFO: ==6771== Releasing lock... [2025-03-24 14:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 14:06:28] Production.INFO: 71.25 MB #Memory Used# [2025-03-24 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 11:07:05 [end_date_ymd] => 2025-03-24 14:07:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 11:07:05' and `end` < '2025-03-24 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-03-24 14:07:19] Production.INFO: count ==5776 [2025-03-24 14:07:22] Production.ERROR: pbx CDR StartTime 2025-03-24 11:07:05 - End Time 2025-03-24 14:07:05 [2025-03-24 14:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 14:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752659', 'tblTempUsageDetail_20' ) start [2025-03-24 14:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752659', 'tblTempUsageDetail_20' ) end [2025-03-24 14:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752659', 'tblTempVendorCDR_20' ) start [2025-03-24 14:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752659', 'tblTempVendorCDR_20' ) end [2025-03-24 14:07:22] Production.INFO: ProcessCDR(1,14752659,1,1,2) [2025-03-24 14:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752659', 'tblTempUsageDetail_20' ) start [2025-03-24 14:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752659', 'tblTempUsageDetail_20' ) end [2025-03-24 14:07:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 14:07:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 14:07:28] Production.INFO: ==6866== Releasing lock... [2025-03-24 14:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 14:07:28] Production.INFO: 71.25 MB #Memory Used# [2025-03-24 14:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 11:08:06 [end_date_ymd] => 2025-03-24 14:08:06 [RateCDR] => 1 ) [2025-03-24 14: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-03-24 11:08:06' and `end` < '2025-03-24 14: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-03-24 14:08:20] Production.INFO: count ==5783 [2025-03-24 14:08:23] Production.ERROR: pbx CDR StartTime 2025-03-24 11:08:06 - End Time 2025-03-24 14:08:06 [2025-03-24 14:08:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 14:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752664', 'tblTempUsageDetail_20' ) start [2025-03-24 14:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752664', 'tblTempUsageDetail_20' ) end [2025-03-24 14:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752664', 'tblTempVendorCDR_20' ) start [2025-03-24 14:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752664', 'tblTempVendorCDR_20' ) end [2025-03-24 14:08:23] Production.INFO: ProcessCDR(1,14752664,1,1,2) [2025-03-24 14:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:08:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:08:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752664', 'tblTempUsageDetail_20' ) start [2025-03-24 14:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752664', 'tblTempUsageDetail_20' ) end [2025-03-24 14:08:29] Production.ERROR: pbx prc_insertCDR start [2025-03-24 14:08:29] Production.ERROR: pbx prc_insertCDR end [2025-03-24 14:08:29] Production.INFO: ==6960== Releasing lock... [2025-03-24 14:08:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 14:08:29] Production.INFO: 71.25 MB #Memory Used# [2025-03-24 14:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 11:09:06 [end_date_ymd] => 2025-03-24 14:09:06 [RateCDR] => 1 ) [2025-03-24 14:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 11:09:06' and `end` < '2025-03-24 14:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 14:09:20] Production.INFO: count ==5783 [2025-03-24 14:09:22] Production.ERROR: pbx CDR StartTime 2025-03-24 11:09:06 - End Time 2025-03-24 14:09:06 [2025-03-24 14:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752669', 'tblTempUsageDetail_20' ) start [2025-03-24 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752669', 'tblTempUsageDetail_20' ) end [2025-03-24 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752669', 'tblTempVendorCDR_20' ) start [2025-03-24 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752669', 'tblTempVendorCDR_20' ) end [2025-03-24 14:09:22] Production.INFO: ProcessCDR(1,14752669,1,1,2) [2025-03-24 14:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752669', 'tblTempUsageDetail_20' ) start [2025-03-24 14:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752669', 'tblTempUsageDetail_20' ) end [2025-03-24 14:09:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 14:09:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 14:09:28] Production.INFO: ==7066== Releasing lock... [2025-03-24 14:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 14:09:28] Production.INFO: 71.25 MB #Memory Used# [2025-03-24 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 11:10:06 [end_date_ymd] => 2025-03-24 14:10:06 [RateCDR] => 1 ) [2025-03-24 14:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 11:10:06' and `end` < '2025-03-24 14:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 14:10:20] Production.INFO: count ==5780 [2025-03-24 14:10:23] Production.ERROR: pbx CDR StartTime 2025-03-24 11:10:06 - End Time 2025-03-24 14:10:06 [2025-03-24 14:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752675', 'tblTempUsageDetail_20' ) start [2025-03-24 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752675', 'tblTempUsageDetail_20' ) end [2025-03-24 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752675', 'tblTempVendorCDR_20' ) start [2025-03-24 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752675', 'tblTempVendorCDR_20' ) end [2025-03-24 14:10:23] Production.INFO: ProcessCDR(1,14752675,1,1,2) [2025-03-24 14:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752675', 'tblTempUsageDetail_20' ) start [2025-03-24 14:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752675', 'tblTempUsageDetail_20' ) end [2025-03-24 14:10:29] Production.ERROR: pbx prc_insertCDR start [2025-03-24 14:10:29] Production.ERROR: pbx prc_insertCDR end [2025-03-24 14:10:29] Production.INFO: ==7184== Releasing lock... [2025-03-24 14:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 14:10:29] Production.INFO: 71.25 MB #Memory Used# [2025-03-24 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 11:11:05 [end_date_ymd] => 2025-03-24 14:11:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 11:11:05' and `end` < '2025-03-24 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-03-24 14:11:18] Production.INFO: count ==5818 [2025-03-24 14:11:21] Production.ERROR: pbx CDR StartTime 2025-03-24 11:11:05 - End Time 2025-03-24 14:11:05 [2025-03-24 14:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752680', 'tblTempUsageDetail_20' ) start [2025-03-24 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752680', 'tblTempUsageDetail_20' ) end [2025-03-24 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752680', 'tblTempVendorCDR_20' ) start [2025-03-24 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752680', 'tblTempVendorCDR_20' ) end [2025-03-24 14:11:21] Production.INFO: ProcessCDR(1,14752680,1,1,2) [2025-03-24 14:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752680', 'tblTempUsageDetail_20' ) start [2025-03-24 14:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752680', 'tblTempUsageDetail_20' ) end [2025-03-24 14:11:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 14:11:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 14:11:26] Production.INFO: ==7277== Releasing lock... [2025-03-24 14:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 14:11:26] Production.INFO: 71.5 MB #Memory Used# [2025-03-24 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 11:12:05 [end_date_ymd] => 2025-03-24 14:12:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 11:12:05' and `end` < '2025-03-24 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-03-24 14:12:19] Production.INFO: count ==5820 [2025-03-24 14:12:22] Production.ERROR: pbx CDR StartTime 2025-03-24 11:12:05 - End Time 2025-03-24 14:12:05 [2025-03-24 14:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752685', 'tblTempUsageDetail_20' ) start [2025-03-24 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752685', 'tblTempUsageDetail_20' ) end [2025-03-24 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752685', 'tblTempVendorCDR_20' ) start [2025-03-24 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752685', 'tblTempVendorCDR_20' ) end [2025-03-24 14:12:22] Production.INFO: ProcessCDR(1,14752685,1,1,2) [2025-03-24 14:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752685', 'tblTempUsageDetail_20' ) start [2025-03-24 14:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752685', 'tblTempUsageDetail_20' ) end [2025-03-24 14:12:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 14:12:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 14:12:27] Production.INFO: ==7371== Releasing lock... [2025-03-24 14:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 14:12:27] Production.INFO: 71.5 MB #Memory Used# [2025-03-24 14:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 11:13:06 [end_date_ymd] => 2025-03-24 14:13:06 [RateCDR] => 1 ) [2025-03-24 14: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-03-24 11:13:06' and `end` < '2025-03-24 14: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-03-24 14:13:20] Production.INFO: count ==5835 [2025-03-24 14:13:22] Production.ERROR: pbx CDR StartTime 2025-03-24 11:13:06 - End Time 2025-03-24 14:13:06 [2025-03-24 14:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752690', 'tblTempUsageDetail_20' ) start [2025-03-24 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752690', 'tblTempUsageDetail_20' ) end [2025-03-24 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752690', 'tblTempVendorCDR_20' ) start [2025-03-24 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752690', 'tblTempVendorCDR_20' ) end [2025-03-24 14:13:22] Production.INFO: ProcessCDR(1,14752690,1,1,2) [2025-03-24 14:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752690', 'tblTempUsageDetail_20' ) start [2025-03-24 14:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752690', 'tblTempUsageDetail_20' ) end [2025-03-24 14:13:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 14:13:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 14:13:27] Production.INFO: ==7515== Releasing lock... [2025-03-24 14:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 14:13:27] Production.INFO: 71.75 MB #Memory Used# [2025-03-24 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 11:14:05 [end_date_ymd] => 2025-03-24 14:14:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 11:14:05' and `end` < '2025-03-24 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-03-24 14:14:19] Production.INFO: count ==5836 [2025-03-24 14:14:21] Production.ERROR: pbx CDR StartTime 2025-03-24 11:14:05 - End Time 2025-03-24 14:14:05 [2025-03-24 14:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752695', 'tblTempUsageDetail_20' ) start [2025-03-24 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752695', 'tblTempUsageDetail_20' ) end [2025-03-24 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752695', 'tblTempVendorCDR_20' ) start [2025-03-24 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752695', 'tblTempVendorCDR_20' ) end [2025-03-24 14:14:21] Production.INFO: ProcessCDR(1,14752695,1,1,2) [2025-03-24 14:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752695', 'tblTempUsageDetail_20' ) start [2025-03-24 14:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752695', 'tblTempUsageDetail_20' ) end [2025-03-24 14:14:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 14:14:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 14:14:27] Production.INFO: ==7614== Releasing lock... [2025-03-24 14:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 14:14:27] Production.INFO: 71.75 MB #Memory Used# [2025-03-24 14:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 11:15:06 [end_date_ymd] => 2025-03-24 14:15:06 [RateCDR] => 1 ) [2025-03-24 14: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-03-24 11:15:06' and `end` < '2025-03-24 14: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-03-24 14:15:19] Production.INFO: count ==5799 [2025-03-24 14:15:22] Production.ERROR: pbx CDR StartTime 2025-03-24 11:15:06 - End Time 2025-03-24 14:15:06 [2025-03-24 14:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752700', 'tblTempUsageDetail_20' ) start [2025-03-24 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752700', 'tblTempUsageDetail_20' ) end [2025-03-24 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752700', 'tblTempVendorCDR_20' ) start [2025-03-24 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752700', 'tblTempVendorCDR_20' ) end [2025-03-24 14:15:22] Production.INFO: ProcessCDR(1,14752700,1,1,2) [2025-03-24 14:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752700', 'tblTempUsageDetail_20' ) start [2025-03-24 14:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752700', 'tblTempUsageDetail_20' ) end [2025-03-24 14:15:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 14:15:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 14:15:27] Production.INFO: ==7705== Releasing lock... [2025-03-24 14:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 14:15:27] Production.INFO: 71.5 MB #Memory Used# [2025-03-24 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 11:16:05 [end_date_ymd] => 2025-03-24 14:16:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 11:16:05' and `end` < '2025-03-24 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-03-24 14:16:19] Production.INFO: count ==5789 [2025-03-24 14:16:22] Production.ERROR: pbx CDR StartTime 2025-03-24 11:16:05 - End Time 2025-03-24 14:16:05 [2025-03-24 14:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752705', 'tblTempUsageDetail_20' ) start [2025-03-24 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752705', 'tblTempUsageDetail_20' ) end [2025-03-24 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752705', 'tblTempVendorCDR_20' ) start [2025-03-24 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752705', 'tblTempVendorCDR_20' ) end [2025-03-24 14:16:22] Production.INFO: ProcessCDR(1,14752705,1,1,2) [2025-03-24 14:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752705', 'tblTempUsageDetail_20' ) start [2025-03-24 14:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752705', 'tblTempUsageDetail_20' ) end [2025-03-24 14:16:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 14:16:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 14:16:27] Production.INFO: ==7794== Releasing lock... [2025-03-24 14:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 14:16:27] Production.INFO: 71.25 MB #Memory Used# [2025-03-24 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 11:17:05 [end_date_ymd] => 2025-03-24 14:17:05 [RateCDR] => 1 ) [2025-03-24 14:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 11:17:05' and `end` < '2025-03-24 14:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 14:17:19] Production.INFO: count ==5788 [2025-03-24 14:17:21] Production.ERROR: pbx CDR StartTime 2025-03-24 11:17:05 - End Time 2025-03-24 14:17:05 [2025-03-24 14:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752710', 'tblTempUsageDetail_20' ) start [2025-03-24 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752710', 'tblTempUsageDetail_20' ) end [2025-03-24 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752710', 'tblTempVendorCDR_20' ) start [2025-03-24 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752710', 'tblTempVendorCDR_20' ) end [2025-03-24 14:17:21] Production.INFO: ProcessCDR(1,14752710,1,1,2) [2025-03-24 14:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752710', 'tblTempUsageDetail_20' ) start [2025-03-24 14:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752710', 'tblTempUsageDetail_20' ) end [2025-03-24 14:17:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 14:17:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 14:17:27] Production.INFO: ==7885== Releasing lock... [2025-03-24 14:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 14:17:27] Production.INFO: 71.25 MB #Memory Used# [2025-03-24 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 11:18:05 [end_date_ymd] => 2025-03-24 14:18:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 11:18:05' and `end` < '2025-03-24 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-03-24 14:18:19] Production.INFO: count ==5772 [2025-03-24 14:18:21] Production.ERROR: pbx CDR StartTime 2025-03-24 11:18:05 - End Time 2025-03-24 14:18:05 [2025-03-24 14:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752715', 'tblTempUsageDetail_20' ) start [2025-03-24 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752715', 'tblTempUsageDetail_20' ) end [2025-03-24 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752715', 'tblTempVendorCDR_20' ) start [2025-03-24 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752715', 'tblTempVendorCDR_20' ) end [2025-03-24 14:18:21] Production.INFO: ProcessCDR(1,14752715,1,1,2) [2025-03-24 14:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752715', 'tblTempUsageDetail_20' ) start [2025-03-24 14:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752715', 'tblTempUsageDetail_20' ) end [2025-03-24 14:18:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 14:18:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 14:18:27] Production.INFO: ==7982== Releasing lock... [2025-03-24 14:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 14:18:27] Production.INFO: 71.25 MB #Memory Used# [2025-03-24 14:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 11:19:06 [end_date_ymd] => 2025-03-24 14:19:06 [RateCDR] => 1 ) [2025-03-24 14: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-03-24 11:19:06' and `end` < '2025-03-24 14: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-03-24 14:19:20] Production.INFO: count ==5811 [2025-03-24 14:19:22] Production.ERROR: pbx CDR StartTime 2025-03-24 11:19:06 - End Time 2025-03-24 14:19:06 [2025-03-24 14:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752720', 'tblTempUsageDetail_20' ) start [2025-03-24 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752720', 'tblTempUsageDetail_20' ) end [2025-03-24 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752720', 'tblTempVendorCDR_20' ) start [2025-03-24 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752720', 'tblTempVendorCDR_20' ) end [2025-03-24 14:19:22] Production.INFO: ProcessCDR(1,14752720,1,1,2) [2025-03-24 14:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752720', 'tblTempUsageDetail_20' ) start [2025-03-24 14:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752720', 'tblTempUsageDetail_20' ) end [2025-03-24 14:19:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 14:19:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 14:19:27] Production.INFO: ==8080== Releasing lock... [2025-03-24 14:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 14:19:27] Production.INFO: 71.5 MB #Memory Used# [2025-03-24 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 11:20:06 [end_date_ymd] => 2025-03-24 14:20:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 11:20:06' and `end` < '2025-03-24 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-03-24 14:20:20] Production.INFO: count ==5814 [2025-03-24 14:20:22] Production.ERROR: pbx CDR StartTime 2025-03-24 11:20:06 - End Time 2025-03-24 14:20:06 [2025-03-24 14:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752726', 'tblTempUsageDetail_20' ) start [2025-03-24 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752726', 'tblTempUsageDetail_20' ) end [2025-03-24 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752726', 'tblTempVendorCDR_20' ) start [2025-03-24 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752726', 'tblTempVendorCDR_20' ) end [2025-03-24 14:20:22] Production.INFO: ProcessCDR(1,14752726,1,1,2) [2025-03-24 14:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752726', 'tblTempUsageDetail_20' ) start [2025-03-24 14:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752726', 'tblTempUsageDetail_20' ) end [2025-03-24 14:20:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 14:20:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 14:20:28] Production.INFO: ==8177== Releasing lock... [2025-03-24 14:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 14:20:28] Production.INFO: 71.5 MB #Memory Used# [2025-03-24 14:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 11:21:06 [end_date_ymd] => 2025-03-24 14:21:06 [RateCDR] => 1 ) [2025-03-24 14: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-03-24 11:21:06' and `end` < '2025-03-24 14: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-03-24 14:21:20] Production.INFO: count ==5864 [2025-03-24 14:21:22] Production.ERROR: pbx CDR StartTime 2025-03-24 11:21:06 - End Time 2025-03-24 14:21:06 [2025-03-24 14:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 14:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752731', 'tblTempUsageDetail_20' ) start [2025-03-24 14:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752731', 'tblTempUsageDetail_20' ) end [2025-03-24 14:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752731', 'tblTempVendorCDR_20' ) start [2025-03-24 14:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752731', 'tblTempVendorCDR_20' ) end [2025-03-24 14:21:22] Production.INFO: ProcessCDR(1,14752731,1,1,2) [2025-03-24 14:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752731', 'tblTempUsageDetail_20' ) start [2025-03-24 14:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752731', 'tblTempUsageDetail_20' ) end [2025-03-24 14:21:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 14:21:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 14:21:27] Production.INFO: ==8267== Releasing lock... [2025-03-24 14:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 14:21:27] Production.INFO: 72 MB #Memory Used# [2025-03-24 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 11:22:05 [end_date_ymd] => 2025-03-24 14:22:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 11:22:05' and `end` < '2025-03-24 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-03-24 14:22:18] Production.INFO: count ==5906 [2025-03-24 14:22:21] Production.ERROR: pbx CDR StartTime 2025-03-24 11:22:05 - End Time 2025-03-24 14:22:05 [2025-03-24 14:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752736', 'tblTempUsageDetail_20' ) start [2025-03-24 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752736', 'tblTempUsageDetail_20' ) end [2025-03-24 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752736', 'tblTempVendorCDR_20' ) start [2025-03-24 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752736', 'tblTempVendorCDR_20' ) end [2025-03-24 14:22:21] Production.INFO: ProcessCDR(1,14752736,1,1,2) [2025-03-24 14:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752736', 'tblTempUsageDetail_20' ) start [2025-03-24 14:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752736', 'tblTempUsageDetail_20' ) end [2025-03-24 14:22:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 14:22:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 14:22:26] Production.INFO: ==8358== Releasing lock... [2025-03-24 14:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 14:22:26] Production.INFO: 72.25 MB #Memory Used# [2025-03-24 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 11:23:05 [end_date_ymd] => 2025-03-24 14:23:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 11:23:05' and `end` < '2025-03-24 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-03-24 14:23:19] Production.INFO: count ==5911 [2025-03-24 14:23:22] Production.ERROR: pbx CDR StartTime 2025-03-24 11:23:05 - End Time 2025-03-24 14:23:05 [2025-03-24 14:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752741', 'tblTempUsageDetail_20' ) start [2025-03-24 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752741', 'tblTempUsageDetail_20' ) end [2025-03-24 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752741', 'tblTempVendorCDR_20' ) start [2025-03-24 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752741', 'tblTempVendorCDR_20' ) end [2025-03-24 14:23:22] Production.INFO: ProcessCDR(1,14752741,1,1,2) [2025-03-24 14:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752741', 'tblTempUsageDetail_20' ) start [2025-03-24 14:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752741', 'tblTempUsageDetail_20' ) end [2025-03-24 14:23:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 14:23:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 14:23:27] Production.INFO: ==8452== Releasing lock... [2025-03-24 14:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 14:23:27] Production.INFO: 72.25 MB #Memory Used# [2025-03-24 14:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 11:24:06 [end_date_ymd] => 2025-03-24 14:24:06 [RateCDR] => 1 ) [2025-03-24 14: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-03-24 11:24:06' and `end` < '2025-03-24 14: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-03-24 14:24:19] Production.INFO: count ==5906 [2025-03-24 14:24:22] Production.ERROR: pbx CDR StartTime 2025-03-24 11:24:06 - End Time 2025-03-24 14:24:06 [2025-03-24 14:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752746', 'tblTempUsageDetail_20' ) start [2025-03-24 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752746', 'tblTempUsageDetail_20' ) end [2025-03-24 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752746', 'tblTempVendorCDR_20' ) start [2025-03-24 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752746', 'tblTempVendorCDR_20' ) end [2025-03-24 14:24:22] Production.INFO: ProcessCDR(1,14752746,1,1,2) [2025-03-24 14:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752746', 'tblTempUsageDetail_20' ) start [2025-03-24 14:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752746', 'tblTempUsageDetail_20' ) end [2025-03-24 14:24:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 14:24:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 14:24:27] Production.INFO: ==8543== Releasing lock... [2025-03-24 14:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 14:24:27] Production.INFO: 72.25 MB #Memory Used# [2025-03-24 14:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 11:25:06 [end_date_ymd] => 2025-03-24 14:25:06 [RateCDR] => 1 ) [2025-03-24 14: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-03-24 11:25:06' and `end` < '2025-03-24 14: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-03-24 14:25:20] Production.INFO: count ==5902 [2025-03-24 14:25:22] Production.ERROR: pbx CDR StartTime 2025-03-24 11:25:06 - End Time 2025-03-24 14:25:06 [2025-03-24 14:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752751', 'tblTempUsageDetail_20' ) start [2025-03-24 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752751', 'tblTempUsageDetail_20' ) end [2025-03-24 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752751', 'tblTempVendorCDR_20' ) start [2025-03-24 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752751', 'tblTempVendorCDR_20' ) end [2025-03-24 14:25:22] Production.INFO: ProcessCDR(1,14752751,1,1,2) [2025-03-24 14:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752751', 'tblTempUsageDetail_20' ) start [2025-03-24 14:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752751', 'tblTempUsageDetail_20' ) end [2025-03-24 14:25:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 14:25:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 14:25:27] Production.INFO: ==8633== Releasing lock... [2025-03-24 14:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 14:25:27] Production.INFO: 72.25 MB #Memory Used# [2025-03-24 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 11:26:05 [end_date_ymd] => 2025-03-24 14:26:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 11:26:05' and `end` < '2025-03-24 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-03-24 14:26:18] Production.INFO: count ==5886 [2025-03-24 14:26:21] Production.ERROR: pbx CDR StartTime 2025-03-24 11:26:05 - End Time 2025-03-24 14:26:05 [2025-03-24 14:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752756', 'tblTempUsageDetail_20' ) start [2025-03-24 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752756', 'tblTempUsageDetail_20' ) end [2025-03-24 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752756', 'tblTempVendorCDR_20' ) start [2025-03-24 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752756', 'tblTempVendorCDR_20' ) end [2025-03-24 14:26:21] Production.INFO: ProcessCDR(1,14752756,1,1,2) [2025-03-24 14:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752756', 'tblTempUsageDetail_20' ) start [2025-03-24 14:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752756', 'tblTempUsageDetail_20' ) end [2025-03-24 14:26:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 14:26:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 14:26:26] Production.INFO: ==8728== Releasing lock... [2025-03-24 14:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 14:26:26] Production.INFO: 72 MB #Memory Used# [2025-03-24 14:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 11:27:06 [end_date_ymd] => 2025-03-24 14:27:06 [RateCDR] => 1 ) [2025-03-24 14: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-03-24 11:27:06' and `end` < '2025-03-24 14: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-03-24 14:27:19] Production.INFO: count ==5879 [2025-03-24 14:27:22] Production.ERROR: pbx CDR StartTime 2025-03-24 11:27:06 - End Time 2025-03-24 14:27:06 [2025-03-24 14:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752761', 'tblTempUsageDetail_20' ) start [2025-03-24 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752761', 'tblTempUsageDetail_20' ) end [2025-03-24 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752761', 'tblTempVendorCDR_20' ) start [2025-03-24 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752761', 'tblTempVendorCDR_20' ) end [2025-03-24 14:27:22] Production.INFO: ProcessCDR(1,14752761,1,1,2) [2025-03-24 14:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752761', 'tblTempUsageDetail_20' ) start [2025-03-24 14:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752761', 'tblTempUsageDetail_20' ) end [2025-03-24 14:27:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 14:27:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 14:27:27] Production.INFO: ==8828== Releasing lock... [2025-03-24 14:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 14:27:27] Production.INFO: 72 MB #Memory Used# [2025-03-24 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 11:28:05 [end_date_ymd] => 2025-03-24 14:28:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 11:28:05' and `end` < '2025-03-24 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-03-24 14:28:19] Production.INFO: count ==5873 [2025-03-24 14:28:21] Production.ERROR: pbx CDR StartTime 2025-03-24 11:28:05 - End Time 2025-03-24 14:28:05 [2025-03-24 14:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752766', 'tblTempUsageDetail_20' ) start [2025-03-24 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752766', 'tblTempUsageDetail_20' ) end [2025-03-24 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752766', 'tblTempVendorCDR_20' ) start [2025-03-24 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752766', 'tblTempVendorCDR_20' ) end [2025-03-24 14:28:21] Production.INFO: ProcessCDR(1,14752766,1,1,2) [2025-03-24 14:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752766', 'tblTempUsageDetail_20' ) start [2025-03-24 14:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752766', 'tblTempUsageDetail_20' ) end [2025-03-24 14:28:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 14:28:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 14:28:27] Production.INFO: ==8962== Releasing lock... [2025-03-24 14:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 14:28:27] Production.INFO: 72 MB #Memory Used# [2025-03-24 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 11:29:05 [end_date_ymd] => 2025-03-24 14:29:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 11:29:05' and `end` < '2025-03-24 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-03-24 14:29:19] Production.INFO: count ==5864 [2025-03-24 14:29:21] Production.ERROR: pbx CDR StartTime 2025-03-24 11:29:05 - End Time 2025-03-24 14:29:05 [2025-03-24 14:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752771', 'tblTempUsageDetail_20' ) start [2025-03-24 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752771', 'tblTempUsageDetail_20' ) end [2025-03-24 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752771', 'tblTempVendorCDR_20' ) start [2025-03-24 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752771', 'tblTempVendorCDR_20' ) end [2025-03-24 14:29:21] Production.INFO: ProcessCDR(1,14752771,1,1,2) [2025-03-24 14:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752771', 'tblTempUsageDetail_20' ) start [2025-03-24 14:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752771', 'tblTempUsageDetail_20' ) end [2025-03-24 14:29:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 14:29:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 14:29:27] Production.INFO: ==9061== Releasing lock... [2025-03-24 14:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 14:29:27] Production.INFO: 72 MB #Memory Used# [2025-03-24 14:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 11:30:07 [end_date_ymd] => 2025-03-24 14:30:07 [RateCDR] => 1 ) [2025-03-24 14: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-03-24 11:30:07' and `end` < '2025-03-24 14: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-03-24 14:30:21] Production.INFO: count ==5868 [2025-03-24 14:30:23] Production.ERROR: pbx CDR StartTime 2025-03-24 11:30:07 - End Time 2025-03-24 14:30:07 [2025-03-24 14:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 14:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752777', 'tblTempUsageDetail_20' ) start [2025-03-24 14:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752777', 'tblTempUsageDetail_20' ) end [2025-03-24 14:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752777', 'tblTempVendorCDR_20' ) start [2025-03-24 14:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752777', 'tblTempVendorCDR_20' ) end [2025-03-24 14:30:23] Production.INFO: ProcessCDR(1,14752777,1,1,2) [2025-03-24 14:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:30:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752777', 'tblTempUsageDetail_20' ) start [2025-03-24 14:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752777', 'tblTempUsageDetail_20' ) end [2025-03-24 14:30:29] Production.ERROR: pbx prc_insertCDR start [2025-03-24 14:30:29] Production.ERROR: pbx prc_insertCDR end [2025-03-24 14:30:29] Production.INFO: ==9160== Releasing lock... [2025-03-24 14:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 14:30:29] Production.INFO: 72 MB #Memory Used# [2025-03-24 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 11:31:05 [end_date_ymd] => 2025-03-24 14:31:05 [RateCDR] => 1 ) [2025-03-24 14:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 11:31:05' and `end` < '2025-03-24 14:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 14:31:19] Production.INFO: count ==5836 [2025-03-24 14:31:21] Production.ERROR: pbx CDR StartTime 2025-03-24 11:31:05 - End Time 2025-03-24 14:31:05 [2025-03-24 14:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752782', 'tblTempUsageDetail_20' ) start [2025-03-24 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752782', 'tblTempUsageDetail_20' ) end [2025-03-24 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752782', 'tblTempVendorCDR_20' ) start [2025-03-24 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752782', 'tblTempVendorCDR_20' ) end [2025-03-24 14:31:21] Production.INFO: ProcessCDR(1,14752782,1,1,2) [2025-03-24 14:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752782', 'tblTempUsageDetail_20' ) start [2025-03-24 14:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752782', 'tblTempUsageDetail_20' ) end [2025-03-24 14:31:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 14:31:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 14:31:27] Production.INFO: ==9269== Releasing lock... [2025-03-24 14:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 14:31:27] Production.INFO: 71.75 MB #Memory Used# [2025-03-24 14:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 11:32:06 [end_date_ymd] => 2025-03-24 14:32:06 [RateCDR] => 1 ) [2025-03-24 14: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-03-24 11:32:06' and `end` < '2025-03-24 14: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-03-24 14:32:20] Production.INFO: count ==5840 [2025-03-24 14:32:23] Production.ERROR: pbx CDR StartTime 2025-03-24 11:32:06 - End Time 2025-03-24 14:32:06 [2025-03-24 14:32:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 14:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752787', 'tblTempUsageDetail_20' ) start [2025-03-24 14:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752787', 'tblTempUsageDetail_20' ) end [2025-03-24 14:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752787', 'tblTempVendorCDR_20' ) start [2025-03-24 14:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752787', 'tblTempVendorCDR_20' ) end [2025-03-24 14:32:23] Production.INFO: ProcessCDR(1,14752787,1,1,2) [2025-03-24 14:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:32:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:32:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752787', 'tblTempUsageDetail_20' ) start [2025-03-24 14:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752787', 'tblTempUsageDetail_20' ) end [2025-03-24 14:32:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 14:32:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 14:32:28] Production.INFO: ==9372== Releasing lock... [2025-03-24 14:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 14:32:28] Production.INFO: 71.75 MB #Memory Used# [2025-03-24 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 11:33:05 [end_date_ymd] => 2025-03-24 14:33:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 11:33:05' and `end` < '2025-03-24 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-03-24 14:33:19] Production.INFO: count ==5839 [2025-03-24 14:33:22] Production.ERROR: pbx CDR StartTime 2025-03-24 11:33:05 - End Time 2025-03-24 14:33:05 [2025-03-24 14:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 14:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752792', 'tblTempUsageDetail_20' ) start [2025-03-24 14:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752792', 'tblTempUsageDetail_20' ) end [2025-03-24 14:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752792', 'tblTempVendorCDR_20' ) start [2025-03-24 14:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752792', 'tblTempVendorCDR_20' ) end [2025-03-24 14:33:22] Production.INFO: ProcessCDR(1,14752792,1,1,2) [2025-03-24 14:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752792', 'tblTempUsageDetail_20' ) start [2025-03-24 14:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752792', 'tblTempUsageDetail_20' ) end [2025-03-24 14:33:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 14:33:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 14:33:27] Production.INFO: ==9476== Releasing lock... [2025-03-24 14:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 14:33:27] Production.INFO: 71.75 MB #Memory Used# [2025-03-24 14:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 11:34:06 [end_date_ymd] => 2025-03-24 14:34:06 [RateCDR] => 1 ) [2025-03-24 14:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 11:34:06' and `end` < '2025-03-24 14:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 14:34:19] Production.INFO: count ==5847 [2025-03-24 14:34:22] Production.ERROR: pbx CDR StartTime 2025-03-24 11:34:06 - End Time 2025-03-24 14:34:06 [2025-03-24 14:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 14:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752797', 'tblTempUsageDetail_20' ) start [2025-03-24 14:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752797', 'tblTempUsageDetail_20' ) end [2025-03-24 14:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752797', 'tblTempVendorCDR_20' ) start [2025-03-24 14:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752797', 'tblTempVendorCDR_20' ) end [2025-03-24 14:34:22] Production.INFO: ProcessCDR(1,14752797,1,1,2) [2025-03-24 14:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752797', 'tblTempUsageDetail_20' ) start [2025-03-24 14:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752797', 'tblTempUsageDetail_20' ) end [2025-03-24 14:34:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 14:34:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 14:34:27] Production.INFO: ==9574== Releasing lock... [2025-03-24 14:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 14:34:27] Production.INFO: 71.75 MB #Memory Used# [2025-03-24 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 11:35:05 [end_date_ymd] => 2025-03-24 14:35:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 11:35:05' and `end` < '2025-03-24 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-03-24 14:35:19] Production.INFO: count ==5839 [2025-03-24 14:35:21] Production.ERROR: pbx CDR StartTime 2025-03-24 11:35:05 - End Time 2025-03-24 14:35:05 [2025-03-24 14:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752802', 'tblTempUsageDetail_20' ) start [2025-03-24 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752802', 'tblTempUsageDetail_20' ) end [2025-03-24 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752802', 'tblTempVendorCDR_20' ) start [2025-03-24 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752802', 'tblTempVendorCDR_20' ) end [2025-03-24 14:35:21] Production.INFO: ProcessCDR(1,14752802,1,1,2) [2025-03-24 14:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752802', 'tblTempUsageDetail_20' ) start [2025-03-24 14:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752802', 'tblTempUsageDetail_20' ) end [2025-03-24 14:35:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 14:35:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 14:35:26] Production.INFO: ==9677== Releasing lock... [2025-03-24 14:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 14:35:26] Production.INFO: 71.75 MB #Memory Used# [2025-03-24 14:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 11:36:06 [end_date_ymd] => 2025-03-24 14:36:06 [RateCDR] => 1 ) [2025-03-24 14: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-03-24 11:36:06' and `end` < '2025-03-24 14: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-03-24 14:36:19] Production.INFO: count ==5835 [2025-03-24 14:36:22] Production.ERROR: pbx CDR StartTime 2025-03-24 11:36:06 - End Time 2025-03-24 14:36:06 [2025-03-24 14:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752807', 'tblTempUsageDetail_20' ) start [2025-03-24 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752807', 'tblTempUsageDetail_20' ) end [2025-03-24 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752807', 'tblTempVendorCDR_20' ) start [2025-03-24 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752807', 'tblTempVendorCDR_20' ) end [2025-03-24 14:36:22] Production.INFO: ProcessCDR(1,14752807,1,1,2) [2025-03-24 14:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752807', 'tblTempUsageDetail_20' ) start [2025-03-24 14:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752807', 'tblTempUsageDetail_20' ) end [2025-03-24 14:36:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 14:36:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 14:36:27] Production.INFO: ==9783== Releasing lock... [2025-03-24 14:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 14:36:27] Production.INFO: 71.75 MB #Memory Used# [2025-03-24 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 11:37:05 [end_date_ymd] => 2025-03-24 14:37:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 11:37:05' and `end` < '2025-03-24 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-03-24 14:37:18] Production.INFO: count ==5841 [2025-03-24 14:37:21] Production.ERROR: pbx CDR StartTime 2025-03-24 11:37:05 - End Time 2025-03-24 14:37:05 [2025-03-24 14:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752812', 'tblTempUsageDetail_20' ) start [2025-03-24 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752812', 'tblTempUsageDetail_20' ) end [2025-03-24 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752812', 'tblTempVendorCDR_20' ) start [2025-03-24 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752812', 'tblTempVendorCDR_20' ) end [2025-03-24 14:37:21] Production.INFO: ProcessCDR(1,14752812,1,1,2) [2025-03-24 14:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752812', 'tblTempUsageDetail_20' ) start [2025-03-24 14:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752812', 'tblTempUsageDetail_20' ) end [2025-03-24 14:37:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 14:37:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 14:37:26] Production.INFO: ==9881== Releasing lock... [2025-03-24 14:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 14:37:26] Production.INFO: 71.75 MB #Memory Used# [2025-03-24 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 11:38:05 [end_date_ymd] => 2025-03-24 14:38:05 [RateCDR] => 1 ) [2025-03-24 14:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 11:38:05' and `end` < '2025-03-24 14:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 14:38:19] Production.INFO: count ==5851 [2025-03-24 14:38:22] Production.ERROR: pbx CDR StartTime 2025-03-24 11:38:05 - End Time 2025-03-24 14:38:05 [2025-03-24 14:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752817', 'tblTempUsageDetail_20' ) start [2025-03-24 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752817', 'tblTempUsageDetail_20' ) end [2025-03-24 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752817', 'tblTempVendorCDR_20' ) start [2025-03-24 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752817', 'tblTempVendorCDR_20' ) end [2025-03-24 14:38:22] Production.INFO: ProcessCDR(1,14752817,1,1,2) [2025-03-24 14:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752817', 'tblTempUsageDetail_20' ) start [2025-03-24 14:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752817', 'tblTempUsageDetail_20' ) end [2025-03-24 14:38:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 14:38:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 14:38:27] Production.INFO: ==9988== Releasing lock... [2025-03-24 14:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 14:38:27] Production.INFO: 71.75 MB #Memory Used# [2025-03-24 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 11:39:05 [end_date_ymd] => 2025-03-24 14:39:05 [RateCDR] => 1 ) [2025-03-24 14:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 11:39:05' and `end` < '2025-03-24 14:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 14:39:18] Production.INFO: count ==5871 [2025-03-24 14:39:21] Production.ERROR: pbx CDR StartTime 2025-03-24 11:39:05 - End Time 2025-03-24 14:39:05 [2025-03-24 14:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752822', 'tblTempUsageDetail_20' ) start [2025-03-24 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752822', 'tblTempUsageDetail_20' ) end [2025-03-24 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752822', 'tblTempVendorCDR_20' ) start [2025-03-24 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752822', 'tblTempVendorCDR_20' ) end [2025-03-24 14:39:21] Production.INFO: ProcessCDR(1,14752822,1,1,2) [2025-03-24 14:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752822', 'tblTempUsageDetail_20' ) start [2025-03-24 14:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752822', 'tblTempUsageDetail_20' ) end [2025-03-24 14:39:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 14:39:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 14:39:26] Production.INFO: ==10087== Releasing lock... [2025-03-24 14:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 14:39:26] Production.INFO: 72 MB #Memory Used# [2025-03-24 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 11:40:06 [end_date_ymd] => 2025-03-24 14:40:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 11:40:06' and `end` < '2025-03-24 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-03-24 14:40:19] Production.INFO: count ==5897 [2025-03-24 14:40:22] Production.ERROR: pbx CDR StartTime 2025-03-24 11:40:06 - End Time 2025-03-24 14:40:06 [2025-03-24 14:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752828', 'tblTempUsageDetail_20' ) start [2025-03-24 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752828', 'tblTempUsageDetail_20' ) end [2025-03-24 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752828', 'tblTempVendorCDR_20' ) start [2025-03-24 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752828', 'tblTempVendorCDR_20' ) end [2025-03-24 14:40:22] Production.INFO: ProcessCDR(1,14752828,1,1,2) [2025-03-24 14:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752828', 'tblTempUsageDetail_20' ) start [2025-03-24 14:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752828', 'tblTempUsageDetail_20' ) end [2025-03-24 14:40:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 14:40:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 14:40:26] Production.INFO: ==10192== Releasing lock... [2025-03-24 14:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 14:40:26] Production.INFO: 72.25 MB #Memory Used# [2025-03-24 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 11:41:05 [end_date_ymd] => 2025-03-24 14:41:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 11:41:05' and `end` < '2025-03-24 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-03-24 14:41:18] Production.INFO: count ==5883 [2025-03-24 14:41:21] Production.ERROR: pbx CDR StartTime 2025-03-24 11:41:05 - End Time 2025-03-24 14:41:05 [2025-03-24 14:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752833', 'tblTempUsageDetail_20' ) start [2025-03-24 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752833', 'tblTempUsageDetail_20' ) end [2025-03-24 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752833', 'tblTempVendorCDR_20' ) start [2025-03-24 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752833', 'tblTempVendorCDR_20' ) end [2025-03-24 14:41:21] Production.INFO: ProcessCDR(1,14752833,1,1,2) [2025-03-24 14:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752833', 'tblTempUsageDetail_20' ) start [2025-03-24 14:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752833', 'tblTempUsageDetail_20' ) end [2025-03-24 14:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 14:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 14:41:26] Production.INFO: ==10298== Releasing lock... [2025-03-24 14:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 14:41:26] Production.INFO: 72 MB #Memory Used# [2025-03-24 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 11:42:05 [end_date_ymd] => 2025-03-24 14:42:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 11:42:05' and `end` < '2025-03-24 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-03-24 14:42:19] Production.INFO: count ==5875 [2025-03-24 14:42:21] Production.ERROR: pbx CDR StartTime 2025-03-24 11:42:05 - End Time 2025-03-24 14:42:05 [2025-03-24 14:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752838', 'tblTempUsageDetail_20' ) start [2025-03-24 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752838', 'tblTempUsageDetail_20' ) end [2025-03-24 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752838', 'tblTempVendorCDR_20' ) start [2025-03-24 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752838', 'tblTempVendorCDR_20' ) end [2025-03-24 14:42:21] Production.INFO: ProcessCDR(1,14752838,1,1,2) [2025-03-24 14:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752838', 'tblTempUsageDetail_20' ) start [2025-03-24 14:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752838', 'tblTempUsageDetail_20' ) end [2025-03-24 14:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 14:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 14:42:26] Production.INFO: ==10400== Releasing lock... [2025-03-24 14:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 14:42:26] Production.INFO: 72 MB #Memory Used# [2025-03-24 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 11:43:05 [end_date_ymd] => 2025-03-24 14:43:05 [RateCDR] => 1 ) [2025-03-24 14:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 11:43:05' and `end` < '2025-03-24 14:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 14:43:19] Production.INFO: count ==5873 [2025-03-24 14:43:21] Production.ERROR: pbx CDR StartTime 2025-03-24 11:43:05 - End Time 2025-03-24 14:43:05 [2025-03-24 14:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752843', 'tblTempUsageDetail_20' ) start [2025-03-24 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752843', 'tblTempUsageDetail_20' ) end [2025-03-24 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752843', 'tblTempVendorCDR_20' ) start [2025-03-24 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752843', 'tblTempVendorCDR_20' ) end [2025-03-24 14:43:21] Production.INFO: ProcessCDR(1,14752843,1,1,2) [2025-03-24 14:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752843', 'tblTempUsageDetail_20' ) start [2025-03-24 14:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752843', 'tblTempUsageDetail_20' ) end [2025-03-24 14:43:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 14:43:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 14:43:26] Production.INFO: ==10494== Releasing lock... [2025-03-24 14:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 14:43:26] Production.INFO: 72 MB #Memory Used# [2025-03-24 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 11:44:05 [end_date_ymd] => 2025-03-24 14:44:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 11:44:05' and `end` < '2025-03-24 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-03-24 14:44:19] Production.INFO: count ==5871 [2025-03-24 14:44:21] Production.ERROR: pbx CDR StartTime 2025-03-24 11:44:05 - End Time 2025-03-24 14:44:05 [2025-03-24 14:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752848', 'tblTempUsageDetail_20' ) start [2025-03-24 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752848', 'tblTempUsageDetail_20' ) end [2025-03-24 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752848', 'tblTempVendorCDR_20' ) start [2025-03-24 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752848', 'tblTempVendorCDR_20' ) end [2025-03-24 14:44:22] Production.INFO: ProcessCDR(1,14752848,1,1,2) [2025-03-24 14:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752848', 'tblTempUsageDetail_20' ) start [2025-03-24 14:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752848', 'tblTempUsageDetail_20' ) end [2025-03-24 14:44:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 14:44:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 14:44:27] Production.INFO: ==10632== Releasing lock... [2025-03-24 14:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 14:44:27] Production.INFO: 72 MB #Memory Used# [2025-03-24 14:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 11:45:06 [end_date_ymd] => 2025-03-24 14:45:06 [RateCDR] => 1 ) [2025-03-24 14: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-03-24 11:45:06' and `end` < '2025-03-24 14: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-03-24 14:45:19] Production.INFO: count ==5872 [2025-03-24 14:45:22] Production.ERROR: pbx CDR StartTime 2025-03-24 11:45:06 - End Time 2025-03-24 14:45:06 [2025-03-24 14:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752853', 'tblTempUsageDetail_20' ) start [2025-03-24 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752853', 'tblTempUsageDetail_20' ) end [2025-03-24 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752853', 'tblTempVendorCDR_20' ) start [2025-03-24 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752853', 'tblTempVendorCDR_20' ) end [2025-03-24 14:45:22] Production.INFO: ProcessCDR(1,14752853,1,1,2) [2025-03-24 14:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752853', 'tblTempUsageDetail_20' ) start [2025-03-24 14:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752853', 'tblTempUsageDetail_20' ) end [2025-03-24 14:45:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 14:45:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 14:45:28] Production.INFO: ==10734== Releasing lock... [2025-03-24 14:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 14:45:28] Production.INFO: 72 MB #Memory Used# [2025-03-24 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 11:46:05 [end_date_ymd] => 2025-03-24 14:46:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 11:46:05' and `end` < '2025-03-24 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-03-24 14:46:19] Production.INFO: count ==5871 [2025-03-24 14:46:21] Production.ERROR: pbx CDR StartTime 2025-03-24 11:46:05 - End Time 2025-03-24 14:46:05 [2025-03-24 14:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752858', 'tblTempUsageDetail_20' ) start [2025-03-24 14:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752858', 'tblTempUsageDetail_20' ) end [2025-03-24 14:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752858', 'tblTempVendorCDR_20' ) start [2025-03-24 14:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752858', 'tblTempVendorCDR_20' ) end [2025-03-24 14:46:22] Production.INFO: ProcessCDR(1,14752858,1,1,2) [2025-03-24 14:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752858', 'tblTempUsageDetail_20' ) start [2025-03-24 14:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752858', 'tblTempUsageDetail_20' ) end [2025-03-24 14:46:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 14:46:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 14:46:27] Production.INFO: ==10837== Releasing lock... [2025-03-24 14:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 14:46:27] Production.INFO: 72 MB #Memory Used# [2025-03-24 14:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 11:47:06 [end_date_ymd] => 2025-03-24 14:47:06 [RateCDR] => 1 ) [2025-03-24 14: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-03-24 11:47:06' and `end` < '2025-03-24 14: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-03-24 14:47:19] Production.INFO: count ==5866 [2025-03-24 14:47:22] Production.ERROR: pbx CDR StartTime 2025-03-24 11:47:06 - End Time 2025-03-24 14:47:06 [2025-03-24 14:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752863', 'tblTempUsageDetail_20' ) start [2025-03-24 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752863', 'tblTempUsageDetail_20' ) end [2025-03-24 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752863', 'tblTempVendorCDR_20' ) start [2025-03-24 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752863', 'tblTempVendorCDR_20' ) end [2025-03-24 14:47:22] Production.INFO: ProcessCDR(1,14752863,1,1,2) [2025-03-24 14:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:47:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752863', 'tblTempUsageDetail_20' ) start [2025-03-24 14:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752863', 'tblTempUsageDetail_20' ) end [2025-03-24 14:47:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 14:47:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 14:47:28] Production.INFO: ==10930== Releasing lock... [2025-03-24 14:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 14:47:28] Production.INFO: 72 MB #Memory Used# [2025-03-24 14:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 11:48:06 [end_date_ymd] => 2025-03-24 14:48:06 [RateCDR] => 1 ) [2025-03-24 14: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-03-24 11:48:06' and `end` < '2025-03-24 14: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-03-24 14:48:20] Production.INFO: count ==5860 [2025-03-24 14:48:23] Production.ERROR: pbx CDR StartTime 2025-03-24 11:48:06 - End Time 2025-03-24 14:48:06 [2025-03-24 14:48:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 14:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752868', 'tblTempUsageDetail_20' ) start [2025-03-24 14:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752868', 'tblTempUsageDetail_20' ) end [2025-03-24 14:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752868', 'tblTempVendorCDR_20' ) start [2025-03-24 14:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752868', 'tblTempVendorCDR_20' ) end [2025-03-24 14:48:23] Production.INFO: ProcessCDR(1,14752868,1,1,2) [2025-03-24 14:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:48:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:48:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752868', 'tblTempUsageDetail_20' ) start [2025-03-24 14:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752868', 'tblTempUsageDetail_20' ) end [2025-03-24 14:48:29] Production.ERROR: pbx prc_insertCDR start [2025-03-24 14:48:29] Production.ERROR: pbx prc_insertCDR end [2025-03-24 14:48:29] Production.INFO: ==11033== Releasing lock... [2025-03-24 14:48:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 14:48:29] Production.INFO: 72 MB #Memory Used# [2025-03-24 14:49:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 11:49:07 [end_date_ymd] => 2025-03-24 14:49:07 [RateCDR] => 1 ) [2025-03-24 14:49: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-03-24 11:49:07' and `end` < '2025-03-24 14:49: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-03-24 14:49:21] Production.INFO: count ==5841 [2025-03-24 14:49:23] Production.ERROR: pbx CDR StartTime 2025-03-24 11:49:07 - End Time 2025-03-24 14:49:07 [2025-03-24 14:49:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 14:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752873', 'tblTempUsageDetail_20' ) start [2025-03-24 14:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752873', 'tblTempUsageDetail_20' ) end [2025-03-24 14:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752873', 'tblTempVendorCDR_20' ) start [2025-03-24 14:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752873', 'tblTempVendorCDR_20' ) end [2025-03-24 14:49:23] Production.INFO: ProcessCDR(1,14752873,1,1,2) [2025-03-24 14:49:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:49:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:49:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752873', 'tblTempUsageDetail_20' ) start [2025-03-24 14:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752873', 'tblTempUsageDetail_20' ) end [2025-03-24 14:49:29] Production.ERROR: pbx prc_insertCDR start [2025-03-24 14:49:29] Production.ERROR: pbx prc_insertCDR end [2025-03-24 14:49:29] Production.INFO: ==11137== Releasing lock... [2025-03-24 14:49:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 14:49:29] Production.INFO: 71.75 MB #Memory Used# [2025-03-24 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 11:50:06 [end_date_ymd] => 2025-03-24 14:50:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 11:50:06' and `end` < '2025-03-24 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-03-24 14:50:20] Production.INFO: count ==5834 [2025-03-24 14:50:23] Production.ERROR: pbx CDR StartTime 2025-03-24 11:50:06 - End Time 2025-03-24 14:50:06 [2025-03-24 14:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 14:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752878', 'tblTempUsageDetail_20' ) start [2025-03-24 14:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752878', 'tblTempUsageDetail_20' ) end [2025-03-24 14:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752878', 'tblTempVendorCDR_20' ) start [2025-03-24 14:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752878', 'tblTempVendorCDR_20' ) end [2025-03-24 14:50:23] Production.INFO: ProcessCDR(1,14752878,1,1,2) [2025-03-24 14:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:50:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752878', 'tblTempUsageDetail_20' ) start [2025-03-24 14:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752878', 'tblTempUsageDetail_20' ) end [2025-03-24 14:50:29] Production.ERROR: pbx prc_insertCDR start [2025-03-24 14:50:29] Production.ERROR: pbx prc_insertCDR end [2025-03-24 14:50:29] Production.INFO: ==11240== Releasing lock... [2025-03-24 14:50:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 14:50:29] Production.INFO: 71.75 MB #Memory Used# [2025-03-24 14:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 11:51:06 [end_date_ymd] => 2025-03-24 14:51:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 11:51:06' and `end` < '2025-03-24 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-03-24 14:51:20] Production.INFO: count ==5828 [2025-03-24 14:51:22] Production.ERROR: pbx CDR StartTime 2025-03-24 11:51:06 - End Time 2025-03-24 14:51:06 [2025-03-24 14:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752884', 'tblTempUsageDetail_20' ) start [2025-03-24 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752884', 'tblTempUsageDetail_20' ) end [2025-03-24 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752884', 'tblTempVendorCDR_20' ) start [2025-03-24 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752884', 'tblTempVendorCDR_20' ) end [2025-03-24 14:51:22] Production.INFO: ProcessCDR(1,14752884,1,1,2) [2025-03-24 14:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752884', 'tblTempUsageDetail_20' ) start [2025-03-24 14:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752884', 'tblTempUsageDetail_20' ) end [2025-03-24 14:51:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 14:51:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 14:51:28] Production.INFO: ==11349== Releasing lock... [2025-03-24 14:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 14:51:28] Production.INFO: 71.75 MB #Memory Used# [2025-03-24 14:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 11:52:06 [end_date_ymd] => 2025-03-24 14:52:06 [RateCDR] => 1 ) [2025-03-24 14: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-03-24 11:52:06' and `end` < '2025-03-24 14: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-03-24 14:52:19] Production.INFO: count ==5840 [2025-03-24 14:52:22] Production.ERROR: pbx CDR StartTime 2025-03-24 11:52:06 - End Time 2025-03-24 14:52:06 [2025-03-24 14:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 14:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752889', 'tblTempUsageDetail_20' ) start [2025-03-24 14:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752889', 'tblTempUsageDetail_20' ) end [2025-03-24 14:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752889', 'tblTempVendorCDR_20' ) start [2025-03-24 14:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752889', 'tblTempVendorCDR_20' ) end [2025-03-24 14:52:22] Production.INFO: ProcessCDR(1,14752889,1,1,2) [2025-03-24 14:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752889', 'tblTempUsageDetail_20' ) start [2025-03-24 14:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752889', 'tblTempUsageDetail_20' ) end [2025-03-24 14:52:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 14:52:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 14:52:28] Production.INFO: ==11448== Releasing lock... [2025-03-24 14:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 14:52:28] Production.INFO: 71.75 MB #Memory Used# [2025-03-24 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 11:53:05 [end_date_ymd] => 2025-03-24 14:53:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 11:53:05' and `end` < '2025-03-24 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-03-24 14:53:19] Production.INFO: count ==5861 [2025-03-24 14:53:22] Production.ERROR: pbx CDR StartTime 2025-03-24 11:53:05 - End Time 2025-03-24 14:53:05 [2025-03-24 14:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752894', 'tblTempUsageDetail_20' ) start [2025-03-24 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752894', 'tblTempUsageDetail_20' ) end [2025-03-24 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752894', 'tblTempVendorCDR_20' ) start [2025-03-24 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752894', 'tblTempVendorCDR_20' ) end [2025-03-24 14:53:22] Production.INFO: ProcessCDR(1,14752894,1,1,2) [2025-03-24 14:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752894', 'tblTempUsageDetail_20' ) start [2025-03-24 14:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752894', 'tblTempUsageDetail_20' ) end [2025-03-24 14:53:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 14:53:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 14:53:27] Production.INFO: ==11550== Releasing lock... [2025-03-24 14:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 14:53:27] Production.INFO: 72 MB #Memory Used# [2025-03-24 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 11:54:05 [end_date_ymd] => 2025-03-24 14:54:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 11:54:05' and `end` < '2025-03-24 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-03-24 14:54:19] Production.INFO: count ==5860 [2025-03-24 14:54:21] Production.ERROR: pbx CDR StartTime 2025-03-24 11:54:05 - End Time 2025-03-24 14:54:05 [2025-03-24 14:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752899', 'tblTempUsageDetail_20' ) start [2025-03-24 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752899', 'tblTempUsageDetail_20' ) end [2025-03-24 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752899', 'tblTempVendorCDR_20' ) start [2025-03-24 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752899', 'tblTempVendorCDR_20' ) end [2025-03-24 14:54:22] Production.INFO: ProcessCDR(1,14752899,1,1,2) [2025-03-24 14:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752899', 'tblTempUsageDetail_20' ) start [2025-03-24 14:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752899', 'tblTempUsageDetail_20' ) end [2025-03-24 14:54:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 14:54:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 14:54:27] Production.INFO: ==11649== Releasing lock... [2025-03-24 14:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 14:54:27] Production.INFO: 72 MB #Memory Used# [2025-03-24 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 11:55:05 [end_date_ymd] => 2025-03-24 14:55:05 [RateCDR] => 1 ) [2025-03-24 14:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 11:55:05' and `end` < '2025-03-24 14:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 14:55:19] Production.INFO: count ==5851 [2025-03-24 14:55:22] Production.ERROR: pbx CDR StartTime 2025-03-24 11:55:05 - End Time 2025-03-24 14:55:05 [2025-03-24 14:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 14:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752904', 'tblTempUsageDetail_20' ) start [2025-03-24 14:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752904', 'tblTempUsageDetail_20' ) end [2025-03-24 14:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752904', 'tblTempVendorCDR_20' ) start [2025-03-24 14:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752904', 'tblTempVendorCDR_20' ) end [2025-03-24 14:55:22] Production.INFO: ProcessCDR(1,14752904,1,1,2) [2025-03-24 14:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752904', 'tblTempUsageDetail_20' ) start [2025-03-24 14:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752904', 'tblTempUsageDetail_20' ) end [2025-03-24 14:55:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 14:55:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 14:55:28] Production.INFO: ==11750== Releasing lock... [2025-03-24 14:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 14:55:28] Production.INFO: 71.75 MB #Memory Used# [2025-03-24 14:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 11:56:06 [end_date_ymd] => 2025-03-24 14:56:06 [RateCDR] => 1 ) [2025-03-24 14:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 11:56:06' and `end` < '2025-03-24 14:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 14:56:19] Production.INFO: count ==5846 [2025-03-24 14:56:22] Production.ERROR: pbx CDR StartTime 2025-03-24 11:56:06 - End Time 2025-03-24 14:56:06 [2025-03-24 14:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752909', 'tblTempUsageDetail_20' ) start [2025-03-24 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752909', 'tblTempUsageDetail_20' ) end [2025-03-24 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752909', 'tblTempVendorCDR_20' ) start [2025-03-24 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752909', 'tblTempVendorCDR_20' ) end [2025-03-24 14:56:22] Production.INFO: ProcessCDR(1,14752909,1,1,2) [2025-03-24 14:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752909', 'tblTempUsageDetail_20' ) start [2025-03-24 14:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752909', 'tblTempUsageDetail_20' ) end [2025-03-24 14:56:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 14:56:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 14:56:28] Production.INFO: ==11852== Releasing lock... [2025-03-24 14:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 14:56:28] Production.INFO: 71.75 MB #Memory Used# [2025-03-24 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 11:57:05 [end_date_ymd] => 2025-03-24 14:57:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 11:57:05' and `end` < '2025-03-24 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-03-24 14:57:19] Production.INFO: count ==5850 [2025-03-24 14:57:22] Production.ERROR: pbx CDR StartTime 2025-03-24 11:57:05 - End Time 2025-03-24 14:57:05 [2025-03-24 14:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 14:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752914', 'tblTempUsageDetail_20' ) start [2025-03-24 14:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752914', 'tblTempUsageDetail_20' ) end [2025-03-24 14:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752914', 'tblTempVendorCDR_20' ) start [2025-03-24 14:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752914', 'tblTempVendorCDR_20' ) end [2025-03-24 14:57:22] Production.INFO: ProcessCDR(1,14752914,1,1,2) [2025-03-24 14:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752914', 'tblTempUsageDetail_20' ) start [2025-03-24 14:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752914', 'tblTempUsageDetail_20' ) end [2025-03-24 14:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 14:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 14:57:26] Production.INFO: ==11954== Releasing lock... [2025-03-24 14:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 14:57:26] Production.INFO: 71.75 MB #Memory Used# [2025-03-24 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 11:58:05 [end_date_ymd] => 2025-03-24 14:58:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 11:58:05' and `end` < '2025-03-24 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-03-24 14:58:19] Production.INFO: count ==5866 [2025-03-24 14:58:21] Production.ERROR: pbx CDR StartTime 2025-03-24 11:58:05 - End Time 2025-03-24 14:58:05 [2025-03-24 14:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752919', 'tblTempUsageDetail_20' ) start [2025-03-24 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752919', 'tblTempUsageDetail_20' ) end [2025-03-24 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752919', 'tblTempVendorCDR_20' ) start [2025-03-24 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752919', 'tblTempVendorCDR_20' ) end [2025-03-24 14:58:21] Production.INFO: ProcessCDR(1,14752919,1,1,2) [2025-03-24 14:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752919', 'tblTempUsageDetail_20' ) start [2025-03-24 14:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752919', 'tblTempUsageDetail_20' ) end [2025-03-24 14:58:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 14:58:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 14:58:27] Production.INFO: ==12058== Releasing lock... [2025-03-24 14:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 14:58:27] Production.INFO: 72 MB #Memory Used# [2025-03-24 14:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 11:59:06 [end_date_ymd] => 2025-03-24 14:59:06 [RateCDR] => 1 ) [2025-03-24 14: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-03-24 11:59:06' and `end` < '2025-03-24 14: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-03-24 14:59:19] Production.INFO: count ==5840 [2025-03-24 14:59:22] Production.ERROR: pbx CDR StartTime 2025-03-24 11:59:06 - End Time 2025-03-24 14:59:06 [2025-03-24 14:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752924', 'tblTempUsageDetail_20' ) start [2025-03-24 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752924', 'tblTempUsageDetail_20' ) end [2025-03-24 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752924', 'tblTempVendorCDR_20' ) start [2025-03-24 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752924', 'tblTempVendorCDR_20' ) end [2025-03-24 14:59:22] Production.INFO: ProcessCDR(1,14752924,1,1,2) [2025-03-24 14:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 14:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 14:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752924', 'tblTempUsageDetail_20' ) start [2025-03-24 14:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752924', 'tblTempUsageDetail_20' ) end [2025-03-24 14:59:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 14:59:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 14:59:27] Production.INFO: ==12203== Releasing lock... [2025-03-24 14:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 14:59:27] Production.INFO: 71.75 MB #Memory Used# [2025-03-24 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 12:00:06 [end_date_ymd] => 2025-03-24 15:00:06 [RateCDR] => 1 ) [2025-03-24 15: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-03-24 12:00:06' and `end` < '2025-03-24 15: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-03-24 15:00:20] Production.INFO: count ==5840 [2025-03-24 15:00:22] Production.ERROR: pbx CDR StartTime 2025-03-24 12:00:06 - End Time 2025-03-24 15:00:06 [2025-03-24 15:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752930', 'tblTempUsageDetail_20' ) start [2025-03-24 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752930', 'tblTempUsageDetail_20' ) end [2025-03-24 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752930', 'tblTempVendorCDR_20' ) start [2025-03-24 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752930', 'tblTempVendorCDR_20' ) end [2025-03-24 15:00:23] Production.INFO: ProcessCDR(1,14752930,1,1,2) [2025-03-24 15:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752930', 'tblTempUsageDetail_20' ) start [2025-03-24 15:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752930', 'tblTempUsageDetail_20' ) end [2025-03-24 15:00:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 15:00:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 15:00:28] Production.INFO: ==12306== Releasing lock... [2025-03-24 15:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 15:00:28] Production.INFO: 71.75 MB #Memory Used# [2025-03-24 15:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 12:01:06 [end_date_ymd] => 2025-03-24 15:01:06 [RateCDR] => 1 ) [2025-03-24 15:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 12:01:06' and `end` < '2025-03-24 15:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 15:01:20] Production.INFO: count ==5821 [2025-03-24 15:01:22] Production.ERROR: pbx CDR StartTime 2025-03-24 12:01:06 - End Time 2025-03-24 15:01:06 [2025-03-24 15:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752935', 'tblTempUsageDetail_20' ) start [2025-03-24 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752935', 'tblTempUsageDetail_20' ) end [2025-03-24 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752935', 'tblTempVendorCDR_20' ) start [2025-03-24 15:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752935', 'tblTempVendorCDR_20' ) end [2025-03-24 15:01:23] Production.INFO: ProcessCDR(1,14752935,1,1,2) [2025-03-24 15:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:01:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752935', 'tblTempUsageDetail_20' ) start [2025-03-24 15:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752935', 'tblTempUsageDetail_20' ) end [2025-03-24 15:01:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 15:01:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 15:01:28] Production.INFO: ==12416== Releasing lock... [2025-03-24 15:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 15:01:28] Production.INFO: 71.5 MB #Memory Used# [2025-03-24 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 12:02:05 [end_date_ymd] => 2025-03-24 15:02:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 12:02:05' and `end` < '2025-03-24 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-03-24 15:02:19] Production.INFO: count ==5822 [2025-03-24 15:02:22] Production.ERROR: pbx CDR StartTime 2025-03-24 12:02:05 - End Time 2025-03-24 15:02:05 [2025-03-24 15:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752940', 'tblTempUsageDetail_20' ) start [2025-03-24 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752940', 'tblTempUsageDetail_20' ) end [2025-03-24 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752940', 'tblTempVendorCDR_20' ) start [2025-03-24 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752940', 'tblTempVendorCDR_20' ) end [2025-03-24 15:02:22] Production.INFO: ProcessCDR(1,14752940,1,1,2) [2025-03-24 15:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752940', 'tblTempUsageDetail_20' ) start [2025-03-24 15:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752940', 'tblTempUsageDetail_20' ) end [2025-03-24 15:02:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 15:02:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 15:02:28] Production.INFO: ==12587== Releasing lock... [2025-03-24 15:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 15:02:28] Production.INFO: 71.5 MB #Memory Used# [2025-03-24 15:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 12:03:06 [end_date_ymd] => 2025-03-24 15:03:06 [RateCDR] => 1 ) [2025-03-24 15:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 12:03:06' and `end` < '2025-03-24 15:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 15:03:19] Production.INFO: count ==5793 [2025-03-24 15:03:22] Production.ERROR: pbx CDR StartTime 2025-03-24 12:03:06 - End Time 2025-03-24 15:03:06 [2025-03-24 15:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752945', 'tblTempUsageDetail_20' ) start [2025-03-24 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752945', 'tblTempUsageDetail_20' ) end [2025-03-24 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752945', 'tblTempVendorCDR_20' ) start [2025-03-24 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752945', 'tblTempVendorCDR_20' ) end [2025-03-24 15:03:22] Production.INFO: ProcessCDR(1,14752945,1,1,2) [2025-03-24 15:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752945', 'tblTempUsageDetail_20' ) start [2025-03-24 15:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752945', 'tblTempUsageDetail_20' ) end [2025-03-24 15:03:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 15:03:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 15:03:28] Production.INFO: ==12690== Releasing lock... [2025-03-24 15:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 15:03:28] Production.INFO: 71.5 MB #Memory Used# [2025-03-24 15:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 12:04:06 [end_date_ymd] => 2025-03-24 15:04:06 [RateCDR] => 1 ) [2025-03-24 15: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-03-24 12:04:06' and `end` < '2025-03-24 15: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-03-24 15:04:19] Production.INFO: count ==5785 [2025-03-24 15:04:22] Production.ERROR: pbx CDR StartTime 2025-03-24 12:04:06 - End Time 2025-03-24 15:04:06 [2025-03-24 15:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752950', 'tblTempUsageDetail_20' ) start [2025-03-24 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752950', 'tblTempUsageDetail_20' ) end [2025-03-24 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752950', 'tblTempVendorCDR_20' ) start [2025-03-24 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752950', 'tblTempVendorCDR_20' ) end [2025-03-24 15:04:22] Production.INFO: ProcessCDR(1,14752950,1,1,2) [2025-03-24 15:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752950', 'tblTempUsageDetail_20' ) start [2025-03-24 15:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752950', 'tblTempUsageDetail_20' ) end [2025-03-24 15:04:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 15:04:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 15:04:28] Production.INFO: ==12788== Releasing lock... [2025-03-24 15:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 15:04:28] Production.INFO: 71.25 MB #Memory Used# [2025-03-24 15:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 12:05:05 [end_date_ymd] => 2025-03-24 15:05:05 [RateCDR] => 1 ) [2025-03-24 15: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-03-24 12:05:05' and `end` < '2025-03-24 15:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 15:05:20] Production.INFO: count ==5776 [2025-03-24 15:05:22] Production.ERROR: pbx CDR StartTime 2025-03-24 12:05:05 - End Time 2025-03-24 15:05:05 [2025-03-24 15:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752955', 'tblTempUsageDetail_20' ) start [2025-03-24 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752955', 'tblTempUsageDetail_20' ) end [2025-03-24 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752955', 'tblTempVendorCDR_20' ) start [2025-03-24 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752955', 'tblTempVendorCDR_20' ) end [2025-03-24 15:05:22] Production.INFO: ProcessCDR(1,14752955,1,1,2) [2025-03-24 15:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752955', 'tblTempUsageDetail_20' ) start [2025-03-24 15:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752955', 'tblTempUsageDetail_20' ) end [2025-03-24 15:05:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 15:05:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 15:05:27] Production.INFO: ==12961== Releasing lock... [2025-03-24 15:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 15:05:27] Production.INFO: 71.25 MB #Memory Used# [2025-03-24 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 12:06:05 [end_date_ymd] => 2025-03-24 15:06:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 12:06:05' and `end` < '2025-03-24 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-03-24 15:06:19] Production.INFO: count ==5773 [2025-03-24 15:06:21] Production.ERROR: pbx CDR StartTime 2025-03-24 12:06:05 - End Time 2025-03-24 15:06:05 [2025-03-24 15:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752960', 'tblTempUsageDetail_20' ) start [2025-03-24 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752960', 'tblTempUsageDetail_20' ) end [2025-03-24 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752960', 'tblTempVendorCDR_20' ) start [2025-03-24 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752960', 'tblTempVendorCDR_20' ) end [2025-03-24 15:06:22] Production.INFO: ProcessCDR(1,14752960,1,1,2) [2025-03-24 15:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752960', 'tblTempUsageDetail_20' ) start [2025-03-24 15:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752960', 'tblTempUsageDetail_20' ) end [2025-03-24 15:06:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 15:06:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 15:06:27] Production.INFO: ==13057== Releasing lock... [2025-03-24 15:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 15:06:27] Production.INFO: 71.25 MB #Memory Used# [2025-03-24 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 12:07:05 [end_date_ymd] => 2025-03-24 15:07:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 12:07:05' and `end` < '2025-03-24 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-03-24 15:07:19] Production.INFO: count ==5777 [2025-03-24 15:07:21] Production.ERROR: pbx CDR StartTime 2025-03-24 12:07:05 - End Time 2025-03-24 15:07:05 [2025-03-24 15:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752965', 'tblTempUsageDetail_20' ) start [2025-03-24 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752965', 'tblTempUsageDetail_20' ) end [2025-03-24 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752965', 'tblTempVendorCDR_20' ) start [2025-03-24 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752965', 'tblTempVendorCDR_20' ) end [2025-03-24 15:07:22] Production.INFO: ProcessCDR(1,14752965,1,1,2) [2025-03-24 15:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752965', 'tblTempUsageDetail_20' ) start [2025-03-24 15:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752965', 'tblTempUsageDetail_20' ) end [2025-03-24 15:07:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 15:07:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 15:07:27] Production.INFO: ==13153== Releasing lock... [2025-03-24 15:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 15:07:27] Production.INFO: 71.25 MB #Memory Used# [2025-03-24 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 12:08:05 [end_date_ymd] => 2025-03-24 15:08:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 12:08:05' and `end` < '2025-03-24 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-03-24 15:08:19] Production.INFO: count ==5795 [2025-03-24 15:08:21] Production.ERROR: pbx CDR StartTime 2025-03-24 12:08:05 - End Time 2025-03-24 15:08:05 [2025-03-24 15:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752970', 'tblTempUsageDetail_20' ) start [2025-03-24 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752970', 'tblTempUsageDetail_20' ) end [2025-03-24 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752970', 'tblTempVendorCDR_20' ) start [2025-03-24 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752970', 'tblTempVendorCDR_20' ) end [2025-03-24 15:08:21] Production.INFO: ProcessCDR(1,14752970,1,1,2) [2025-03-24 15:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752970', 'tblTempUsageDetail_20' ) start [2025-03-24 15:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752970', 'tblTempUsageDetail_20' ) end [2025-03-24 15:08:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 15:08:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 15:08:27] Production.INFO: ==13326== Releasing lock... [2025-03-24 15:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 15:08:27] Production.INFO: 71.5 MB #Memory Used# [2025-03-24 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 12:09:05 [end_date_ymd] => 2025-03-24 15:09:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 12:09:05' and `end` < '2025-03-24 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-03-24 15:09:19] Production.INFO: count ==5788 [2025-03-24 15:09:21] Production.ERROR: pbx CDR StartTime 2025-03-24 12:09:05 - End Time 2025-03-24 15:09:05 [2025-03-24 15:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752975', 'tblTempUsageDetail_20' ) start [2025-03-24 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752975', 'tblTempUsageDetail_20' ) end [2025-03-24 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752975', 'tblTempVendorCDR_20' ) start [2025-03-24 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752975', 'tblTempVendorCDR_20' ) end [2025-03-24 15:09:21] Production.INFO: ProcessCDR(1,14752975,1,1,2) [2025-03-24 15:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752975', 'tblTempUsageDetail_20' ) start [2025-03-24 15:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752975', 'tblTempUsageDetail_20' ) end [2025-03-24 15:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 15:09:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 15:09:26] Production.INFO: ==13414== Releasing lock... [2025-03-24 15:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 15:09:26] Production.INFO: 71.25 MB #Memory Used# [2025-03-24 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 12:10:06 [end_date_ymd] => 2025-03-24 15:10:06 [RateCDR] => 1 ) [2025-03-24 15:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 12:10:06' and `end` < '2025-03-24 15:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 15:10:20] Production.INFO: count ==5776 [2025-03-24 15:10:22] Production.ERROR: pbx CDR StartTime 2025-03-24 12:10:06 - End Time 2025-03-24 15:10:06 [2025-03-24 15:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752981', 'tblTempUsageDetail_20' ) start [2025-03-24 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752981', 'tblTempUsageDetail_20' ) end [2025-03-24 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752981', 'tblTempVendorCDR_20' ) start [2025-03-24 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752981', 'tblTempVendorCDR_20' ) end [2025-03-24 15:10:23] Production.INFO: ProcessCDR(1,14752981,1,1,2) [2025-03-24 15:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752981', 'tblTempUsageDetail_20' ) start [2025-03-24 15:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752981', 'tblTempUsageDetail_20' ) end [2025-03-24 15:10:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 15:10:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 15:10:28] Production.INFO: ==13526== Releasing lock... [2025-03-24 15:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 15:10:28] Production.INFO: 71.25 MB #Memory Used# [2025-03-24 15:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 12:11:06 [end_date_ymd] => 2025-03-24 15:11:06 [RateCDR] => 1 ) [2025-03-24 15: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-03-24 12:11:06' and `end` < '2025-03-24 15: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-03-24 15:11:19] Production.INFO: count ==5799 [2025-03-24 15:11:22] Production.ERROR: pbx CDR StartTime 2025-03-24 12:11:06 - End Time 2025-03-24 15:11:06 [2025-03-24 15:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752986', 'tblTempUsageDetail_20' ) start [2025-03-24 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752986', 'tblTempUsageDetail_20' ) end [2025-03-24 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752986', 'tblTempVendorCDR_20' ) start [2025-03-24 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752986', 'tblTempVendorCDR_20' ) end [2025-03-24 15:11:22] Production.INFO: ProcessCDR(1,14752986,1,1,2) [2025-03-24 15:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752986', 'tblTempUsageDetail_20' ) start [2025-03-24 15:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752986', 'tblTempUsageDetail_20' ) end [2025-03-24 15:11:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 15:11:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 15:11:27] Production.INFO: ==13614== Releasing lock... [2025-03-24 15:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 15:11:27] Production.INFO: 71.5 MB #Memory Used# [2025-03-24 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 12:12:05 [end_date_ymd] => 2025-03-24 15:12:05 [RateCDR] => 1 ) [2025-03-24 15:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 12:12:05' and `end` < '2025-03-24 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-03-24 15:12:19] Production.INFO: count ==5794 [2025-03-24 15:12:21] Production.ERROR: pbx CDR StartTime 2025-03-24 12:12:05 - End Time 2025-03-24 15:12:05 [2025-03-24 15:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752991', 'tblTempUsageDetail_20' ) start [2025-03-24 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752991', 'tblTempUsageDetail_20' ) end [2025-03-24 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752991', 'tblTempVendorCDR_20' ) start [2025-03-24 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752991', 'tblTempVendorCDR_20' ) end [2025-03-24 15:12:22] Production.INFO: ProcessCDR(1,14752991,1,1,2) [2025-03-24 15:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752991', 'tblTempUsageDetail_20' ) start [2025-03-24 15:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752991', 'tblTempUsageDetail_20' ) end [2025-03-24 15:12:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 15:12:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 15:12:27] Production.INFO: ==13784== Releasing lock... [2025-03-24 15:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 15:12:27] Production.INFO: 71.5 MB #Memory Used# [2025-03-24 15:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 12:13:06 [end_date_ymd] => 2025-03-24 15:13:06 [RateCDR] => 1 ) [2025-03-24 15: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-03-24 12:13:06' and `end` < '2025-03-24 15: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-03-24 15:13:20] Production.INFO: count ==5804 [2025-03-24 15:13:22] Production.ERROR: pbx CDR StartTime 2025-03-24 12:13:06 - End Time 2025-03-24 15:13:06 [2025-03-24 15:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752996', 'tblTempUsageDetail_20' ) start [2025-03-24 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14752996', 'tblTempUsageDetail_20' ) end [2025-03-24 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752996', 'tblTempVendorCDR_20' ) start [2025-03-24 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14752996', 'tblTempVendorCDR_20' ) end [2025-03-24 15:13:22] Production.INFO: ProcessCDR(1,14752996,1,1,2) [2025-03-24 15:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14752996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14752996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14752996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14752996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752996', 'tblTempUsageDetail_20' ) start [2025-03-24 15:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14752996', 'tblTempUsageDetail_20' ) end [2025-03-24 15:13:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 15:13:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 15:13:28] Production.INFO: ==13879== Releasing lock... [2025-03-24 15:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 15:13:28] Production.INFO: 71.5 MB #Memory Used# [2025-03-24 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 12:14:05 [end_date_ymd] => 2025-03-24 15:14:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 12:14:05' and `end` < '2025-03-24 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-03-24 15:14:18] Production.INFO: count ==5809 [2025-03-24 15:14:21] Production.ERROR: pbx CDR StartTime 2025-03-24 12:14:05 - End Time 2025-03-24 15:14:05 [2025-03-24 15:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753001', 'tblTempUsageDetail_20' ) start [2025-03-24 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753001', 'tblTempUsageDetail_20' ) end [2025-03-24 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753001', 'tblTempVendorCDR_20' ) start [2025-03-24 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753001', 'tblTempVendorCDR_20' ) end [2025-03-24 15:14:21] Production.INFO: ProcessCDR(1,14753001,1,1,2) [2025-03-24 15:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753001', 'tblTempUsageDetail_20' ) start [2025-03-24 15:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753001', 'tblTempUsageDetail_20' ) end [2025-03-24 15:14:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 15:14:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 15:14:26] Production.INFO: ==13966== Releasing lock... [2025-03-24 15:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 15:14:26] Production.INFO: 71.5 MB #Memory Used# [2025-03-24 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 12:15:05 [end_date_ymd] => 2025-03-24 15:15:05 [RateCDR] => 1 ) [2025-03-24 15:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 12:15:05' and `end` < '2025-03-24 15:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 15:15:19] Production.INFO: count ==5791 [2025-03-24 15:15:21] Production.ERROR: pbx CDR StartTime 2025-03-24 12:15:05 - End Time 2025-03-24 15:15:05 [2025-03-24 15:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753006', 'tblTempUsageDetail_20' ) start [2025-03-24 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753006', 'tblTempUsageDetail_20' ) end [2025-03-24 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753006', 'tblTempVendorCDR_20' ) start [2025-03-24 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753006', 'tblTempVendorCDR_20' ) end [2025-03-24 15:15:21] Production.INFO: ProcessCDR(1,14753006,1,1,2) [2025-03-24 15:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753006', 'tblTempUsageDetail_20' ) start [2025-03-24 15:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753006', 'tblTempUsageDetail_20' ) end [2025-03-24 15:15:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 15:15:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 15:15:27] Production.INFO: ==14173== Releasing lock... [2025-03-24 15:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 15:15:27] Production.INFO: 71.25 MB #Memory Used# [2025-03-24 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 12:16:05 [end_date_ymd] => 2025-03-24 15:16:05 [RateCDR] => 1 ) [2025-03-24 15:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 12:16:05' and `end` < '2025-03-24 15:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 15:16:19] Production.INFO: count ==5781 [2025-03-24 15:16:21] Production.ERROR: pbx CDR StartTime 2025-03-24 12:16:05 - End Time 2025-03-24 15:16:05 [2025-03-24 15:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753011', 'tblTempUsageDetail_20' ) start [2025-03-24 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753011', 'tblTempUsageDetail_20' ) end [2025-03-24 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753011', 'tblTempVendorCDR_20' ) start [2025-03-24 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753011', 'tblTempVendorCDR_20' ) end [2025-03-24 15:16:22] Production.INFO: ProcessCDR(1,14753011,1,1,2) [2025-03-24 15:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753011', 'tblTempUsageDetail_20' ) start [2025-03-24 15:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753011', 'tblTempUsageDetail_20' ) end [2025-03-24 15:16:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 15:16:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 15:16:27] Production.INFO: ==14265== Releasing lock... [2025-03-24 15:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 15:16:27] Production.INFO: 71.25 MB #Memory Used# [2025-03-24 15:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 12:17:06 [end_date_ymd] => 2025-03-24 15:17:06 [RateCDR] => 1 ) [2025-03-24 15: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-03-24 12:17:06' and `end` < '2025-03-24 15: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-03-24 15:17:19] Production.INFO: count ==5783 [2025-03-24 15:17:22] Production.ERROR: pbx CDR StartTime 2025-03-24 12:17:06 - End Time 2025-03-24 15:17:06 [2025-03-24 15:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753016', 'tblTempUsageDetail_20' ) start [2025-03-24 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753016', 'tblTempUsageDetail_20' ) end [2025-03-24 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753016', 'tblTempVendorCDR_20' ) start [2025-03-24 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753016', 'tblTempVendorCDR_20' ) end [2025-03-24 15:17:22] Production.INFO: ProcessCDR(1,14753016,1,1,2) [2025-03-24 15:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753016', 'tblTempUsageDetail_20' ) start [2025-03-24 15:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753016', 'tblTempUsageDetail_20' ) end [2025-03-24 15:17:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 15:17:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 15:17:27] Production.INFO: ==14356== Releasing lock... [2025-03-24 15:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 15:17:27] Production.INFO: 71.25 MB #Memory Used# [2025-03-24 15:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 12:18:06 [end_date_ymd] => 2025-03-24 15:18:06 [RateCDR] => 1 ) [2025-03-24 15: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-03-24 12:18:06' and `end` < '2025-03-24 15: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-03-24 15:18:20] Production.INFO: count ==5798 [2025-03-24 15:18:22] Production.ERROR: pbx CDR StartTime 2025-03-24 12:18:06 - End Time 2025-03-24 15:18:06 [2025-03-24 15:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 15:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753021', 'tblTempUsageDetail_20' ) start [2025-03-24 15:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753021', 'tblTempUsageDetail_20' ) end [2025-03-24 15:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753021', 'tblTempVendorCDR_20' ) start [2025-03-24 15:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753021', 'tblTempVendorCDR_20' ) end [2025-03-24 15:18:23] Production.INFO: ProcessCDR(1,14753021,1,1,2) [2025-03-24 15:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753021', 'tblTempUsageDetail_20' ) start [2025-03-24 15:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753021', 'tblTempUsageDetail_20' ) end [2025-03-24 15:18:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 15:18:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 15:18:28] Production.INFO: ==14443== Releasing lock... [2025-03-24 15:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 15:18:28] Production.INFO: 71.5 MB #Memory Used# [2025-03-24 15:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 12:19:06 [end_date_ymd] => 2025-03-24 15:19:06 [RateCDR] => 1 ) [2025-03-24 15: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-03-24 12:19:06' and `end` < '2025-03-24 15: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-03-24 15:19:19] Production.INFO: count ==5792 [2025-03-24 15:19:22] Production.ERROR: pbx CDR StartTime 2025-03-24 12:19:06 - End Time 2025-03-24 15:19:06 [2025-03-24 15:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753026', 'tblTempUsageDetail_20' ) start [2025-03-24 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753026', 'tblTempUsageDetail_20' ) end [2025-03-24 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753026', 'tblTempVendorCDR_20' ) start [2025-03-24 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753026', 'tblTempVendorCDR_20' ) end [2025-03-24 15:19:22] Production.INFO: ProcessCDR(1,14753026,1,1,2) [2025-03-24 15:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753026', 'tblTempUsageDetail_20' ) start [2025-03-24 15:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753026', 'tblTempUsageDetail_20' ) end [2025-03-24 15:19:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 15:19:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 15:19:28] Production.INFO: ==14531== Releasing lock... [2025-03-24 15:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 15:19:28] Production.INFO: 71.25 MB #Memory Used# [2025-03-24 15:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 12:20:06 [end_date_ymd] => 2025-03-24 15:20:06 [RateCDR] => 1 ) [2025-03-24 15: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-03-24 12:20:06' and `end` < '2025-03-24 15: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-03-24 15:20:20] Production.INFO: count ==5801 [2025-03-24 15:20:22] Production.ERROR: pbx CDR StartTime 2025-03-24 12:20:06 - End Time 2025-03-24 15:20:06 [2025-03-24 15:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753032', 'tblTempUsageDetail_20' ) start [2025-03-24 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753032', 'tblTempUsageDetail_20' ) end [2025-03-24 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753032', 'tblTempVendorCDR_20' ) start [2025-03-24 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753032', 'tblTempVendorCDR_20' ) end [2025-03-24 15:20:22] Production.INFO: ProcessCDR(1,14753032,1,1,2) [2025-03-24 15:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753032', 'tblTempUsageDetail_20' ) start [2025-03-24 15:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753032', 'tblTempUsageDetail_20' ) end [2025-03-24 15:20:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 15:20:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 15:20:28] Production.INFO: ==14624== Releasing lock... [2025-03-24 15:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 15:20:28] Production.INFO: 71.5 MB #Memory Used# [2025-03-24 15:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 12:21:06 [end_date_ymd] => 2025-03-24 15:21:06 [RateCDR] => 1 ) [2025-03-24 15: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-03-24 12:21:06' and `end` < '2025-03-24 15: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-03-24 15:21:20] Production.INFO: count ==5802 [2025-03-24 15:21:22] Production.ERROR: pbx CDR StartTime 2025-03-24 12:21:06 - End Time 2025-03-24 15:21:06 [2025-03-24 15:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753037', 'tblTempUsageDetail_20' ) start [2025-03-24 15:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753037', 'tblTempUsageDetail_20' ) end [2025-03-24 15:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753037', 'tblTempVendorCDR_20' ) start [2025-03-24 15:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753037', 'tblTempVendorCDR_20' ) end [2025-03-24 15:21:23] Production.INFO: ProcessCDR(1,14753037,1,1,2) [2025-03-24 15:21:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:21:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753037', 'tblTempUsageDetail_20' ) start [2025-03-24 15:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753037', 'tblTempUsageDetail_20' ) end [2025-03-24 15:21:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 15:21:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 15:21:28] Production.INFO: ==14712== Releasing lock... [2025-03-24 15:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 15:21:28] Production.INFO: 71.5 MB #Memory Used# [2025-03-24 15:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 12:22:06 [end_date_ymd] => 2025-03-24 15:22:06 [RateCDR] => 1 ) [2025-03-24 15:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 12:22:06' and `end` < '2025-03-24 15: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-03-24 15:22:20] Production.INFO: count ==5781 [2025-03-24 15:22:22] Production.ERROR: pbx CDR StartTime 2025-03-24 12:22:06 - End Time 2025-03-24 15:22:06 [2025-03-24 15:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 15:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753042', 'tblTempUsageDetail_20' ) start [2025-03-24 15:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753042', 'tblTempUsageDetail_20' ) end [2025-03-24 15:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753042', 'tblTempVendorCDR_20' ) start [2025-03-24 15:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753042', 'tblTempVendorCDR_20' ) end [2025-03-24 15:22:22] Production.INFO: ProcessCDR(1,14753042,1,1,2) [2025-03-24 15:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753042', 'tblTempUsageDetail_20' ) start [2025-03-24 15:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753042', 'tblTempUsageDetail_20' ) end [2025-03-24 15:22:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 15:22:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 15:22:27] Production.INFO: ==14802== Releasing lock... [2025-03-24 15:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 15:22:27] Production.INFO: 71.25 MB #Memory Used# [2025-03-24 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 12:23:05 [end_date_ymd] => 2025-03-24 15:23:05 [RateCDR] => 1 ) [2025-03-24 15:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 12:23:05' and `end` < '2025-03-24 15:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 15:23:19] Production.INFO: count ==5820 [2025-03-24 15:23:21] Production.ERROR: pbx CDR StartTime 2025-03-24 12:23:05 - End Time 2025-03-24 15:23:05 [2025-03-24 15:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753047', 'tblTempUsageDetail_20' ) start [2025-03-24 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753047', 'tblTempUsageDetail_20' ) end [2025-03-24 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753047', 'tblTempVendorCDR_20' ) start [2025-03-24 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753047', 'tblTempVendorCDR_20' ) end [2025-03-24 15:23:21] Production.INFO: ProcessCDR(1,14753047,1,1,2) [2025-03-24 15:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753047', 'tblTempUsageDetail_20' ) start [2025-03-24 15:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753047', 'tblTempUsageDetail_20' ) end [2025-03-24 15:23:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 15:23:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 15:23:27] Production.INFO: ==14888== Releasing lock... [2025-03-24 15:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 15:23:27] Production.INFO: 71.5 MB #Memory Used# [2025-03-24 15:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 12:24:06 [end_date_ymd] => 2025-03-24 15:24:06 [RateCDR] => 1 ) [2025-03-24 15: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-03-24 12:24:06' and `end` < '2025-03-24 15: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-03-24 15:24:20] Production.INFO: count ==5819 [2025-03-24 15:24:22] Production.ERROR: pbx CDR StartTime 2025-03-24 12:24:06 - End Time 2025-03-24 15:24:06 [2025-03-24 15:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 15:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753052', 'tblTempUsageDetail_20' ) start [2025-03-24 15:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753052', 'tblTempUsageDetail_20' ) end [2025-03-24 15:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753052', 'tblTempVendorCDR_20' ) start [2025-03-24 15:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753052', 'tblTempVendorCDR_20' ) end [2025-03-24 15:24:22] Production.INFO: ProcessCDR(1,14753052,1,1,2) [2025-03-24 15:24:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753052', 'tblTempUsageDetail_20' ) start [2025-03-24 15:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753052', 'tblTempUsageDetail_20' ) end [2025-03-24 15:24:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 15:24:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 15:24:28] Production.INFO: ==14975== Releasing lock... [2025-03-24 15:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 15:24:28] Production.INFO: 71.5 MB #Memory Used# [2025-03-24 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 12:25:05 [end_date_ymd] => 2025-03-24 15:25:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 12:25:05' and `end` < '2025-03-24 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-03-24 15:25:19] Production.INFO: count ==5842 [2025-03-24 15:25:22] Production.ERROR: pbx CDR StartTime 2025-03-24 12:25:05 - End Time 2025-03-24 15:25:05 [2025-03-24 15:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753057', 'tblTempUsageDetail_20' ) start [2025-03-24 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753057', 'tblTempUsageDetail_20' ) end [2025-03-24 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753057', 'tblTempVendorCDR_20' ) start [2025-03-24 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753057', 'tblTempVendorCDR_20' ) end [2025-03-24 15:25:22] Production.INFO: ProcessCDR(1,14753057,1,1,2) [2025-03-24 15:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753057', 'tblTempUsageDetail_20' ) start [2025-03-24 15:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753057', 'tblTempUsageDetail_20' ) end [2025-03-24 15:25:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 15:25:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 15:25:27] Production.INFO: ==15061== Releasing lock... [2025-03-24 15:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 15:25:27] Production.INFO: 71.75 MB #Memory Used# [2025-03-24 15:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 12:26:06 [end_date_ymd] => 2025-03-24 15:26:06 [RateCDR] => 1 ) [2025-03-24 15: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-03-24 12:26:06' and `end` < '2025-03-24 15: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-03-24 15:26:20] Production.INFO: count ==5853 [2025-03-24 15:26:22] Production.ERROR: pbx CDR StartTime 2025-03-24 12:26:06 - End Time 2025-03-24 15:26:06 [2025-03-24 15:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753062', 'tblTempUsageDetail_20' ) start [2025-03-24 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753062', 'tblTempUsageDetail_20' ) end [2025-03-24 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753062', 'tblTempVendorCDR_20' ) start [2025-03-24 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753062', 'tblTempVendorCDR_20' ) end [2025-03-24 15:26:22] Production.INFO: ProcessCDR(1,14753062,1,1,2) [2025-03-24 15:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753062', 'tblTempUsageDetail_20' ) start [2025-03-24 15:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753062', 'tblTempUsageDetail_20' ) end [2025-03-24 15:26:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 15:26:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 15:26:28] Production.INFO: ==15159== Releasing lock... [2025-03-24 15:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 15:26:28] Production.INFO: 71.75 MB #Memory Used# [2025-03-24 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 12:27:05 [end_date_ymd] => 2025-03-24 15:27:05 [RateCDR] => 1 ) [2025-03-24 15:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 12:27:05' and `end` < '2025-03-24 15:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 15:27:19] Production.INFO: count ==5860 [2025-03-24 15:27:21] Production.ERROR: pbx CDR StartTime 2025-03-24 12:27:05 - End Time 2025-03-24 15:27:05 [2025-03-24 15:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753067', 'tblTempUsageDetail_20' ) start [2025-03-24 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753067', 'tblTempUsageDetail_20' ) end [2025-03-24 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753067', 'tblTempVendorCDR_20' ) start [2025-03-24 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753067', 'tblTempVendorCDR_20' ) end [2025-03-24 15:27:22] Production.INFO: ProcessCDR(1,14753067,1,1,2) [2025-03-24 15:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753067', 'tblTempUsageDetail_20' ) start [2025-03-24 15:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753067', 'tblTempUsageDetail_20' ) end [2025-03-24 15:27:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 15:27:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 15:27:27] Production.INFO: ==15253== Releasing lock... [2025-03-24 15:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 15:27:27] Production.INFO: 71.75 MB #Memory Used# [2025-03-24 15:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 12:28:06 [end_date_ymd] => 2025-03-24 15:28:06 [RateCDR] => 1 ) [2025-03-24 15: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-03-24 12:28:06' and `end` < '2025-03-24 15: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-03-24 15:28:20] Production.INFO: count ==5927 [2025-03-24 15:28:22] Production.ERROR: pbx CDR StartTime 2025-03-24 12:28:06 - End Time 2025-03-24 15:28:06 [2025-03-24 15:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753072', 'tblTempUsageDetail_20' ) start [2025-03-24 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753072', 'tblTempUsageDetail_20' ) end [2025-03-24 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753072', 'tblTempVendorCDR_20' ) start [2025-03-24 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753072', 'tblTempVendorCDR_20' ) end [2025-03-24 15:28:22] Production.INFO: ProcessCDR(1,14753072,1,1,2) [2025-03-24 15:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753072', 'tblTempUsageDetail_20' ) start [2025-03-24 15:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753072', 'tblTempUsageDetail_20' ) end [2025-03-24 15:28:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 15:28:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 15:28:28] Production.INFO: ==15338== Releasing lock... [2025-03-24 15:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 15:28:28] Production.INFO: 72.25 MB #Memory Used# [2025-03-24 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 12:29:05 [end_date_ymd] => 2025-03-24 15:29:05 [RateCDR] => 1 ) [2025-03-24 15:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 12:29:05' and `end` < '2025-03-24 15:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 15:29:18] Production.INFO: count ==5923 [2025-03-24 15:29:21] Production.ERROR: pbx CDR StartTime 2025-03-24 12:29:05 - End Time 2025-03-24 15:29:05 [2025-03-24 15:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753077', 'tblTempUsageDetail_20' ) start [2025-03-24 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753077', 'tblTempUsageDetail_20' ) end [2025-03-24 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753077', 'tblTempVendorCDR_20' ) start [2025-03-24 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753077', 'tblTempVendorCDR_20' ) end [2025-03-24 15:29:21] Production.INFO: ProcessCDR(1,14753077,1,1,2) [2025-03-24 15:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753077', 'tblTempUsageDetail_20' ) start [2025-03-24 15:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753077', 'tblTempUsageDetail_20' ) end [2025-03-24 15:29:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 15:29:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 15:29:26] Production.INFO: ==15425== Releasing lock... [2025-03-24 15:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 15:29:26] Production.INFO: 72.25 MB #Memory Used# [2025-03-24 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 12:30:06 [end_date_ymd] => 2025-03-24 15:30:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 12:30:06' and `end` < '2025-03-24 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-03-24 15:30:20] Production.INFO: count ==5929 [2025-03-24 15:30:22] Production.ERROR: pbx CDR StartTime 2025-03-24 12:30:06 - End Time 2025-03-24 15:30:06 [2025-03-24 15:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753083', 'tblTempUsageDetail_20' ) start [2025-03-24 15:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753083', 'tblTempUsageDetail_20' ) end [2025-03-24 15:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753083', 'tblTempVendorCDR_20' ) start [2025-03-24 15:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753083', 'tblTempVendorCDR_20' ) end [2025-03-24 15:30:23] Production.INFO: ProcessCDR(1,14753083,1,1,2) [2025-03-24 15:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753083', 'tblTempUsageDetail_20' ) start [2025-03-24 15:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753083', 'tblTempUsageDetail_20' ) end [2025-03-24 15:30:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 15:30:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 15:30:28] Production.INFO: ==15555== Releasing lock... [2025-03-24 15:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 15:30:28] Production.INFO: 72.5 MB #Memory Used# [2025-03-24 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 12:31:05 [end_date_ymd] => 2025-03-24 15:31:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 12:31:05' and `end` < '2025-03-24 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-03-24 15:31:19] Production.INFO: count ==5934 [2025-03-24 15:31:21] Production.ERROR: pbx CDR StartTime 2025-03-24 12:31:05 - End Time 2025-03-24 15:31:05 [2025-03-24 15:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753088', 'tblTempUsageDetail_20' ) start [2025-03-24 15:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753088', 'tblTempUsageDetail_20' ) end [2025-03-24 15:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753088', 'tblTempVendorCDR_20' ) start [2025-03-24 15:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753088', 'tblTempVendorCDR_20' ) end [2025-03-24 15:31:22] Production.INFO: ProcessCDR(1,14753088,1,1,2) [2025-03-24 15:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753088', 'tblTempUsageDetail_20' ) start [2025-03-24 15:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753088', 'tblTempUsageDetail_20' ) end [2025-03-24 15:31:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 15:31:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 15:31:25] Production.INFO: ==15643== Releasing lock... [2025-03-24 15:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 15:31:25] Production.INFO: 72.5 MB #Memory Used# [2025-03-24 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 12:32:05 [end_date_ymd] => 2025-03-24 15:32:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 12:32:05' and `end` < '2025-03-24 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-03-24 15:32:19] Production.INFO: count ==5923 [2025-03-24 15:32:21] Production.ERROR: pbx CDR StartTime 2025-03-24 12:32:05 - End Time 2025-03-24 15:32:05 [2025-03-24 15:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753093', 'tblTempUsageDetail_20' ) start [2025-03-24 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753093', 'tblTempUsageDetail_20' ) end [2025-03-24 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753093', 'tblTempVendorCDR_20' ) start [2025-03-24 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753093', 'tblTempVendorCDR_20' ) end [2025-03-24 15:32:22] Production.INFO: ProcessCDR(1,14753093,1,1,2) [2025-03-24 15:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753093', 'tblTempUsageDetail_20' ) start [2025-03-24 15:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753093', 'tblTempUsageDetail_20' ) end [2025-03-24 15:32:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 15:32:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 15:32:27] Production.INFO: ==15728== Releasing lock... [2025-03-24 15:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 15:32:27] Production.INFO: 72.25 MB #Memory Used# [2025-03-24 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 12:33:05 [end_date_ymd] => 2025-03-24 15:33:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 12:33:05' and `end` < '2025-03-24 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-03-24 15:33:18] Production.INFO: count ==5946 [2025-03-24 15:33:21] Production.ERROR: pbx CDR StartTime 2025-03-24 12:33:05 - End Time 2025-03-24 15:33:05 [2025-03-24 15:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753098', 'tblTempUsageDetail_20' ) start [2025-03-24 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753098', 'tblTempUsageDetail_20' ) end [2025-03-24 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753098', 'tblTempVendorCDR_20' ) start [2025-03-24 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753098', 'tblTempVendorCDR_20' ) end [2025-03-24 15:33:21] Production.INFO: ProcessCDR(1,14753098,1,1,2) [2025-03-24 15:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753098', 'tblTempUsageDetail_20' ) start [2025-03-24 15:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753098', 'tblTempUsageDetail_20' ) end [2025-03-24 15:33:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 15:33:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 15:33:26] Production.INFO: ==15814== Releasing lock... [2025-03-24 15:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 15:33:26] Production.INFO: 72.5 MB #Memory Used# [2025-03-24 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 12:34:05 [end_date_ymd] => 2025-03-24 15:34:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 12:34:05' and `end` < '2025-03-24 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-03-24 15:34:19] Production.INFO: count ==5957 [2025-03-24 15:34:21] Production.ERROR: pbx CDR StartTime 2025-03-24 12:34:05 - End Time 2025-03-24 15:34:05 [2025-03-24 15:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753103', 'tblTempUsageDetail_20' ) start [2025-03-24 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753103', 'tblTempUsageDetail_20' ) end [2025-03-24 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753103', 'tblTempVendorCDR_20' ) start [2025-03-24 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753103', 'tblTempVendorCDR_20' ) end [2025-03-24 15:34:22] Production.INFO: ProcessCDR(1,14753103,1,1,2) [2025-03-24 15:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753103', 'tblTempUsageDetail_20' ) start [2025-03-24 15:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753103', 'tblTempUsageDetail_20' ) end [2025-03-24 15:34:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 15:34:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 15:34:27] Production.INFO: ==15900== Releasing lock... [2025-03-24 15:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 15:34:27] Production.INFO: 72.5 MB #Memory Used# [2025-03-24 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 12:35:05 [end_date_ymd] => 2025-03-24 15:35:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 12:35:05' and `end` < '2025-03-24 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-03-24 15:35:19] Production.INFO: count ==5963 [2025-03-24 15:35:21] Production.ERROR: pbx CDR StartTime 2025-03-24 12:35:05 - End Time 2025-03-24 15:35:05 [2025-03-24 15:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753108', 'tblTempUsageDetail_20' ) start [2025-03-24 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753108', 'tblTempUsageDetail_20' ) end [2025-03-24 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753108', 'tblTempVendorCDR_20' ) start [2025-03-24 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753108', 'tblTempVendorCDR_20' ) end [2025-03-24 15:35:22] Production.INFO: ProcessCDR(1,14753108,1,1,2) [2025-03-24 15:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753108', 'tblTempUsageDetail_20' ) start [2025-03-24 15:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753108', 'tblTempUsageDetail_20' ) end [2025-03-24 15:35:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 15:35:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 15:35:27] Production.INFO: ==16002== Releasing lock... [2025-03-24 15:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 15:35:27] Production.INFO: 73 MB #Memory Used# [2025-03-24 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 12:36:05 [end_date_ymd] => 2025-03-24 15:36:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 12:36:05' and `end` < '2025-03-24 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-03-24 15:36:18] Production.INFO: count ==5984 [2025-03-24 15:36:21] Production.ERROR: pbx CDR StartTime 2025-03-24 12:36:05 - End Time 2025-03-24 15:36:05 [2025-03-24 15:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753113', 'tblTempUsageDetail_20' ) start [2025-03-24 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753113', 'tblTempUsageDetail_20' ) end [2025-03-24 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753113', 'tblTempVendorCDR_20' ) start [2025-03-24 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753113', 'tblTempVendorCDR_20' ) end [2025-03-24 15:36:21] Production.INFO: ProcessCDR(1,14753113,1,1,2) [2025-03-24 15:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753113', 'tblTempUsageDetail_20' ) start [2025-03-24 15:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753113', 'tblTempUsageDetail_20' ) end [2025-03-24 15:36:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 15:36:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 15:36:27] Production.INFO: ==16089== Releasing lock... [2025-03-24 15:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 15:36:27] Production.INFO: 72.75 MB #Memory Used# [2025-03-24 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 12:37:05 [end_date_ymd] => 2025-03-24 15:37:05 [RateCDR] => 1 ) [2025-03-24 15:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 12:37:05' and `end` < '2025-03-24 15:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 15:37:19] Production.INFO: count ==6072 [2025-03-24 15:37:21] Production.ERROR: pbx CDR StartTime 2025-03-24 12:37:05 - End Time 2025-03-24 15:37:05 [2025-03-24 15:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753118', 'tblTempUsageDetail_20' ) start [2025-03-24 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753118', 'tblTempUsageDetail_20' ) end [2025-03-24 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753118', 'tblTempVendorCDR_20' ) start [2025-03-24 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753118', 'tblTempVendorCDR_20' ) end [2025-03-24 15:37:21] Production.INFO: ProcessCDR(1,14753118,1,1,2) [2025-03-24 15:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753118', 'tblTempUsageDetail_20' ) start [2025-03-24 15:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753118', 'tblTempUsageDetail_20' ) end [2025-03-24 15:37:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 15:37:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 15:37:27] Production.INFO: ==16175== Releasing lock... [2025-03-24 15:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 15:37:27] Production.INFO: 73.5 MB #Memory Used# [2025-03-24 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 12:38:05 [end_date_ymd] => 2025-03-24 15:38:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 12:38:05' and `end` < '2025-03-24 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-03-24 15:38:19] Production.INFO: count ==6086 [2025-03-24 15:38:21] Production.ERROR: pbx CDR StartTime 2025-03-24 12:38:05 - End Time 2025-03-24 15:38:05 [2025-03-24 15:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753123', 'tblTempUsageDetail_20' ) start [2025-03-24 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753123', 'tblTempUsageDetail_20' ) end [2025-03-24 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753123', 'tblTempVendorCDR_20' ) start [2025-03-24 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753123', 'tblTempVendorCDR_20' ) end [2025-03-24 15:38:22] Production.INFO: ProcessCDR(1,14753123,1,1,2) [2025-03-24 15:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753123', 'tblTempUsageDetail_20' ) start [2025-03-24 15:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753123', 'tblTempUsageDetail_20' ) end [2025-03-24 15:38:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 15:38:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 15:38:27] Production.INFO: ==16265== Releasing lock... [2025-03-24 15:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 15:38:27] Production.INFO: 73.5 MB #Memory Used# [2025-03-24 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 12:39:05 [end_date_ymd] => 2025-03-24 15:39:05 [RateCDR] => 1 ) [2025-03-24 15:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 12:39:05' and `end` < '2025-03-24 15:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 15:39:19] Production.INFO: count ==6091 [2025-03-24 15:39:21] Production.ERROR: pbx CDR StartTime 2025-03-24 12:39:05 - End Time 2025-03-24 15:39:05 [2025-03-24 15:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753128', 'tblTempUsageDetail_20' ) start [2025-03-24 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753128', 'tblTempUsageDetail_20' ) end [2025-03-24 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753128', 'tblTempVendorCDR_20' ) start [2025-03-24 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753128', 'tblTempVendorCDR_20' ) end [2025-03-24 15:39:21] Production.INFO: ProcessCDR(1,14753128,1,1,2) [2025-03-24 15:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753128', 'tblTempUsageDetail_20' ) start [2025-03-24 15:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753128', 'tblTempUsageDetail_20' ) end [2025-03-24 15:39:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 15:39:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 15:39:27] Production.INFO: ==16351== Releasing lock... [2025-03-24 15:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 15:39:27] Production.INFO: 73.5 MB #Memory Used# [2025-03-24 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 12:40:06 [end_date_ymd] => 2025-03-24 15:40:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 12:40:06' and `end` < '2025-03-24 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-03-24 15:40:20] Production.INFO: count ==6087 [2025-03-24 15:40:23] Production.ERROR: pbx CDR StartTime 2025-03-24 12:40:06 - End Time 2025-03-24 15:40:06 [2025-03-24 15:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753134', 'tblTempUsageDetail_20' ) start [2025-03-24 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753134', 'tblTempUsageDetail_20' ) end [2025-03-24 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753134', 'tblTempVendorCDR_20' ) start [2025-03-24 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753134', 'tblTempVendorCDR_20' ) end [2025-03-24 15:40:23] Production.INFO: ProcessCDR(1,14753134,1,1,2) [2025-03-24 15:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:40:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753134', 'tblTempUsageDetail_20' ) start [2025-03-24 15:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753134', 'tblTempUsageDetail_20' ) end [2025-03-24 15:40:29] Production.ERROR: pbx prc_insertCDR start [2025-03-24 15:40:29] Production.ERROR: pbx prc_insertCDR end [2025-03-24 15:40:29] Production.INFO: ==16441== Releasing lock... [2025-03-24 15:40:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 15:40:29] Production.INFO: 73.5 MB #Memory Used# [2025-03-24 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 12:41:05 [end_date_ymd] => 2025-03-24 15:41:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 12:41:05' and `end` < '2025-03-24 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-03-24 15:41:19] Production.INFO: count ==6151 [2025-03-24 15:41:21] Production.ERROR: pbx CDR StartTime 2025-03-24 12:41:05 - End Time 2025-03-24 15:41:05 [2025-03-24 15:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753139', 'tblTempUsageDetail_20' ) start [2025-03-24 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753139', 'tblTempUsageDetail_20' ) end [2025-03-24 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753139', 'tblTempVendorCDR_20' ) start [2025-03-24 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753139', 'tblTempVendorCDR_20' ) end [2025-03-24 15:41:21] Production.INFO: ProcessCDR(1,14753139,1,1,2) [2025-03-24 15:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753139', 'tblTempUsageDetail_20' ) start [2025-03-24 15:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753139', 'tblTempUsageDetail_20' ) end [2025-03-24 15:41:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 15:41:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 15:41:27] Production.INFO: ==16527== Releasing lock... [2025-03-24 15:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 15:41:27] Production.INFO: 74 MB #Memory Used# [2025-03-24 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 12:42:05 [end_date_ymd] => 2025-03-24 15:42:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 12:42:05' and `end` < '2025-03-24 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-03-24 15:42:20] Production.INFO: count ==6161 [2025-03-24 15:42:23] Production.ERROR: pbx CDR StartTime 2025-03-24 12:42:05 - End Time 2025-03-24 15:42:05 [2025-03-24 15:42:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 15:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753144', 'tblTempUsageDetail_20' ) start [2025-03-24 15:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753144', 'tblTempUsageDetail_20' ) end [2025-03-24 15:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753144', 'tblTempVendorCDR_20' ) start [2025-03-24 15:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753144', 'tblTempVendorCDR_20' ) end [2025-03-24 15:42:23] Production.INFO: ProcessCDR(1,14753144,1,1,2) [2025-03-24 15:42:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:42:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:42:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753144', 'tblTempUsageDetail_20' ) start [2025-03-24 15:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753144', 'tblTempUsageDetail_20' ) end [2025-03-24 15:42:29] Production.ERROR: pbx prc_insertCDR start [2025-03-24 15:42:29] Production.ERROR: pbx prc_insertCDR end [2025-03-24 15:42:29] Production.INFO: ==16615== Releasing lock... [2025-03-24 15:42:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 15:42:29] Production.INFO: 74.25 MB #Memory Used# [2025-03-24 15:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 12:43:06 [end_date_ymd] => 2025-03-24 15:43:06 [RateCDR] => 1 ) [2025-03-24 15: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-03-24 12:43:06' and `end` < '2025-03-24 15: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-03-24 15:43:20] Production.INFO: count ==6244 [2025-03-24 15:43:22] Production.ERROR: pbx CDR StartTime 2025-03-24 12:43:06 - End Time 2025-03-24 15:43:06 [2025-03-24 15:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 15:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753149', 'tblTempUsageDetail_20' ) start [2025-03-24 15:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753149', 'tblTempUsageDetail_20' ) end [2025-03-24 15:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753149', 'tblTempVendorCDR_20' ) start [2025-03-24 15:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753149', 'tblTempVendorCDR_20' ) end [2025-03-24 15:43:22] Production.INFO: ProcessCDR(1,14753149,1,1,2) [2025-03-24 15:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:43:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753149', 'tblTempUsageDetail_20' ) start [2025-03-24 15:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753149', 'tblTempUsageDetail_20' ) end [2025-03-24 15:43:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 15:43:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 15:43:28] Production.INFO: ==16703== Releasing lock... [2025-03-24 15:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 15:43:28] Production.INFO: 74.75 MB #Memory Used# [2025-03-24 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 12:44:05 [end_date_ymd] => 2025-03-24 15:44:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 12:44:05' and `end` < '2025-03-24 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-03-24 15:44:19] Production.INFO: count ==6267 [2025-03-24 15:44:22] Production.ERROR: pbx CDR StartTime 2025-03-24 12:44:05 - End Time 2025-03-24 15:44:05 [2025-03-24 15:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753154', 'tblTempUsageDetail_20' ) start [2025-03-24 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753154', 'tblTempUsageDetail_20' ) end [2025-03-24 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753154', 'tblTempVendorCDR_20' ) start [2025-03-24 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753154', 'tblTempVendorCDR_20' ) end [2025-03-24 15:44:22] Production.INFO: ProcessCDR(1,14753154,1,1,2) [2025-03-24 15:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753154', 'tblTempUsageDetail_20' ) start [2025-03-24 15:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753154', 'tblTempUsageDetail_20' ) end [2025-03-24 15:44:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 15:44:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 15:44:26] Production.INFO: ==16786== Releasing lock... [2025-03-24 15:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 15:44:26] Production.INFO: 75 MB #Memory Used# [2025-03-24 15:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 12:45:06 [end_date_ymd] => 2025-03-24 15:45:06 [RateCDR] => 1 ) [2025-03-24 15: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-03-24 12:45:06' and `end` < '2025-03-24 15: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-03-24 15:45:21] Production.INFO: count ==6286 [2025-03-24 15:45:24] Production.ERROR: pbx CDR StartTime 2025-03-24 12:45:06 - End Time 2025-03-24 15:45:06 [2025-03-24 15:45:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 15:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753159', 'tblTempUsageDetail_20' ) start [2025-03-24 15:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753159', 'tblTempUsageDetail_20' ) end [2025-03-24 15:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753159', 'tblTempVendorCDR_20' ) start [2025-03-24 15:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753159', 'tblTempVendorCDR_20' ) end [2025-03-24 15:45:24] Production.INFO: ProcessCDR(1,14753159,1,1,2) [2025-03-24 15:45:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:45:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:45:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:45:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:45:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753159', 'tblTempUsageDetail_20' ) start [2025-03-24 15:45:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753159', 'tblTempUsageDetail_20' ) end [2025-03-24 15:45:30] Production.ERROR: pbx prc_insertCDR start [2025-03-24 15:45:30] Production.ERROR: pbx prc_insertCDR end [2025-03-24 15:45:30] Production.INFO: ==16873== Releasing lock... [2025-03-24 15:45:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 15:45:30] Production.INFO: 75 MB #Memory Used# [2025-03-24 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 12:46:05 [end_date_ymd] => 2025-03-24 15:46:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 12:46:05' and `end` < '2025-03-24 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-03-24 15:46:19] Production.INFO: count ==6296 [2025-03-24 15:46:22] Production.ERROR: pbx CDR StartTime 2025-03-24 12:46:05 - End Time 2025-03-24 15:46:05 [2025-03-24 15:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753164', 'tblTempUsageDetail_20' ) start [2025-03-24 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753164', 'tblTempUsageDetail_20' ) end [2025-03-24 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753164', 'tblTempVendorCDR_20' ) start [2025-03-24 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753164', 'tblTempVendorCDR_20' ) end [2025-03-24 15:46:22] Production.INFO: ProcessCDR(1,14753164,1,1,2) [2025-03-24 15:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753164', 'tblTempUsageDetail_20' ) start [2025-03-24 15:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753164', 'tblTempUsageDetail_20' ) end [2025-03-24 15:46:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 15:46:29] Production.ERROR: pbx prc_insertCDR end [2025-03-24 15:46:29] Production.INFO: ==17000== Releasing lock... [2025-03-24 15:46:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 15:46:29] Production.INFO: 75.25 MB #Memory Used# [2025-03-24 15:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 12:47:06 [end_date_ymd] => 2025-03-24 15:47:06 [RateCDR] => 1 ) [2025-03-24 15: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-03-24 12:47:06' and `end` < '2025-03-24 15: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-03-24 15:47:20] Production.INFO: count ==6316 [2025-03-24 15:47:23] Production.ERROR: pbx CDR StartTime 2025-03-24 12:47:06 - End Time 2025-03-24 15:47:06 [2025-03-24 15:47:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 15:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753169', 'tblTempUsageDetail_20' ) start [2025-03-24 15:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753169', 'tblTempUsageDetail_20' ) end [2025-03-24 15:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753169', 'tblTempVendorCDR_20' ) start [2025-03-24 15:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753169', 'tblTempVendorCDR_20' ) end [2025-03-24 15:47:23] Production.INFO: ProcessCDR(1,14753169,1,1,2) [2025-03-24 15:47:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:47:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:47:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:47:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753169', 'tblTempUsageDetail_20' ) start [2025-03-24 15:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753169', 'tblTempUsageDetail_20' ) end [2025-03-24 15:47:29] Production.ERROR: pbx prc_insertCDR start [2025-03-24 15:47:29] Production.ERROR: pbx prc_insertCDR end [2025-03-24 15:47:29] Production.INFO: ==17090== Releasing lock... [2025-03-24 15:47:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 15:47:29] Production.INFO: 75.25 MB #Memory Used# [2025-03-24 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 12:48:05 [end_date_ymd] => 2025-03-24 15:48:05 [RateCDR] => 1 ) [2025-03-24 15:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 12:48:05' and `end` < '2025-03-24 15:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 15:48:19] Production.INFO: count ==6312 [2025-03-24 15:48:22] Production.ERROR: pbx CDR StartTime 2025-03-24 12:48:05 - End Time 2025-03-24 15:48:05 [2025-03-24 15:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753174', 'tblTempUsageDetail_20' ) start [2025-03-24 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753174', 'tblTempUsageDetail_20' ) end [2025-03-24 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753174', 'tblTempVendorCDR_20' ) start [2025-03-24 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753174', 'tblTempVendorCDR_20' ) end [2025-03-24 15:48:22] Production.INFO: ProcessCDR(1,14753174,1,1,2) [2025-03-24 15:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753174', 'tblTempUsageDetail_20' ) start [2025-03-24 15:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753174', 'tblTempUsageDetail_20' ) end [2025-03-24 15:48:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 15:48:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 15:48:27] Production.INFO: ==17176== Releasing lock... [2025-03-24 15:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 15:48:27] Production.INFO: 75.25 MB #Memory Used# [2025-03-24 15:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 12:49:06 [end_date_ymd] => 2025-03-24 15:49:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 12:49:06' and `end` < '2025-03-24 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-03-24 15:49:20] Production.INFO: count ==6317 [2025-03-24 15:49:22] Production.ERROR: pbx CDR StartTime 2025-03-24 12:49:06 - End Time 2025-03-24 15:49:06 [2025-03-24 15:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 15:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753179', 'tblTempUsageDetail_20' ) start [2025-03-24 15:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753179', 'tblTempUsageDetail_20' ) end [2025-03-24 15:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753179', 'tblTempVendorCDR_20' ) start [2025-03-24 15:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753179', 'tblTempVendorCDR_20' ) end [2025-03-24 15:49:23] Production.INFO: ProcessCDR(1,14753179,1,1,2) [2025-03-24 15:49:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753179', 'tblTempUsageDetail_20' ) start [2025-03-24 15:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753179', 'tblTempUsageDetail_20' ) end [2025-03-24 15:49:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 15:49:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 15:49:28] Production.INFO: ==17266== Releasing lock... [2025-03-24 15:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 15:49:28] Production.INFO: 75.25 MB #Memory Used# [2025-03-24 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 12:50:06 [end_date_ymd] => 2025-03-24 15:50:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 12:50:06' and `end` < '2025-03-24 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-03-24 15:50:20] Production.INFO: count ==6322 [2025-03-24 15:50:23] Production.ERROR: pbx CDR StartTime 2025-03-24 12:50:06 - End Time 2025-03-24 15:50:06 [2025-03-24 15:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 15:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753185', 'tblTempUsageDetail_20' ) start [2025-03-24 15:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753185', 'tblTempUsageDetail_20' ) end [2025-03-24 15:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753185', 'tblTempVendorCDR_20' ) start [2025-03-24 15:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753185', 'tblTempVendorCDR_20' ) end [2025-03-24 15:50:23] Production.INFO: ProcessCDR(1,14753185,1,1,2) [2025-03-24 15:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753185', 'tblTempUsageDetail_20' ) start [2025-03-24 15:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753185', 'tblTempUsageDetail_20' ) end [2025-03-24 15:50:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 15:50:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 15:50:28] Production.INFO: ==17352== Releasing lock... [2025-03-24 15:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 15:50:28] Production.INFO: 75.25 MB #Memory Used# [2025-03-24 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 12:51:05 [end_date_ymd] => 2025-03-24 15:51:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 12:51:05' and `end` < '2025-03-24 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-03-24 15:51:19] Production.INFO: count ==6372 [2025-03-24 15:51:22] Production.ERROR: pbx CDR StartTime 2025-03-24 12:51:05 - End Time 2025-03-24 15:51:05 [2025-03-24 15:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 15:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753190', 'tblTempUsageDetail_20' ) start [2025-03-24 15:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753190', 'tblTempUsageDetail_20' ) end [2025-03-24 15:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753190', 'tblTempVendorCDR_20' ) start [2025-03-24 15:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753190', 'tblTempVendorCDR_20' ) end [2025-03-24 15:51:22] Production.INFO: ProcessCDR(1,14753190,1,1,2) [2025-03-24 15:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753190', 'tblTempUsageDetail_20' ) start [2025-03-24 15:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753190', 'tblTempUsageDetail_20' ) end [2025-03-24 15:51:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 15:51:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 15:51:28] Production.INFO: ==17445== Releasing lock... [2025-03-24 15:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 15:51:28] Production.INFO: 75.75 MB #Memory Used# [2025-03-24 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 12:52:05 [end_date_ymd] => 2025-03-24 15:52:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 12:52:05' and `end` < '2025-03-24 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-03-24 15:52:19] Production.INFO: count ==6370 [2025-03-24 15:52:22] Production.ERROR: pbx CDR StartTime 2025-03-24 12:52:05 - End Time 2025-03-24 15:52:05 [2025-03-24 15:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753195', 'tblTempUsageDetail_20' ) start [2025-03-24 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753195', 'tblTempUsageDetail_20' ) end [2025-03-24 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753195', 'tblTempVendorCDR_20' ) start [2025-03-24 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753195', 'tblTempVendorCDR_20' ) end [2025-03-24 15:52:22] Production.INFO: ProcessCDR(1,14753195,1,1,2) [2025-03-24 15:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753195', 'tblTempUsageDetail_20' ) start [2025-03-24 15:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753195', 'tblTempUsageDetail_20' ) end [2025-03-24 15:52:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 15:52:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 15:52:27] Production.INFO: ==17533== Releasing lock... [2025-03-24 15:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 15:52:27] Production.INFO: 75.75 MB #Memory Used# [2025-03-24 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 12:53:05 [end_date_ymd] => 2025-03-24 15:53:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 12:53:05' and `end` < '2025-03-24 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-03-24 15:53:19] Production.INFO: count ==6404 [2025-03-24 15:53:22] Production.ERROR: pbx CDR StartTime 2025-03-24 12:53:05 - End Time 2025-03-24 15:53:05 [2025-03-24 15:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 15:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753200', 'tblTempUsageDetail_20' ) start [2025-03-24 15:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753200', 'tblTempUsageDetail_20' ) end [2025-03-24 15:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753200', 'tblTempVendorCDR_20' ) start [2025-03-24 15:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753200', 'tblTempVendorCDR_20' ) end [2025-03-24 15:53:22] Production.INFO: ProcessCDR(1,14753200,1,1,2) [2025-03-24 15:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753200', 'tblTempUsageDetail_20' ) start [2025-03-24 15:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753200', 'tblTempUsageDetail_20' ) end [2025-03-24 15:53:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 15:53:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 15:53:27] Production.INFO: ==17620== Releasing lock... [2025-03-24 15:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 15:53:27] Production.INFO: 76 MB #Memory Used# [2025-03-24 15:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 12:54:06 [end_date_ymd] => 2025-03-24 15:54:06 [RateCDR] => 1 ) [2025-03-24 15: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-03-24 12:54:06' and `end` < '2025-03-24 15: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-03-24 15:54:20] Production.INFO: count ==6424 [2025-03-24 15:54:22] Production.ERROR: pbx CDR StartTime 2025-03-24 12:54:06 - End Time 2025-03-24 15:54:06 [2025-03-24 15:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753205', 'tblTempUsageDetail_20' ) start [2025-03-24 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753205', 'tblTempUsageDetail_20' ) end [2025-03-24 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753205', 'tblTempVendorCDR_20' ) start [2025-03-24 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753205', 'tblTempVendorCDR_20' ) end [2025-03-24 15:54:22] Production.INFO: ProcessCDR(1,14753205,1,1,2) [2025-03-24 15:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753205', 'tblTempUsageDetail_20' ) start [2025-03-24 15:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753205', 'tblTempUsageDetail_20' ) end [2025-03-24 15:54:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 15:54:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 15:54:27] Production.INFO: ==17708== Releasing lock... [2025-03-24 15:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 15:54:27] Production.INFO: 76 MB #Memory Used# [2025-03-24 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 12:55:05 [end_date_ymd] => 2025-03-24 15:55:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 12:55:05' and `end` < '2025-03-24 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-03-24 15:55:19] Production.INFO: count ==6465 [2025-03-24 15:55:21] Production.ERROR: pbx CDR StartTime 2025-03-24 12:55:05 - End Time 2025-03-24 15:55:05 [2025-03-24 15:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753210', 'tblTempUsageDetail_20' ) start [2025-03-24 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753210', 'tblTempUsageDetail_20' ) end [2025-03-24 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753210', 'tblTempVendorCDR_20' ) start [2025-03-24 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753210', 'tblTempVendorCDR_20' ) end [2025-03-24 15:55:22] Production.INFO: ProcessCDR(1,14753210,1,1,2) [2025-03-24 15:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753210', 'tblTempUsageDetail_20' ) start [2025-03-24 15:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753210', 'tblTempUsageDetail_20' ) end [2025-03-24 15:55:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 15:55:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 15:55:26] Production.INFO: ==17795== Releasing lock... [2025-03-24 15:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 15:55:26] Production.INFO: 76.5 MB #Memory Used# [2025-03-24 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 12:56:05 [end_date_ymd] => 2025-03-24 15:56:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 12:56:05' and `end` < '2025-03-24 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-03-24 15:56:19] Production.INFO: count ==6520 [2025-03-24 15:56:22] Production.ERROR: pbx CDR StartTime 2025-03-24 12:56:05 - End Time 2025-03-24 15:56:05 [2025-03-24 15:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753215', 'tblTempUsageDetail_20' ) start [2025-03-24 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753215', 'tblTempUsageDetail_20' ) end [2025-03-24 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753215', 'tblTempVendorCDR_20' ) start [2025-03-24 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753215', 'tblTempVendorCDR_20' ) end [2025-03-24 15:56:22] Production.INFO: ProcessCDR(1,14753215,1,1,2) [2025-03-24 15:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753215', 'tblTempUsageDetail_20' ) start [2025-03-24 15:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753215', 'tblTempUsageDetail_20' ) end [2025-03-24 15:56:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 15:56:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 15:56:27] Production.INFO: ==17882== Releasing lock... [2025-03-24 15:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 15:56:27] Production.INFO: 76.75 MB #Memory Used# [2025-03-24 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 12:57:05 [end_date_ymd] => 2025-03-24 15:57:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 12:57:05' and `end` < '2025-03-24 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-03-24 15:57:19] Production.INFO: count ==6510 [2025-03-24 15:57:22] Production.ERROR: pbx CDR StartTime 2025-03-24 12:57:05 - End Time 2025-03-24 15:57:05 [2025-03-24 15:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 15:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753220', 'tblTempUsageDetail_20' ) start [2025-03-24 15:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753220', 'tblTempUsageDetail_20' ) end [2025-03-24 15:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753220', 'tblTempVendorCDR_20' ) start [2025-03-24 15:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753220', 'tblTempVendorCDR_20' ) end [2025-03-24 15:57:22] Production.INFO: ProcessCDR(1,14753220,1,1,2) [2025-03-24 15:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753220', 'tblTempUsageDetail_20' ) start [2025-03-24 15:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753220', 'tblTempUsageDetail_20' ) end [2025-03-24 15:57:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 15:57:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 15:57:28] Production.INFO: ==17967== Releasing lock... [2025-03-24 15:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 15:57:28] Production.INFO: 76.75 MB #Memory Used# [2025-03-24 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 12:58:05 [end_date_ymd] => 2025-03-24 15:58:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 12:58:05' and `end` < '2025-03-24 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-03-24 15:58:19] Production.INFO: count ==6522 [2025-03-24 15:58:22] Production.ERROR: pbx CDR StartTime 2025-03-24 12:58:05 - End Time 2025-03-24 15:58:05 [2025-03-24 15:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753225', 'tblTempUsageDetail_20' ) start [2025-03-24 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753225', 'tblTempUsageDetail_20' ) end [2025-03-24 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753225', 'tblTempVendorCDR_20' ) start [2025-03-24 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753225', 'tblTempVendorCDR_20' ) end [2025-03-24 15:58:22] Production.INFO: ProcessCDR(1,14753225,1,1,2) [2025-03-24 15:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753225', 'tblTempUsageDetail_20' ) start [2025-03-24 15:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753225', 'tblTempUsageDetail_20' ) end [2025-03-24 15:58:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 15:58:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 15:58:26] Production.INFO: ==18058== Releasing lock... [2025-03-24 15:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 15:58:26] Production.INFO: 76.75 MB #Memory Used# [2025-03-24 15:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 12:59:04 [end_date_ymd] => 2025-03-24 15:59:04 [RateCDR] => 1 ) [2025-03-24 15:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 12:59:04' and `end` < '2025-03-24 15:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 15:59:19] Production.INFO: count ==6541 [2025-03-24 15:59:21] Production.ERROR: pbx CDR StartTime 2025-03-24 12:59:04 - End Time 2025-03-24 15:59:04 [2025-03-24 15:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753230', 'tblTempUsageDetail_20' ) start [2025-03-24 15:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753230', 'tblTempUsageDetail_20' ) end [2025-03-24 15:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753230', 'tblTempVendorCDR_20' ) start [2025-03-24 15:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753230', 'tblTempVendorCDR_20' ) end [2025-03-24 15:59:22] Production.INFO: ProcessCDR(1,14753230,1,1,2) [2025-03-24 15:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 15:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 15:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753230', 'tblTempUsageDetail_20' ) start [2025-03-24 15:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753230', 'tblTempUsageDetail_20' ) end [2025-03-24 15:59:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 15:59:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 15:59:27] Production.INFO: ==18144== Releasing lock... [2025-03-24 15:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 15:59:27] Production.INFO: 77 MB #Memory Used# [2025-03-24 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 13:00:06 [end_date_ymd] => 2025-03-24 16:00:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 13:00:06' and `end` < '2025-03-24 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-03-24 16:00:20] Production.INFO: count ==6533 [2025-03-24 16:00:23] Production.ERROR: pbx CDR StartTime 2025-03-24 13:00:06 - End Time 2025-03-24 16:00:06 [2025-03-24 16:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753235', 'tblTempUsageDetail_20' ) start [2025-03-24 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753235', 'tblTempUsageDetail_20' ) end [2025-03-24 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753235', 'tblTempVendorCDR_20' ) start [2025-03-24 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753235', 'tblTempVendorCDR_20' ) end [2025-03-24 16:00:23] Production.INFO: ProcessCDR(1,14753235,1,1,2) [2025-03-24 16:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753235', 'tblTempUsageDetail_20' ) start [2025-03-24 16:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753235', 'tblTempUsageDetail_20' ) end [2025-03-24 16:00:29] Production.ERROR: pbx prc_insertCDR start [2025-03-24 16:00:29] Production.ERROR: pbx prc_insertCDR end [2025-03-24 16:00:29] Production.INFO: ==18241== Releasing lock... [2025-03-24 16:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 16:00:29] Production.INFO: 77 MB #Memory Used# [2025-03-24 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 13:01:05 [end_date_ymd] => 2025-03-24 16:01:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 13:01:05' and `end` < '2025-03-24 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-03-24 16:01:18] Production.INFO: count ==6529 [2025-03-24 16:01:21] Production.ERROR: pbx CDR StartTime 2025-03-24 13:01:05 - End Time 2025-03-24 16:01:05 [2025-03-24 16:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753241', 'tblTempUsageDetail_20' ) start [2025-03-24 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753241', 'tblTempUsageDetail_20' ) end [2025-03-24 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753241', 'tblTempVendorCDR_20' ) start [2025-03-24 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753241', 'tblTempVendorCDR_20' ) end [2025-03-24 16:01:22] Production.INFO: ProcessCDR(1,14753241,1,1,2) [2025-03-24 16:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753241', 'tblTempUsageDetail_20' ) start [2025-03-24 16:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753241', 'tblTempUsageDetail_20' ) end [2025-03-24 16:01:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 16:01:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 16:01:27] Production.INFO: ==18384== Releasing lock... [2025-03-24 16:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 16:01:27] Production.INFO: 77 MB #Memory Used# [2025-03-24 16:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 13:02:06 [end_date_ymd] => 2025-03-24 16:02:06 [RateCDR] => 1 ) [2025-03-24 16: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-03-24 13:02:06' and `end` < '2025-03-24 16: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-03-24 16:02:20] Production.INFO: count ==6608 [2025-03-24 16:02:23] Production.ERROR: pbx CDR StartTime 2025-03-24 13:02:06 - End Time 2025-03-24 16:02:06 [2025-03-24 16:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 16:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753246', 'tblTempUsageDetail_20' ) start [2025-03-24 16:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753246', 'tblTempUsageDetail_20' ) end [2025-03-24 16:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753246', 'tblTempVendorCDR_20' ) start [2025-03-24 16:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753246', 'tblTempVendorCDR_20' ) end [2025-03-24 16:02:23] Production.INFO: ProcessCDR(1,14753246,1,1,2) [2025-03-24 16:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753246', 'tblTempUsageDetail_20' ) start [2025-03-24 16:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753246', 'tblTempUsageDetail_20' ) end [2025-03-24 16:02:29] Production.ERROR: pbx prc_insertCDR start [2025-03-24 16:02:29] Production.ERROR: pbx prc_insertCDR end [2025-03-24 16:02:29] Production.INFO: ==18471== Releasing lock... [2025-03-24 16:02:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 16:02:29] Production.INFO: 77.5 MB #Memory Used# [2025-03-24 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 13:03:05 [end_date_ymd] => 2025-03-24 16:03:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 13:03:05' and `end` < '2025-03-24 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-03-24 16:03:18] Production.INFO: count ==6601 [2025-03-24 16:03:21] Production.ERROR: pbx CDR StartTime 2025-03-24 13:03:05 - End Time 2025-03-24 16:03:05 [2025-03-24 16:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753251', 'tblTempUsageDetail_20' ) start [2025-03-24 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753251', 'tblTempUsageDetail_20' ) end [2025-03-24 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753251', 'tblTempVendorCDR_20' ) start [2025-03-24 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753251', 'tblTempVendorCDR_20' ) end [2025-03-24 16:03:21] Production.INFO: ProcessCDR(1,14753251,1,1,2) [2025-03-24 16:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753251', 'tblTempUsageDetail_20' ) start [2025-03-24 16:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753251', 'tblTempUsageDetail_20' ) end [2025-03-24 16:03:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 16:03:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 16:03:26] Production.INFO: ==18558== Releasing lock... [2025-03-24 16:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 16:03:26] Production.INFO: 77.5 MB #Memory Used# [2025-03-24 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 13:04:05 [end_date_ymd] => 2025-03-24 16:04:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 13:04:05' and `end` < '2025-03-24 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-03-24 16:04:19] Production.INFO: count ==6612 [2025-03-24 16:04:23] Production.ERROR: pbx CDR StartTime 2025-03-24 13:04:05 - End Time 2025-03-24 16:04:05 [2025-03-24 16:04:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 16:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753256', 'tblTempUsageDetail_20' ) start [2025-03-24 16:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753256', 'tblTempUsageDetail_20' ) end [2025-03-24 16:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753256', 'tblTempVendorCDR_20' ) start [2025-03-24 16:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753256', 'tblTempVendorCDR_20' ) end [2025-03-24 16:04:23] Production.INFO: ProcessCDR(1,14753256,1,1,2) [2025-03-24 16:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:04:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:04:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753256', 'tblTempUsageDetail_20' ) start [2025-03-24 16:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753256', 'tblTempUsageDetail_20' ) end [2025-03-24 16:04:29] Production.ERROR: pbx prc_insertCDR start [2025-03-24 16:04:29] Production.ERROR: pbx prc_insertCDR end [2025-03-24 16:04:29] Production.INFO: ==18645== Releasing lock... [2025-03-24 16:04:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 16:04:29] Production.INFO: 77.5 MB #Memory Used# [2025-03-24 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 13:05:05 [end_date_ymd] => 2025-03-24 16:05:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 13:05:05' and `end` < '2025-03-24 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-03-24 16:05:19] Production.INFO: count ==6611 [2025-03-24 16:05:22] Production.ERROR: pbx CDR StartTime 2025-03-24 13:05:05 - End Time 2025-03-24 16:05:05 [2025-03-24 16:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753261', 'tblTempUsageDetail_20' ) start [2025-03-24 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753261', 'tblTempUsageDetail_20' ) end [2025-03-24 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753261', 'tblTempVendorCDR_20' ) start [2025-03-24 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753261', 'tblTempVendorCDR_20' ) end [2025-03-24 16:05:22] Production.INFO: ProcessCDR(1,14753261,1,1,2) [2025-03-24 16:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753261', 'tblTempUsageDetail_20' ) start [2025-03-24 16:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753261', 'tblTempUsageDetail_20' ) end [2025-03-24 16:05:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 16:05:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 16:05:27] Production.INFO: ==18745== Releasing lock... [2025-03-24 16:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 16:05:27] Production.INFO: 77.5 MB #Memory Used# [2025-03-24 16:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 13:06:06 [end_date_ymd] => 2025-03-24 16:06:06 [RateCDR] => 1 ) [2025-03-24 16: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-03-24 13:06:06' and `end` < '2025-03-24 16: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-03-24 16:06:19] Production.INFO: count ==6603 [2025-03-24 16:06:23] Production.ERROR: pbx CDR StartTime 2025-03-24 13:06:06 - End Time 2025-03-24 16:06:06 [2025-03-24 16:06:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 16:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753266', 'tblTempUsageDetail_20' ) start [2025-03-24 16:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753266', 'tblTempUsageDetail_20' ) end [2025-03-24 16:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753266', 'tblTempVendorCDR_20' ) start [2025-03-24 16:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753266', 'tblTempVendorCDR_20' ) end [2025-03-24 16:06:23] Production.INFO: ProcessCDR(1,14753266,1,1,2) [2025-03-24 16:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753266', 'tblTempUsageDetail_20' ) start [2025-03-24 16:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753266', 'tblTempUsageDetail_20' ) end [2025-03-24 16:06:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 16:06:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 16:06:28] Production.INFO: ==18837== Releasing lock... [2025-03-24 16:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 16:06:28] Production.INFO: 77.5 MB #Memory Used# [2025-03-24 16:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 13:07:05 [end_date_ymd] => 2025-03-24 16:07:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 13:07:05' and `end` < '2025-03-24 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-03-24 16:07:19] Production.INFO: count ==6612 [2025-03-24 16:07:22] Production.ERROR: pbx CDR StartTime 2025-03-24 13:07:05 - End Time 2025-03-24 16:07:05 [2025-03-24 16:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753271', 'tblTempUsageDetail_20' ) start [2025-03-24 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753271', 'tblTempUsageDetail_20' ) end [2025-03-24 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753271', 'tblTempVendorCDR_20' ) start [2025-03-24 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753271', 'tblTempVendorCDR_20' ) end [2025-03-24 16:07:22] Production.INFO: ProcessCDR(1,14753271,1,1,2) [2025-03-24 16:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753271', 'tblTempUsageDetail_20' ) start [2025-03-24 16:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753271', 'tblTempUsageDetail_20' ) end [2025-03-24 16:07:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 16:07:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 16:07:27] Production.INFO: ==18922== Releasing lock... [2025-03-24 16:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 16:07:27] Production.INFO: 77.5 MB #Memory Used# [2025-03-24 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 13:08:05 [end_date_ymd] => 2025-03-24 16:08:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 13:08:05' and `end` < '2025-03-24 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-03-24 16:08:19] Production.INFO: count ==6661 [2025-03-24 16:08:22] Production.ERROR: pbx CDR StartTime 2025-03-24 13:08:05 - End Time 2025-03-24 16:08:05 [2025-03-24 16:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753276', 'tblTempUsageDetail_20' ) start [2025-03-24 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753276', 'tblTempUsageDetail_20' ) end [2025-03-24 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753276', 'tblTempVendorCDR_20' ) start [2025-03-24 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753276', 'tblTempVendorCDR_20' ) end [2025-03-24 16:08:22] Production.INFO: ProcessCDR(1,14753276,1,1,2) [2025-03-24 16:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753276', 'tblTempUsageDetail_20' ) start [2025-03-24 16:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753276', 'tblTempUsageDetail_20' ) end [2025-03-24 16:08:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 16:08:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 16:08:27] Production.INFO: ==19010== Releasing lock... [2025-03-24 16:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 16:08:27] Production.INFO: 77.75 MB #Memory Used# [2025-03-24 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 13:09:05 [end_date_ymd] => 2025-03-24 16:09:05 [RateCDR] => 1 ) [2025-03-24 16:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 13:09:05' and `end` < '2025-03-24 16:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 16:09:19] Production.INFO: count ==6644 [2025-03-24 16:09:21] Production.ERROR: pbx CDR StartTime 2025-03-24 13:09:05 - End Time 2025-03-24 16:09:05 [2025-03-24 16:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753281', 'tblTempUsageDetail_20' ) start [2025-03-24 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753281', 'tblTempUsageDetail_20' ) end [2025-03-24 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753281', 'tblTempVendorCDR_20' ) start [2025-03-24 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753281', 'tblTempVendorCDR_20' ) end [2025-03-24 16:09:22] Production.INFO: ProcessCDR(1,14753281,1,1,2) [2025-03-24 16:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753281', 'tblTempUsageDetail_20' ) start [2025-03-24 16:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753281', 'tblTempUsageDetail_20' ) end [2025-03-24 16:09:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 16:09:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 16:09:27] Production.INFO: ==19105== Releasing lock... [2025-03-24 16:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 16:09:27] Production.INFO: 77.75 MB #Memory Used# [2025-03-24 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 13:10:06 [end_date_ymd] => 2025-03-24 16:10:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 13:10:06' and `end` < '2025-03-24 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-03-24 16:10:20] Production.INFO: count ==6648 [2025-03-24 16:10:23] Production.ERROR: pbx CDR StartTime 2025-03-24 13:10:06 - End Time 2025-03-24 16:10:06 [2025-03-24 16:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753287', 'tblTempUsageDetail_20' ) start [2025-03-24 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753287', 'tblTempUsageDetail_20' ) end [2025-03-24 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753287', 'tblTempVendorCDR_20' ) start [2025-03-24 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753287', 'tblTempVendorCDR_20' ) end [2025-03-24 16:10:23] Production.INFO: ProcessCDR(1,14753287,1,1,2) [2025-03-24 16:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753287', 'tblTempUsageDetail_20' ) start [2025-03-24 16:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753287', 'tblTempUsageDetail_20' ) end [2025-03-24 16:10:29] Production.ERROR: pbx prc_insertCDR start [2025-03-24 16:10:29] Production.ERROR: pbx prc_insertCDR end [2025-03-24 16:10:29] Production.INFO: ==19196== Releasing lock... [2025-03-24 16:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 16:10:29] Production.INFO: 77.75 MB #Memory Used# [2025-03-24 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 13:11:05 [end_date_ymd] => 2025-03-24 16:11:05 [RateCDR] => 1 ) [2025-03-24 16:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 13:11:05' and `end` < '2025-03-24 16:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 16:11:18] Production.INFO: count ==6684 [2025-03-24 16:11:21] Production.ERROR: pbx CDR StartTime 2025-03-24 13:11:05 - End Time 2025-03-24 16:11:05 [2025-03-24 16:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753292', 'tblTempUsageDetail_20' ) start [2025-03-24 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753292', 'tblTempUsageDetail_20' ) end [2025-03-24 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753292', 'tblTempVendorCDR_20' ) start [2025-03-24 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753292', 'tblTempVendorCDR_20' ) end [2025-03-24 16:11:21] Production.INFO: ProcessCDR(1,14753292,1,1,2) [2025-03-24 16:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753292', 'tblTempUsageDetail_20' ) start [2025-03-24 16:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753292', 'tblTempUsageDetail_20' ) end [2025-03-24 16:11:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 16:11:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 16:11:27] Production.INFO: ==19284== Releasing lock... [2025-03-24 16:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 16:11:27] Production.INFO: 78 MB #Memory Used# [2025-03-24 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 13:12:05 [end_date_ymd] => 2025-03-24 16:12:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 13:12:05' and `end` < '2025-03-24 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-03-24 16:12:19] Production.INFO: count ==6728 [2025-03-24 16:12:22] Production.ERROR: pbx CDR StartTime 2025-03-24 13:12:05 - End Time 2025-03-24 16:12:05 [2025-03-24 16:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753297', 'tblTempUsageDetail_20' ) start [2025-03-24 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753297', 'tblTempUsageDetail_20' ) end [2025-03-24 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753297', 'tblTempVendorCDR_20' ) start [2025-03-24 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753297', 'tblTempVendorCDR_20' ) end [2025-03-24 16:12:22] Production.INFO: ProcessCDR(1,14753297,1,1,2) [2025-03-24 16:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753297', 'tblTempUsageDetail_20' ) start [2025-03-24 16:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753297', 'tblTempUsageDetail_20' ) end [2025-03-24 16:12:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 16:12:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 16:12:27] Production.INFO: ==19377== Releasing lock... [2025-03-24 16:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 16:12:27] Production.INFO: 78.25 MB #Memory Used# [2025-03-24 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 13:13:05 [end_date_ymd] => 2025-03-24 16:13:05 [RateCDR] => 1 ) [2025-03-24 16:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 13:13:05' and `end` < '2025-03-24 16:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 16:13:19] Production.INFO: count ==6740 [2025-03-24 16:13:22] Production.ERROR: pbx CDR StartTime 2025-03-24 13:13:05 - End Time 2025-03-24 16:13:05 [2025-03-24 16:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753302', 'tblTempUsageDetail_20' ) start [2025-03-24 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753302', 'tblTempUsageDetail_20' ) end [2025-03-24 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753302', 'tblTempVendorCDR_20' ) start [2025-03-24 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753302', 'tblTempVendorCDR_20' ) end [2025-03-24 16:13:22] Production.INFO: ProcessCDR(1,14753302,1,1,2) [2025-03-24 16:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753302', 'tblTempUsageDetail_20' ) start [2025-03-24 16:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753302', 'tblTempUsageDetail_20' ) end [2025-03-24 16:13:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 16:13:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 16:13:28] Production.INFO: ==19468== Releasing lock... [2025-03-24 16:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 16:13:28] Production.INFO: 78.5 MB #Memory Used# [2025-03-24 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 13:14:05 [end_date_ymd] => 2025-03-24 16:14:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 13:14:05' and `end` < '2025-03-24 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-03-24 16:14:19] Production.INFO: count ==6762 [2025-03-24 16:14:22] Production.ERROR: pbx CDR StartTime 2025-03-24 13:14:05 - End Time 2025-03-24 16:14:05 [2025-03-24 16:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753307', 'tblTempUsageDetail_20' ) start [2025-03-24 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753307', 'tblTempUsageDetail_20' ) end [2025-03-24 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753307', 'tblTempVendorCDR_20' ) start [2025-03-24 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753307', 'tblTempVendorCDR_20' ) end [2025-03-24 16:14:22] Production.INFO: ProcessCDR(1,14753307,1,1,2) [2025-03-24 16:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753307', 'tblTempUsageDetail_20' ) start [2025-03-24 16:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753307', 'tblTempUsageDetail_20' ) end [2025-03-24 16:14:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 16:14:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 16:14:28] Production.INFO: ==19568== Releasing lock... [2025-03-24 16:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 16:14:28] Production.INFO: 78.75 MB #Memory Used# [2025-03-24 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 13:15:05 [end_date_ymd] => 2025-03-24 16:15:05 [RateCDR] => 1 ) [2025-03-24 16:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 13:15:05' and `end` < '2025-03-24 16:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 16:15:19] Production.INFO: count ==6780 [2025-03-24 16:15:22] Production.ERROR: pbx CDR StartTime 2025-03-24 13:15:05 - End Time 2025-03-24 16:15:05 [2025-03-24 16:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753312', 'tblTempUsageDetail_20' ) start [2025-03-24 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753312', 'tblTempUsageDetail_20' ) end [2025-03-24 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753312', 'tblTempVendorCDR_20' ) start [2025-03-24 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753312', 'tblTempVendorCDR_20' ) end [2025-03-24 16:15:22] Production.INFO: ProcessCDR(1,14753312,1,1,2) [2025-03-24 16:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753312', 'tblTempUsageDetail_20' ) start [2025-03-24 16:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753312', 'tblTempUsageDetail_20' ) end [2025-03-24 16:15:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 16:15:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 16:15:27] Production.INFO: ==19672== Releasing lock... [2025-03-24 16:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 16:15:27] Production.INFO: 78.75 MB #Memory Used# [2025-03-24 16:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 13:16:06 [end_date_ymd] => 2025-03-24 16:16:06 [RateCDR] => 1 ) [2025-03-24 16:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 13:16:06' and `end` < '2025-03-24 16:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 16:16:19] Production.INFO: count ==6787 [2025-03-24 16:16:22] Production.ERROR: pbx CDR StartTime 2025-03-24 13:16:06 - End Time 2025-03-24 16:16:06 [2025-03-24 16:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753317', 'tblTempUsageDetail_20' ) start [2025-03-24 16:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753317', 'tblTempUsageDetail_20' ) end [2025-03-24 16:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753317', 'tblTempVendorCDR_20' ) start [2025-03-24 16:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753317', 'tblTempVendorCDR_20' ) end [2025-03-24 16:16:23] Production.INFO: ProcessCDR(1,14753317,1,1,2) [2025-03-24 16:16:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753317', 'tblTempUsageDetail_20' ) start [2025-03-24 16:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753317', 'tblTempUsageDetail_20' ) end [2025-03-24 16:16:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 16:16:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 16:16:28] Production.INFO: ==19770== Releasing lock... [2025-03-24 16:16:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 16:16:28] Production.INFO: 78.75 MB #Memory Used# [2025-03-24 16:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 13:17:06 [end_date_ymd] => 2025-03-24 16:17:06 [RateCDR] => 1 ) [2025-03-24 16: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-03-24 13:17:06' and `end` < '2025-03-24 16: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-03-24 16:17:19] Production.INFO: count ==6781 [2025-03-24 16:17:22] Production.ERROR: pbx CDR StartTime 2025-03-24 13:17:06 - End Time 2025-03-24 16:17:06 [2025-03-24 16:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 16:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753322', 'tblTempUsageDetail_20' ) start [2025-03-24 16:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753322', 'tblTempUsageDetail_20' ) end [2025-03-24 16:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753322', 'tblTempVendorCDR_20' ) start [2025-03-24 16:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753322', 'tblTempVendorCDR_20' ) end [2025-03-24 16:17:23] Production.INFO: ProcessCDR(1,14753322,1,1,2) [2025-03-24 16:17:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:17:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753322', 'tblTempUsageDetail_20' ) start [2025-03-24 16:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753322', 'tblTempUsageDetail_20' ) end [2025-03-24 16:17:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 16:17:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 16:17:28] Production.INFO: ==19915== Releasing lock... [2025-03-24 16:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 16:17:28] Production.INFO: 78.75 MB #Memory Used# [2025-03-24 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 13:18:05 [end_date_ymd] => 2025-03-24 16:18:05 [RateCDR] => 1 ) [2025-03-24 16:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 13:18:05' and `end` < '2025-03-24 16:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 16:18:19] Production.INFO: count ==6833 [2025-03-24 16:18:22] Production.ERROR: pbx CDR StartTime 2025-03-24 13:18:05 - End Time 2025-03-24 16:18:05 [2025-03-24 16:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753327', 'tblTempUsageDetail_20' ) start [2025-03-24 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753327', 'tblTempUsageDetail_20' ) end [2025-03-24 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753327', 'tblTempVendorCDR_20' ) start [2025-03-24 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753327', 'tblTempVendorCDR_20' ) end [2025-03-24 16:18:22] Production.INFO: ProcessCDR(1,14753327,1,1,2) [2025-03-24 16:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753327', 'tblTempUsageDetail_20' ) start [2025-03-24 16:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753327', 'tblTempUsageDetail_20' ) end [2025-03-24 16:18:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 16:18:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 16:18:27] Production.INFO: ==20016== Releasing lock... [2025-03-24 16:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 16:18:27] Production.INFO: 79.25 MB #Memory Used# [2025-03-24 16:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 13:19:06 [end_date_ymd] => 2025-03-24 16:19:06 [RateCDR] => 1 ) [2025-03-24 16: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-03-24 13:19:06' and `end` < '2025-03-24 16: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-03-24 16:19:19] Production.INFO: count ==6829 [2025-03-24 16:19:23] Production.ERROR: pbx CDR StartTime 2025-03-24 13:19:06 - End Time 2025-03-24 16:19:06 [2025-03-24 16:19:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 16:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753332', 'tblTempUsageDetail_20' ) start [2025-03-24 16:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753332', 'tblTempUsageDetail_20' ) end [2025-03-24 16:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753332', 'tblTempVendorCDR_20' ) start [2025-03-24 16:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753332', 'tblTempVendorCDR_20' ) end [2025-03-24 16:19:23] Production.INFO: ProcessCDR(1,14753332,1,1,2) [2025-03-24 16:19:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753332', 'tblTempUsageDetail_20' ) start [2025-03-24 16:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753332', 'tblTempUsageDetail_20' ) end [2025-03-24 16:19:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 16:19:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 16:19:28] Production.INFO: ==20122== Releasing lock... [2025-03-24 16:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 16:19:28] Production.INFO: 79.25 MB #Memory Used# [2025-03-24 16:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 13:20:05 [end_date_ymd] => 2025-03-24 16:20:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 13:20:05' and `end` < '2025-03-24 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-03-24 16:20:20] Production.INFO: count ==6850 [2025-03-24 16:20:23] Production.ERROR: pbx CDR StartTime 2025-03-24 13:20:05 - End Time 2025-03-24 16:20:05 [2025-03-24 16:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 16:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753338', 'tblTempUsageDetail_20' ) start [2025-03-24 16:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753338', 'tblTempUsageDetail_20' ) end [2025-03-24 16:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753338', 'tblTempVendorCDR_20' ) start [2025-03-24 16:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753338', 'tblTempVendorCDR_20' ) end [2025-03-24 16:20:23] Production.INFO: ProcessCDR(1,14753338,1,1,2) [2025-03-24 16:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753338', 'tblTempUsageDetail_20' ) start [2025-03-24 16:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753338', 'tblTempUsageDetail_20' ) end [2025-03-24 16:20:29] Production.ERROR: pbx prc_insertCDR start [2025-03-24 16:20:29] Production.ERROR: pbx prc_insertCDR end [2025-03-24 16:20:29] Production.INFO: ==20238== Releasing lock... [2025-03-24 16:20:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 16:20:29] Production.INFO: 79.25 MB #Memory Used# [2025-03-24 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 13:21:05 [end_date_ymd] => 2025-03-24 16:21:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 13:21:05' and `end` < '2025-03-24 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-03-24 16:21:19] Production.INFO: count ==6898 [2025-03-24 16:21:22] Production.ERROR: pbx CDR StartTime 2025-03-24 13:21:05 - End Time 2025-03-24 16:21:05 [2025-03-24 16:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753343', 'tblTempUsageDetail_20' ) start [2025-03-24 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753343', 'tblTempUsageDetail_20' ) end [2025-03-24 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753343', 'tblTempVendorCDR_20' ) start [2025-03-24 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753343', 'tblTempVendorCDR_20' ) end [2025-03-24 16:21:22] Production.INFO: ProcessCDR(1,14753343,1,1,2) [2025-03-24 16:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753343', 'tblTempUsageDetail_20' ) start [2025-03-24 16:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753343', 'tblTempUsageDetail_20' ) end [2025-03-24 16:21:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 16:21:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 16:21:27] Production.INFO: ==20343== Releasing lock... [2025-03-24 16:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 16:21:27] Production.INFO: 79.75 MB #Memory Used# [2025-03-24 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 13:22:05 [end_date_ymd] => 2025-03-24 16:22:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 13:22:05' and `end` < '2025-03-24 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-03-24 16:22:19] Production.INFO: count ==6906 [2025-03-24 16:22:22] Production.ERROR: pbx CDR StartTime 2025-03-24 13:22:05 - End Time 2025-03-24 16:22:05 [2025-03-24 16:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753348', 'tblTempUsageDetail_20' ) start [2025-03-24 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753348', 'tblTempUsageDetail_20' ) end [2025-03-24 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753348', 'tblTempVendorCDR_20' ) start [2025-03-24 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753348', 'tblTempVendorCDR_20' ) end [2025-03-24 16:22:22] Production.INFO: ProcessCDR(1,14753348,1,1,2) [2025-03-24 16:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753348', 'tblTempUsageDetail_20' ) start [2025-03-24 16:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753348', 'tblTempUsageDetail_20' ) end [2025-03-24 16:22:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 16:22:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 16:22:28] Production.INFO: ==20442== Releasing lock... [2025-03-24 16:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 16:22:28] Production.INFO: 79.75 MB #Memory Used# [2025-03-24 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 13:23:05 [end_date_ymd] => 2025-03-24 16:23:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 13:23:05' and `end` < '2025-03-24 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-03-24 16:23:19] Production.INFO: count ==6907 [2025-03-24 16:23:22] Production.ERROR: pbx CDR StartTime 2025-03-24 13:23:05 - End Time 2025-03-24 16:23:05 [2025-03-24 16:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753353', 'tblTempUsageDetail_20' ) start [2025-03-24 16:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753353', 'tblTempUsageDetail_20' ) end [2025-03-24 16:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753353', 'tblTempVendorCDR_20' ) start [2025-03-24 16:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753353', 'tblTempVendorCDR_20' ) end [2025-03-24 16:23:23] Production.INFO: ProcessCDR(1,14753353,1,1,2) [2025-03-24 16:23:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753353', 'tblTempUsageDetail_20' ) start [2025-03-24 16:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753353', 'tblTempUsageDetail_20' ) end [2025-03-24 16:23:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 16:23:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 16:23:28] Production.INFO: ==20546== Releasing lock... [2025-03-24 16:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 16:23:28] Production.INFO: 79.75 MB #Memory Used# [2025-03-24 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 13:24:05 [end_date_ymd] => 2025-03-24 16:24:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 13:24:05' and `end` < '2025-03-24 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-03-24 16:24:19] Production.INFO: count ==6991 [2025-03-24 16:24:22] Production.ERROR: pbx CDR StartTime 2025-03-24 13:24:05 - End Time 2025-03-24 16:24:05 [2025-03-24 16:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753358', 'tblTempUsageDetail_20' ) start [2025-03-24 16:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753358', 'tblTempUsageDetail_20' ) end [2025-03-24 16:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753358', 'tblTempVendorCDR_20' ) start [2025-03-24 16:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753358', 'tblTempVendorCDR_20' ) end [2025-03-24 16:24:23] Production.INFO: ProcessCDR(1,14753358,1,1,2) [2025-03-24 16:24:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:24:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753358', 'tblTempUsageDetail_20' ) start [2025-03-24 16:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753358', 'tblTempUsageDetail_20' ) end [2025-03-24 16:24:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 16:24:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 16:24:28] Production.INFO: ==20647== Releasing lock... [2025-03-24 16:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 16:24:28] Production.INFO: 80.25 MB #Memory Used# [2025-03-24 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 13:25:05 [end_date_ymd] => 2025-03-24 16:25:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 13:25:05' and `end` < '2025-03-24 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-03-24 16:25:19] Production.INFO: count ==7000 [2025-03-24 16:25:22] Production.ERROR: pbx CDR StartTime 2025-03-24 13:25:05 - End Time 2025-03-24 16:25:05 [2025-03-24 16:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753363', 'tblTempUsageDetail_20' ) start [2025-03-24 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753363', 'tblTempUsageDetail_20' ) end [2025-03-24 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753363', 'tblTempVendorCDR_20' ) start [2025-03-24 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753363', 'tblTempVendorCDR_20' ) end [2025-03-24 16:25:22] Production.INFO: ProcessCDR(1,14753363,1,1,2) [2025-03-24 16:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753363', 'tblTempUsageDetail_20' ) start [2025-03-24 16:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753363', 'tblTempUsageDetail_20' ) end [2025-03-24 16:25:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 16:25:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 16:25:27] Production.INFO: ==20749== Releasing lock... [2025-03-24 16:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 16:25:27] Production.INFO: 80.5 MB #Memory Used# [2025-03-24 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 13:26:05 [end_date_ymd] => 2025-03-24 16:26:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 13:26:05' and `end` < '2025-03-24 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-03-24 16:26:19] Production.INFO: count ==7019 [2025-03-24 16:26:22] Production.ERROR: pbx CDR StartTime 2025-03-24 13:26:05 - End Time 2025-03-24 16:26:05 [2025-03-24 16:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753368', 'tblTempUsageDetail_20' ) start [2025-03-24 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753368', 'tblTempUsageDetail_20' ) end [2025-03-24 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753368', 'tblTempVendorCDR_20' ) start [2025-03-24 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753368', 'tblTempVendorCDR_20' ) end [2025-03-24 16:26:22] Production.INFO: ProcessCDR(1,14753368,1,1,2) [2025-03-24 16:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753368', 'tblTempUsageDetail_20' ) start [2025-03-24 16:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753368', 'tblTempUsageDetail_20' ) end [2025-03-24 16:26:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 16:26:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 16:26:28] Production.INFO: ==20859== Releasing lock... [2025-03-24 16:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 16:26:28] Production.INFO: 80.5 MB #Memory Used# [2025-03-24 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 13:27:05 [end_date_ymd] => 2025-03-24 16:27:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 13:27:05' and `end` < '2025-03-24 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-03-24 16:27:19] Production.INFO: count ==7016 [2025-03-24 16:27:23] Production.ERROR: pbx CDR StartTime 2025-03-24 13:27:05 - End Time 2025-03-24 16:27:05 [2025-03-24 16:27:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 16:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753373', 'tblTempUsageDetail_20' ) start [2025-03-24 16:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753373', 'tblTempUsageDetail_20' ) end [2025-03-24 16:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753373', 'tblTempVendorCDR_20' ) start [2025-03-24 16:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753373', 'tblTempVendorCDR_20' ) end [2025-03-24 16:27:23] Production.INFO: ProcessCDR(1,14753373,1,1,2) [2025-03-24 16:27:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:27:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753373', 'tblTempUsageDetail_20' ) start [2025-03-24 16:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753373', 'tblTempUsageDetail_20' ) end [2025-03-24 16:27:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 16:27:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 16:27:28] Production.INFO: ==20959== Releasing lock... [2025-03-24 16:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 16:27:28] Production.INFO: 80.5 MB #Memory Used# [2025-03-24 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 13:28:05 [end_date_ymd] => 2025-03-24 16:28:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 13:28:05' and `end` < '2025-03-24 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-03-24 16:28:19] Production.INFO: count ==6981 [2025-03-24 16:28:22] Production.ERROR: pbx CDR StartTime 2025-03-24 13:28:05 - End Time 2025-03-24 16:28:05 [2025-03-24 16:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753378', 'tblTempUsageDetail_20' ) start [2025-03-24 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753378', 'tblTempUsageDetail_20' ) end [2025-03-24 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753378', 'tblTempVendorCDR_20' ) start [2025-03-24 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753378', 'tblTempVendorCDR_20' ) end [2025-03-24 16:28:22] Production.INFO: ProcessCDR(1,14753378,1,1,2) [2025-03-24 16:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:28:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753378', 'tblTempUsageDetail_20' ) start [2025-03-24 16:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753378', 'tblTempUsageDetail_20' ) end [2025-03-24 16:28:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 16:28:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 16:28:28] Production.INFO: ==21060== Releasing lock... [2025-03-24 16:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 16:28:28] Production.INFO: 80.25 MB #Memory Used# [2025-03-24 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 13:29:05 [end_date_ymd] => 2025-03-24 16:29:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 13:29:05' and `end` < '2025-03-24 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-03-24 16:29:19] Production.INFO: count ==6997 [2025-03-24 16:29:22] Production.ERROR: pbx CDR StartTime 2025-03-24 13:29:05 - End Time 2025-03-24 16:29:05 [2025-03-24 16:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 16:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753383', 'tblTempUsageDetail_20' ) start [2025-03-24 16:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753383', 'tblTempUsageDetail_20' ) end [2025-03-24 16:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753383', 'tblTempVendorCDR_20' ) start [2025-03-24 16:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753383', 'tblTempVendorCDR_20' ) end [2025-03-24 16:29:22] Production.INFO: ProcessCDR(1,14753383,1,1,2) [2025-03-24 16:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753383', 'tblTempUsageDetail_20' ) start [2025-03-24 16:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753383', 'tblTempUsageDetail_20' ) end [2025-03-24 16:29:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 16:29:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 16:29:27] Production.INFO: ==21161== Releasing lock... [2025-03-24 16:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 16:29:27] Production.INFO: 80.5 MB #Memory Used# [2025-03-24 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 13:30:06 [end_date_ymd] => 2025-03-24 16:30:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 13:30:06' and `end` < '2025-03-24 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-03-24 16:30:20] Production.INFO: count ==7003 [2025-03-24 16:30:23] Production.ERROR: pbx CDR StartTime 2025-03-24 13:30:06 - End Time 2025-03-24 16:30:06 [2025-03-24 16:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 16:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753389', 'tblTempUsageDetail_20' ) start [2025-03-24 16:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753389', 'tblTempUsageDetail_20' ) end [2025-03-24 16:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753389', 'tblTempVendorCDR_20' ) start [2025-03-24 16:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753389', 'tblTempVendorCDR_20' ) end [2025-03-24 16:30:23] Production.INFO: ProcessCDR(1,14753389,1,1,2) [2025-03-24 16:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753389', 'tblTempUsageDetail_20' ) start [2025-03-24 16:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753389', 'tblTempUsageDetail_20' ) end [2025-03-24 16:30:29] Production.ERROR: pbx prc_insertCDR start [2025-03-24 16:30:29] Production.ERROR: pbx prc_insertCDR end [2025-03-24 16:30:29] Production.INFO: ==21266== Releasing lock... [2025-03-24 16:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 16:30:29] Production.INFO: 80.5 MB #Memory Used# [2025-03-24 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 13:31:05 [end_date_ymd] => 2025-03-24 16:31:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 13:31:05' and `end` < '2025-03-24 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-03-24 16:31:19] Production.INFO: count ==7001 [2025-03-24 16:31:22] Production.ERROR: pbx CDR StartTime 2025-03-24 13:31:05 - End Time 2025-03-24 16:31:05 [2025-03-24 16:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753394', 'tblTempUsageDetail_20' ) start [2025-03-24 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753394', 'tblTempUsageDetail_20' ) end [2025-03-24 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753394', 'tblTempVendorCDR_20' ) start [2025-03-24 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753394', 'tblTempVendorCDR_20' ) end [2025-03-24 16:31:22] Production.INFO: ProcessCDR(1,14753394,1,1,2) [2025-03-24 16:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753394', 'tblTempUsageDetail_20' ) start [2025-03-24 16:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753394', 'tblTempUsageDetail_20' ) end [2025-03-24 16:31:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 16:31:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 16:31:27] Production.INFO: ==21374== Releasing lock... [2025-03-24 16:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 16:31:27] Production.INFO: 80.5 MB #Memory Used# [2025-03-24 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 13:32:05 [end_date_ymd] => 2025-03-24 16:32:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 13:32:05' and `end` < '2025-03-24 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-03-24 16:32:19] Production.INFO: count ==7010 [2025-03-24 16:32:22] Production.ERROR: pbx CDR StartTime 2025-03-24 13:32:05 - End Time 2025-03-24 16:32:05 [2025-03-24 16:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753399', 'tblTempUsageDetail_20' ) start [2025-03-24 16:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753399', 'tblTempUsageDetail_20' ) end [2025-03-24 16:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753399', 'tblTempVendorCDR_20' ) start [2025-03-24 16:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753399', 'tblTempVendorCDR_20' ) end [2025-03-24 16:32:23] Production.INFO: ProcessCDR(1,14753399,1,1,2) [2025-03-24 16:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753399', 'tblTempUsageDetail_20' ) start [2025-03-24 16:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753399', 'tblTempUsageDetail_20' ) end [2025-03-24 16:32:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 16:32:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 16:32:28] Production.INFO: ==21518== Releasing lock... [2025-03-24 16:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 16:32:28] Production.INFO: 80.5 MB #Memory Used# [2025-03-24 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 13:33:05 [end_date_ymd] => 2025-03-24 16:33:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 13:33:05' and `end` < '2025-03-24 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-03-24 16:33:19] Production.INFO: count ==7004 [2025-03-24 16:33:22] Production.ERROR: pbx CDR StartTime 2025-03-24 13:33:05 - End Time 2025-03-24 16:33:05 [2025-03-24 16:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753404', 'tblTempUsageDetail_20' ) start [2025-03-24 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753404', 'tblTempUsageDetail_20' ) end [2025-03-24 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753404', 'tblTempVendorCDR_20' ) start [2025-03-24 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753404', 'tblTempVendorCDR_20' ) end [2025-03-24 16:33:22] Production.INFO: ProcessCDR(1,14753404,1,1,2) [2025-03-24 16:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753404', 'tblTempUsageDetail_20' ) start [2025-03-24 16:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753404', 'tblTempUsageDetail_20' ) end [2025-03-24 16:33:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 16:33:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 16:33:27] Production.INFO: ==21620== Releasing lock... [2025-03-24 16:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 16:33:27] Production.INFO: 80.5 MB #Memory Used# [2025-03-24 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 13:34:05 [end_date_ymd] => 2025-03-24 16:34:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 13:34:05' and `end` < '2025-03-24 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-03-24 16:34:20] Production.INFO: count ==7001 [2025-03-24 16:34:23] Production.ERROR: pbx CDR StartTime 2025-03-24 13:34:05 - End Time 2025-03-24 16:34:05 [2025-03-24 16:34:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 16:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753409', 'tblTempUsageDetail_20' ) start [2025-03-24 16:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753409', 'tblTempUsageDetail_20' ) end [2025-03-24 16:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753409', 'tblTempVendorCDR_20' ) start [2025-03-24 16:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753409', 'tblTempVendorCDR_20' ) end [2025-03-24 16:34:23] Production.INFO: ProcessCDR(1,14753409,1,1,2) [2025-03-24 16:34:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:34:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:34:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:34:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753409', 'tblTempUsageDetail_20' ) start [2025-03-24 16:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753409', 'tblTempUsageDetail_20' ) end [2025-03-24 16:34:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 16:34:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 16:34:28] Production.INFO: ==21727== Releasing lock... [2025-03-24 16:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 16:34:28] Production.INFO: 80.5 MB #Memory Used# [2025-03-24 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 13:35:05 [end_date_ymd] => 2025-03-24 16:35:05 [RateCDR] => 1 ) [2025-03-24 16:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 13:35:05' and `end` < '2025-03-24 16:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 16:35:19] Production.INFO: count ==7027 [2025-03-24 16:35:22] Production.ERROR: pbx CDR StartTime 2025-03-24 13:35:05 - End Time 2025-03-24 16:35:05 [2025-03-24 16:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753414', 'tblTempUsageDetail_20' ) start [2025-03-24 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753414', 'tblTempUsageDetail_20' ) end [2025-03-24 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753414', 'tblTempVendorCDR_20' ) start [2025-03-24 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753414', 'tblTempVendorCDR_20' ) end [2025-03-24 16:35:22] Production.INFO: ProcessCDR(1,14753414,1,1,2) [2025-03-24 16:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753414', 'tblTempUsageDetail_20' ) start [2025-03-24 16:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753414', 'tblTempUsageDetail_20' ) end [2025-03-24 16:35:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 16:35:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 16:35:28] Production.INFO: ==21827== Releasing lock... [2025-03-24 16:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 16:35:28] Production.INFO: 80.5 MB #Memory Used# [2025-03-24 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 13:36:05 [end_date_ymd] => 2025-03-24 16:36:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 13:36:05' and `end` < '2025-03-24 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-03-24 16:36:19] Production.INFO: count ==7012 [2025-03-24 16:36:22] Production.ERROR: pbx CDR StartTime 2025-03-24 13:36:05 - End Time 2025-03-24 16:36:05 [2025-03-24 16:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753419', 'tblTempUsageDetail_20' ) start [2025-03-24 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753419', 'tblTempUsageDetail_20' ) end [2025-03-24 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753419', 'tblTempVendorCDR_20' ) start [2025-03-24 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753419', 'tblTempVendorCDR_20' ) end [2025-03-24 16:36:22] Production.INFO: ProcessCDR(1,14753419,1,1,2) [2025-03-24 16:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753419', 'tblTempUsageDetail_20' ) start [2025-03-24 16:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753419', 'tblTempUsageDetail_20' ) end [2025-03-24 16:36:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 16:36:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 16:36:27] Production.INFO: ==21930== Releasing lock... [2025-03-24 16:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 16:36:27] Production.INFO: 80.5 MB #Memory Used# [2025-03-24 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 13:37:05 [end_date_ymd] => 2025-03-24 16:37:05 [RateCDR] => 1 ) [2025-03-24 16:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 13:37:05' and `end` < '2025-03-24 16:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 16:37:19] Production.INFO: count ==7044 [2025-03-24 16:37:22] Production.ERROR: pbx CDR StartTime 2025-03-24 13:37:05 - End Time 2025-03-24 16:37:05 [2025-03-24 16:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753424', 'tblTempUsageDetail_20' ) start [2025-03-24 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753424', 'tblTempUsageDetail_20' ) end [2025-03-24 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753424', 'tblTempVendorCDR_20' ) start [2025-03-24 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753424', 'tblTempVendorCDR_20' ) end [2025-03-24 16:37:22] Production.INFO: ProcessCDR(1,14753424,1,1,2) [2025-03-24 16:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753424', 'tblTempUsageDetail_20' ) start [2025-03-24 16:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753424', 'tblTempUsageDetail_20' ) end [2025-03-24 16:37:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 16:37:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 16:37:28] Production.INFO: ==22033== Releasing lock... [2025-03-24 16:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 16:37:28] Production.INFO: 80.75 MB #Memory Used# [2025-03-24 16:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 13:38:06 [end_date_ymd] => 2025-03-24 16:38:06 [RateCDR] => 1 ) [2025-03-24 16: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-03-24 13:38:06' and `end` < '2025-03-24 16: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-03-24 16:38:20] Production.INFO: count ==7035 [2025-03-24 16:38:23] Production.ERROR: pbx CDR StartTime 2025-03-24 13:38:06 - End Time 2025-03-24 16:38:06 [2025-03-24 16:38:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 16:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753429', 'tblTempUsageDetail_20' ) start [2025-03-24 16:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753429', 'tblTempUsageDetail_20' ) end [2025-03-24 16:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753429', 'tblTempVendorCDR_20' ) start [2025-03-24 16:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753429', 'tblTempVendorCDR_20' ) end [2025-03-24 16:38:23] Production.INFO: ProcessCDR(1,14753429,1,1,2) [2025-03-24 16:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:38:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:38:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:38:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753429', 'tblTempUsageDetail_20' ) start [2025-03-24 16:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753429', 'tblTempUsageDetail_20' ) end [2025-03-24 16:38:29] Production.ERROR: pbx prc_insertCDR start [2025-03-24 16:38:29] Production.ERROR: pbx prc_insertCDR end [2025-03-24 16:38:29] Production.INFO: ==22137== Releasing lock... [2025-03-24 16:38:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 16:38:29] Production.INFO: 80.75 MB #Memory Used# [2025-03-24 16:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 13:39:04 [end_date_ymd] => 2025-03-24 16:39:04 [RateCDR] => 1 ) [2025-03-24 16: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-03-24 13:39:04' and `end` < '2025-03-24 16:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 16:39:18] Production.INFO: count ==7021 [2025-03-24 16:39:21] Production.ERROR: pbx CDR StartTime 2025-03-24 13:39:04 - End Time 2025-03-24 16:39:04 [2025-03-24 16:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753434', 'tblTempUsageDetail_20' ) start [2025-03-24 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753434', 'tblTempUsageDetail_20' ) end [2025-03-24 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753434', 'tblTempVendorCDR_20' ) start [2025-03-24 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753434', 'tblTempVendorCDR_20' ) end [2025-03-24 16:39:21] Production.INFO: ProcessCDR(1,14753434,1,1,2) [2025-03-24 16:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753434', 'tblTempUsageDetail_20' ) start [2025-03-24 16:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753434', 'tblTempUsageDetail_20' ) end [2025-03-24 16:39:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 16:39:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 16:39:26] Production.INFO: ==22240== Releasing lock... [2025-03-24 16:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 16:39:26] Production.INFO: 80.5 MB #Memory Used# [2025-03-24 16:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 13:40:05 [end_date_ymd] => 2025-03-24 16:40:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 13:40:05' and `end` < '2025-03-24 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-03-24 16:40:20] Production.INFO: count ==7024 [2025-03-24 16:40:23] Production.ERROR: pbx CDR StartTime 2025-03-24 13:40:05 - End Time 2025-03-24 16:40:05 [2025-03-24 16:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753439', 'tblTempUsageDetail_20' ) start [2025-03-24 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753439', 'tblTempUsageDetail_20' ) end [2025-03-24 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753439', 'tblTempVendorCDR_20' ) start [2025-03-24 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753439', 'tblTempVendorCDR_20' ) end [2025-03-24 16:40:23] Production.INFO: ProcessCDR(1,14753439,1,1,2) [2025-03-24 16:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753439', 'tblTempUsageDetail_20' ) start [2025-03-24 16:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753439', 'tblTempUsageDetail_20' ) end [2025-03-24 16:40:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 16:40:29] Production.ERROR: pbx prc_insertCDR end [2025-03-24 16:40:29] Production.INFO: ==22351== Releasing lock... [2025-03-24 16:40:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 16:40:29] Production.INFO: 80.5 MB #Memory Used# [2025-03-24 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 13:41:05 [end_date_ymd] => 2025-03-24 16:41:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 13:41:05' and `end` < '2025-03-24 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-03-24 16:41:19] Production.INFO: count ==7017 [2025-03-24 16:41:22] Production.ERROR: pbx CDR StartTime 2025-03-24 13:41:05 - End Time 2025-03-24 16:41:05 [2025-03-24 16:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 16:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753445', 'tblTempUsageDetail_20' ) start [2025-03-24 16:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753445', 'tblTempUsageDetail_20' ) end [2025-03-24 16:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753445', 'tblTempVendorCDR_20' ) start [2025-03-24 16:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753445', 'tblTempVendorCDR_20' ) end [2025-03-24 16:41:22] Production.INFO: ProcessCDR(1,14753445,1,1,2) [2025-03-24 16:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753445', 'tblTempUsageDetail_20' ) start [2025-03-24 16:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753445', 'tblTempUsageDetail_20' ) end [2025-03-24 16:41:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 16:41:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 16:41:28] Production.INFO: ==22452== Releasing lock... [2025-03-24 16:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 16:41:28] Production.INFO: 80.5 MB #Memory Used# [2025-03-24 16:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 13:42:06 [end_date_ymd] => 2025-03-24 16:42:06 [RateCDR] => 1 ) [2025-03-24 16:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 13:42:06' and `end` < '2025-03-24 16:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 16:42:20] Production.INFO: count ==7031 [2025-03-24 16:42:23] Production.ERROR: pbx CDR StartTime 2025-03-24 13:42:06 - End Time 2025-03-24 16:42:06 [2025-03-24 16:42:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 16:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753450', 'tblTempUsageDetail_20' ) start [2025-03-24 16:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753450', 'tblTempUsageDetail_20' ) end [2025-03-24 16:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753450', 'tblTempVendorCDR_20' ) start [2025-03-24 16:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753450', 'tblTempVendorCDR_20' ) end [2025-03-24 16:42:23] Production.INFO: ProcessCDR(1,14753450,1,1,2) [2025-03-24 16:42:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:42:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:42:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753450', 'tblTempUsageDetail_20' ) start [2025-03-24 16:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753450', 'tblTempUsageDetail_20' ) end [2025-03-24 16:42:29] Production.ERROR: pbx prc_insertCDR start [2025-03-24 16:42:29] Production.ERROR: pbx prc_insertCDR end [2025-03-24 16:42:29] Production.INFO: ==22554== Releasing lock... [2025-03-24 16:42:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 16:42:29] Production.INFO: 80.75 MB #Memory Used# [2025-03-24 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 13:43:05 [end_date_ymd] => 2025-03-24 16:43:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 13:43:05' and `end` < '2025-03-24 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-03-24 16:43:19] Production.INFO: count ==7031 [2025-03-24 16:43:22] Production.ERROR: pbx CDR StartTime 2025-03-24 13:43:05 - End Time 2025-03-24 16:43:05 [2025-03-24 16:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753455', 'tblTempUsageDetail_20' ) start [2025-03-24 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753455', 'tblTempUsageDetail_20' ) end [2025-03-24 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753455', 'tblTempVendorCDR_20' ) start [2025-03-24 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753455', 'tblTempVendorCDR_20' ) end [2025-03-24 16:43:22] Production.INFO: ProcessCDR(1,14753455,1,1,2) [2025-03-24 16:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753455', 'tblTempUsageDetail_20' ) start [2025-03-24 16:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753455', 'tblTempUsageDetail_20' ) end [2025-03-24 16:43:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 16:43:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 16:43:28] Production.INFO: ==22658== Releasing lock... [2025-03-24 16:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 16:43:28] Production.INFO: 80.75 MB #Memory Used# [2025-03-24 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 13:44:05 [end_date_ymd] => 2025-03-24 16:44:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 13:44:05' and `end` < '2025-03-24 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-03-24 16:44:19] Production.INFO: count ==7032 [2025-03-24 16:44:22] Production.ERROR: pbx CDR StartTime 2025-03-24 13:44:05 - End Time 2025-03-24 16:44:05 [2025-03-24 16:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753460', 'tblTempUsageDetail_20' ) start [2025-03-24 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753460', 'tblTempUsageDetail_20' ) end [2025-03-24 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753460', 'tblTempVendorCDR_20' ) start [2025-03-24 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753460', 'tblTempVendorCDR_20' ) end [2025-03-24 16:44:22] Production.INFO: ProcessCDR(1,14753460,1,1,2) [2025-03-24 16:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753460', 'tblTempUsageDetail_20' ) start [2025-03-24 16:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753460', 'tblTempUsageDetail_20' ) end [2025-03-24 16:44:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 16:44:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 16:44:28] Production.INFO: ==22765== Releasing lock... [2025-03-24 16:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 16:44:28] Production.INFO: 80.75 MB #Memory Used# [2025-03-24 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 13:45:05 [end_date_ymd] => 2025-03-24 16:45:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 13:45:05' and `end` < '2025-03-24 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-03-24 16:45:19] Production.INFO: count ==7024 [2025-03-24 16:45:22] Production.ERROR: pbx CDR StartTime 2025-03-24 13:45:05 - End Time 2025-03-24 16:45:05 [2025-03-24 16:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753465', 'tblTempUsageDetail_20' ) start [2025-03-24 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753465', 'tblTempUsageDetail_20' ) end [2025-03-24 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753465', 'tblTempVendorCDR_20' ) start [2025-03-24 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753465', 'tblTempVendorCDR_20' ) end [2025-03-24 16:45:22] Production.INFO: ProcessCDR(1,14753465,1,1,2) [2025-03-24 16:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753465', 'tblTempUsageDetail_20' ) start [2025-03-24 16:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753465', 'tblTempUsageDetail_20' ) end [2025-03-24 16:45:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 16:45:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 16:45:27] Production.INFO: ==22877== Releasing lock... [2025-03-24 16:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 16:45:27] Production.INFO: 80.5 MB #Memory Used# [2025-03-24 16:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 13:46:06 [end_date_ymd] => 2025-03-24 16:46:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 13:46:06' and `end` < '2025-03-24 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-03-24 16:46:20] Production.INFO: count ==7011 [2025-03-24 16:46:23] Production.ERROR: pbx CDR StartTime 2025-03-24 13:46:06 - End Time 2025-03-24 16:46:06 [2025-03-24 16:46:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 16:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753470', 'tblTempUsageDetail_20' ) start [2025-03-24 16:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753470', 'tblTempUsageDetail_20' ) end [2025-03-24 16:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753470', 'tblTempVendorCDR_20' ) start [2025-03-24 16:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753470', 'tblTempVendorCDR_20' ) end [2025-03-24 16:46:23] Production.INFO: ProcessCDR(1,14753470,1,1,2) [2025-03-24 16:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753470', 'tblTempUsageDetail_20' ) start [2025-03-24 16:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753470', 'tblTempUsageDetail_20' ) end [2025-03-24 16:46:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 16:46:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 16:46:28] Production.INFO: ==22981== Releasing lock... [2025-03-24 16:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 16:46:28] Production.INFO: 80.5 MB #Memory Used# [2025-03-24 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 13:47:05 [end_date_ymd] => 2025-03-24 16:47:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 13:47:05' and `end` < '2025-03-24 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-03-24 16:47:19] Production.INFO: count ==7011 [2025-03-24 16:47:22] Production.ERROR: pbx CDR StartTime 2025-03-24 13:47:05 - End Time 2025-03-24 16:47:05 [2025-03-24 16:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753475', 'tblTempUsageDetail_20' ) start [2025-03-24 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753475', 'tblTempUsageDetail_20' ) end [2025-03-24 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753475', 'tblTempVendorCDR_20' ) start [2025-03-24 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753475', 'tblTempVendorCDR_20' ) end [2025-03-24 16:47:22] Production.INFO: ProcessCDR(1,14753475,1,1,2) [2025-03-24 16:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753475', 'tblTempUsageDetail_20' ) start [2025-03-24 16:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753475', 'tblTempUsageDetail_20' ) end [2025-03-24 16:47:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 16:47:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 16:47:27] Production.INFO: ==23084== Releasing lock... [2025-03-24 16:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 16:47:27] Production.INFO: 80.5 MB #Memory Used# [2025-03-24 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 13:48:05 [end_date_ymd] => 2025-03-24 16:48:05 [RateCDR] => 1 ) [2025-03-24 16:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 13:48:05' and `end` < '2025-03-24 16:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 16:48:19] Production.INFO: count ==7023 [2025-03-24 16:48:23] Production.ERROR: pbx CDR StartTime 2025-03-24 13:48:05 - End Time 2025-03-24 16:48:05 [2025-03-24 16:48:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 16:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753480', 'tblTempUsageDetail_20' ) start [2025-03-24 16:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753480', 'tblTempUsageDetail_20' ) end [2025-03-24 16:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753480', 'tblTempVendorCDR_20' ) start [2025-03-24 16:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753480', 'tblTempVendorCDR_20' ) end [2025-03-24 16:48:23] Production.INFO: ProcessCDR(1,14753480,1,1,2) [2025-03-24 16:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753480', 'tblTempUsageDetail_20' ) start [2025-03-24 16:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753480', 'tblTempUsageDetail_20' ) end [2025-03-24 16:48:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 16:48:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 16:48:28] Production.INFO: ==23228== Releasing lock... [2025-03-24 16:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 16:48:28] Production.INFO: 80.5 MB #Memory Used# [2025-03-24 16:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 13:49:06 [end_date_ymd] => 2025-03-24 16:49:06 [RateCDR] => 1 ) [2025-03-24 16: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-03-24 13:49:06' and `end` < '2025-03-24 16: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-03-24 16:49:20] Production.INFO: count ==7053 [2025-03-24 16:49:23] Production.ERROR: pbx CDR StartTime 2025-03-24 13:49:06 - End Time 2025-03-24 16:49:06 [2025-03-24 16:49:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 16:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753485', 'tblTempUsageDetail_20' ) start [2025-03-24 16:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753485', 'tblTempUsageDetail_20' ) end [2025-03-24 16:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753485', 'tblTempVendorCDR_20' ) start [2025-03-24 16:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753485', 'tblTempVendorCDR_20' ) end [2025-03-24 16:49:23] Production.INFO: ProcessCDR(1,14753485,1,1,2) [2025-03-24 16:49:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:49:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:49:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753485', 'tblTempUsageDetail_20' ) start [2025-03-24 16:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753485', 'tblTempUsageDetail_20' ) end [2025-03-24 16:49:29] Production.ERROR: pbx prc_insertCDR start [2025-03-24 16:49:29] Production.ERROR: pbx prc_insertCDR end [2025-03-24 16:49:29] Production.INFO: ==23326== Releasing lock... [2025-03-24 16:49:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 16:49:29] Production.INFO: 80.75 MB #Memory Used# [2025-03-24 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 13:50:06 [end_date_ymd] => 2025-03-24 16:50:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 13:50:06' and `end` < '2025-03-24 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-03-24 16:50:20] Production.INFO: count ==7078 [2025-03-24 16:50:23] Production.ERROR: pbx CDR StartTime 2025-03-24 13:50:06 - End Time 2025-03-24 16:50:06 [2025-03-24 16:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 16:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753491', 'tblTempUsageDetail_20' ) start [2025-03-24 16:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753491', 'tblTempUsageDetail_20' ) end [2025-03-24 16:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753491', 'tblTempVendorCDR_20' ) start [2025-03-24 16:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753491', 'tblTempVendorCDR_20' ) end [2025-03-24 16:50:23] Production.INFO: ProcessCDR(1,14753491,1,1,2) [2025-03-24 16:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753491', 'tblTempUsageDetail_20' ) start [2025-03-24 16:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753491', 'tblTempUsageDetail_20' ) end [2025-03-24 16:50:29] Production.ERROR: pbx prc_insertCDR start [2025-03-24 16:50:29] Production.ERROR: pbx prc_insertCDR end [2025-03-24 16:50:29] Production.INFO: ==23435== Releasing lock... [2025-03-24 16:50:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 16:50:29] Production.INFO: 81.5 MB #Memory Used# [2025-03-24 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 13:51:05 [end_date_ymd] => 2025-03-24 16:51:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 13:51:05' and `end` < '2025-03-24 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-03-24 16:51:20] Production.INFO: count ==7051 [2025-03-24 16:51:23] Production.ERROR: pbx CDR StartTime 2025-03-24 13:51:05 - End Time 2025-03-24 16:51:05 [2025-03-24 16:51:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 16:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753496', 'tblTempUsageDetail_20' ) start [2025-03-24 16:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753496', 'tblTempUsageDetail_20' ) end [2025-03-24 16:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753496', 'tblTempVendorCDR_20' ) start [2025-03-24 16:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753496', 'tblTempVendorCDR_20' ) end [2025-03-24 16:51:23] Production.INFO: ProcessCDR(1,14753496,1,1,2) [2025-03-24 16:51:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:51:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:51:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753496', 'tblTempUsageDetail_20' ) start [2025-03-24 16:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753496', 'tblTempUsageDetail_20' ) end [2025-03-24 16:51:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 16:51:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 16:51:28] Production.INFO: ==23542== Releasing lock... [2025-03-24 16:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 16:51:28] Production.INFO: 80.75 MB #Memory Used# [2025-03-24 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 13:52:05 [end_date_ymd] => 2025-03-24 16:52:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 13:52:05' and `end` < '2025-03-24 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-03-24 16:52:19] Production.INFO: count ==7094 [2025-03-24 16:52:22] Production.ERROR: pbx CDR StartTime 2025-03-24 13:52:05 - End Time 2025-03-24 16:52:05 [2025-03-24 16:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753501', 'tblTempUsageDetail_20' ) start [2025-03-24 16:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753501', 'tblTempUsageDetail_20' ) end [2025-03-24 16:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753501', 'tblTempVendorCDR_20' ) start [2025-03-24 16:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753501', 'tblTempVendorCDR_20' ) end [2025-03-24 16:52:23] Production.INFO: ProcessCDR(1,14753501,1,1,2) [2025-03-24 16:52:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:52:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753501', 'tblTempUsageDetail_20' ) start [2025-03-24 16:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753501', 'tblTempUsageDetail_20' ) end [2025-03-24 16:52:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 16:52:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 16:52:28] Production.INFO: ==23647== Releasing lock... [2025-03-24 16:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 16:52:28] Production.INFO: 81.5 MB #Memory Used# [2025-03-24 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 13:53:05 [end_date_ymd] => 2025-03-24 16:53:05 [RateCDR] => 1 ) [2025-03-24 16:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 13:53:05' and `end` < '2025-03-24 16:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 16:53:19] Production.INFO: count ==7088 [2025-03-24 16:53:22] Production.ERROR: pbx CDR StartTime 2025-03-24 13:53:05 - End Time 2025-03-24 16:53:05 [2025-03-24 16:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753506', 'tblTempUsageDetail_20' ) start [2025-03-24 16:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753506', 'tblTempUsageDetail_20' ) end [2025-03-24 16:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753506', 'tblTempVendorCDR_20' ) start [2025-03-24 16:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753506', 'tblTempVendorCDR_20' ) end [2025-03-24 16:53:23] Production.INFO: ProcessCDR(1,14753506,1,1,2) [2025-03-24 16:53:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:53:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753506', 'tblTempUsageDetail_20' ) start [2025-03-24 16:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753506', 'tblTempUsageDetail_20' ) end [2025-03-24 16:53:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 16:53:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 16:53:28] Production.INFO: ==23753== Releasing lock... [2025-03-24 16:53:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 16:53:28] Production.INFO: 81.5 MB #Memory Used# [2025-03-24 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 13:54:05 [end_date_ymd] => 2025-03-24 16:54:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 13:54:05' and `end` < '2025-03-24 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-03-24 16:54:19] Production.INFO: count ==7078 [2025-03-24 16:54:22] Production.ERROR: pbx CDR StartTime 2025-03-24 13:54:05 - End Time 2025-03-24 16:54:05 [2025-03-24 16:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753511', 'tblTempUsageDetail_20' ) start [2025-03-24 16:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753511', 'tblTempUsageDetail_20' ) end [2025-03-24 16:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753511', 'tblTempVendorCDR_20' ) start [2025-03-24 16:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753511', 'tblTempVendorCDR_20' ) end [2025-03-24 16:54:23] Production.INFO: ProcessCDR(1,14753511,1,1,2) [2025-03-24 16:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753511', 'tblTempUsageDetail_20' ) start [2025-03-24 16:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753511', 'tblTempUsageDetail_20' ) end [2025-03-24 16:54:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 16:54:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 16:54:28] Production.INFO: ==23855== Releasing lock... [2025-03-24 16:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 16:54:28] Production.INFO: 81.5 MB #Memory Used# [2025-03-24 16:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 13:55:06 [end_date_ymd] => 2025-03-24 16:55:06 [RateCDR] => 1 ) [2025-03-24 16: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-03-24 13:55:06' and `end` < '2025-03-24 16: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-03-24 16:55:20] Production.INFO: count ==7066 [2025-03-24 16:55:23] Production.ERROR: pbx CDR StartTime 2025-03-24 13:55:06 - End Time 2025-03-24 16:55:06 [2025-03-24 16:55:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 16:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753516', 'tblTempUsageDetail_20' ) start [2025-03-24 16:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753516', 'tblTempUsageDetail_20' ) end [2025-03-24 16:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753516', 'tblTempVendorCDR_20' ) start [2025-03-24 16:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753516', 'tblTempVendorCDR_20' ) end [2025-03-24 16:55:23] Production.INFO: ProcessCDR(1,14753516,1,1,2) [2025-03-24 16:55:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:55:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:55:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753516', 'tblTempUsageDetail_20' ) start [2025-03-24 16:55:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753516', 'tblTempUsageDetail_20' ) end [2025-03-24 16:55:29] Production.ERROR: pbx prc_insertCDR start [2025-03-24 16:55:29] Production.ERROR: pbx prc_insertCDR end [2025-03-24 16:55:29] Production.INFO: ==23955== Releasing lock... [2025-03-24 16:55:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 16:55:29] Production.INFO: 81 MB #Memory Used# [2025-03-24 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 13:56:05 [end_date_ymd] => 2025-03-24 16:56:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 13:56:05' and `end` < '2025-03-24 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-03-24 16:56:19] Production.INFO: count ==7063 [2025-03-24 16:56:22] Production.ERROR: pbx CDR StartTime 2025-03-24 13:56:05 - End Time 2025-03-24 16:56:05 [2025-03-24 16:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753521', 'tblTempUsageDetail_20' ) start [2025-03-24 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753521', 'tblTempUsageDetail_20' ) end [2025-03-24 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753521', 'tblTempVendorCDR_20' ) start [2025-03-24 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753521', 'tblTempVendorCDR_20' ) end [2025-03-24 16:56:22] Production.INFO: ProcessCDR(1,14753521,1,1,2) [2025-03-24 16:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753521', 'tblTempUsageDetail_20' ) start [2025-03-24 16:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753521', 'tblTempUsageDetail_20' ) end [2025-03-24 16:56:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 16:56:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 16:56:28] Production.INFO: ==24057== Releasing lock... [2025-03-24 16:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 16:56:28] Production.INFO: 81 MB #Memory Used# [2025-03-24 16:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 13:57:06 [end_date_ymd] => 2025-03-24 16:57:06 [RateCDR] => 1 ) [2025-03-24 16: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-03-24 13:57:06' and `end` < '2025-03-24 16: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-03-24 16:57:20] Production.INFO: count ==7137 [2025-03-24 16:57:23] Production.ERROR: pbx CDR StartTime 2025-03-24 13:57:06 - End Time 2025-03-24 16:57:06 [2025-03-24 16:57:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 16:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753526', 'tblTempUsageDetail_20' ) start [2025-03-24 16:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753526', 'tblTempUsageDetail_20' ) end [2025-03-24 16:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753526', 'tblTempVendorCDR_20' ) start [2025-03-24 16:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753526', 'tblTempVendorCDR_20' ) end [2025-03-24 16:57:23] Production.INFO: ProcessCDR(1,14753526,1,1,2) [2025-03-24 16:57:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:57:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:57:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:57:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753526', 'tblTempUsageDetail_20' ) start [2025-03-24 16:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753526', 'tblTempUsageDetail_20' ) end [2025-03-24 16:57:29] Production.ERROR: pbx prc_insertCDR start [2025-03-24 16:57:29] Production.ERROR: pbx prc_insertCDR end [2025-03-24 16:57:29] Production.INFO: ==24162== Releasing lock... [2025-03-24 16:57:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 16:57:29] Production.INFO: 82 MB #Memory Used# [2025-03-24 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 13:58:05 [end_date_ymd] => 2025-03-24 16:58:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 13:58:05' and `end` < '2025-03-24 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-03-24 16:58:19] Production.INFO: count ==7135 [2025-03-24 16:58:22] Production.ERROR: pbx CDR StartTime 2025-03-24 13:58:05 - End Time 2025-03-24 16:58:05 [2025-03-24 16:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753531', 'tblTempUsageDetail_20' ) start [2025-03-24 16:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753531', 'tblTempUsageDetail_20' ) end [2025-03-24 16:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753531', 'tblTempVendorCDR_20' ) start [2025-03-24 16:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753531', 'tblTempVendorCDR_20' ) end [2025-03-24 16:58:23] Production.INFO: ProcessCDR(1,14753531,1,1,2) [2025-03-24 16:58:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:58:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753531', 'tblTempUsageDetail_20' ) start [2025-03-24 16:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753531', 'tblTempUsageDetail_20' ) end [2025-03-24 16:58:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 16:58:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 16:58:28] Production.INFO: ==24261== Releasing lock... [2025-03-24 16:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 16:58:28] Production.INFO: 82 MB #Memory Used# [2025-03-24 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 13:59:05 [end_date_ymd] => 2025-03-24 16:59:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 13:59:05' and `end` < '2025-03-24 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-03-24 16:59:19] Production.INFO: count ==7102 [2025-03-24 16:59:22] Production.ERROR: pbx CDR StartTime 2025-03-24 13:59:05 - End Time 2025-03-24 16:59:05 [2025-03-24 16:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753536', 'tblTempUsageDetail_20' ) start [2025-03-24 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753536', 'tblTempUsageDetail_20' ) end [2025-03-24 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753536', 'tblTempVendorCDR_20' ) start [2025-03-24 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753536', 'tblTempVendorCDR_20' ) end [2025-03-24 16:59:22] Production.INFO: ProcessCDR(1,14753536,1,1,2) [2025-03-24 16:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 16:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 16:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753536', 'tblTempUsageDetail_20' ) start [2025-03-24 16:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753536', 'tblTempUsageDetail_20' ) end [2025-03-24 16:59:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 16:59:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 16:59:28] Production.INFO: ==24363== Releasing lock... [2025-03-24 16:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 16:59:28] Production.INFO: 81.75 MB #Memory Used# [2025-03-24 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 14:00:06 [end_date_ymd] => 2025-03-24 17:00:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 14:00:06' and `end` < '2025-03-24 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-03-24 17:00:20] Production.INFO: count ==7110 [2025-03-24 17:00:23] Production.ERROR: pbx CDR StartTime 2025-03-24 14:00:06 - End Time 2025-03-24 17:00:06 [2025-03-24 17:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753542', 'tblTempUsageDetail_20' ) start [2025-03-24 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753542', 'tblTempUsageDetail_20' ) end [2025-03-24 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753542', 'tblTempVendorCDR_20' ) start [2025-03-24 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753542', 'tblTempVendorCDR_20' ) end [2025-03-24 17:00:23] Production.INFO: ProcessCDR(1,14753542,1,1,2) [2025-03-24 17:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753542', 'tblTempUsageDetail_20' ) start [2025-03-24 17:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753542', 'tblTempUsageDetail_20' ) end [2025-03-24 17:00:29] Production.ERROR: pbx prc_insertCDR start [2025-03-24 17:00:29] Production.ERROR: pbx prc_insertCDR end [2025-03-24 17:00:29] Production.INFO: ==24468== Releasing lock... [2025-03-24 17:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 17:00:29] Production.INFO: 81.75 MB #Memory Used# [2025-03-24 17:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 14:01:06 [end_date_ymd] => 2025-03-24 17:01:06 [RateCDR] => 1 ) [2025-03-24 17:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 14:01:06' and `end` < '2025-03-24 17:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 17:01:20] Production.INFO: count ==7094 [2025-03-24 17:01:23] Production.ERROR: pbx CDR StartTime 2025-03-24 14:01:06 - End Time 2025-03-24 17:01:06 [2025-03-24 17:01:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 17:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753547', 'tblTempUsageDetail_20' ) start [2025-03-24 17:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753547', 'tblTempUsageDetail_20' ) end [2025-03-24 17:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753547', 'tblTempVendorCDR_20' ) start [2025-03-24 17:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753547', 'tblTempVendorCDR_20' ) end [2025-03-24 17:01:23] Production.INFO: ProcessCDR(1,14753547,1,1,2) [2025-03-24 17:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:01:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:01:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:01:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753547', 'tblTempUsageDetail_20' ) start [2025-03-24 17:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753547', 'tblTempUsageDetail_20' ) end [2025-03-24 17:01:29] Production.ERROR: pbx prc_insertCDR start [2025-03-24 17:01:29] Production.ERROR: pbx prc_insertCDR end [2025-03-24 17:01:29] Production.INFO: ==24581== Releasing lock... [2025-03-24 17:01:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 17:01:29] Production.INFO: 81.5 MB #Memory Used# [2025-03-24 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 14:02:05 [end_date_ymd] => 2025-03-24 17:02:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 14:02:05' and `end` < '2025-03-24 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-03-24 17:02:19] Production.INFO: count ==7095 [2025-03-24 17:02:22] Production.ERROR: pbx CDR StartTime 2025-03-24 14:02:05 - End Time 2025-03-24 17:02:05 [2025-03-24 17:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753552', 'tblTempUsageDetail_20' ) start [2025-03-24 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753552', 'tblTempUsageDetail_20' ) end [2025-03-24 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753552', 'tblTempVendorCDR_20' ) start [2025-03-24 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753552', 'tblTempVendorCDR_20' ) end [2025-03-24 17:02:22] Production.INFO: ProcessCDR(1,14753552,1,1,2) [2025-03-24 17:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753552', 'tblTempUsageDetail_20' ) start [2025-03-24 17:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753552', 'tblTempUsageDetail_20' ) end [2025-03-24 17:02:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 17:02:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 17:02:28] Production.INFO: ==24685== Releasing lock... [2025-03-24 17:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 17:02:28] Production.INFO: 81.5 MB #Memory Used# [2025-03-24 17:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 14:03:06 [end_date_ymd] => 2025-03-24 17:03:06 [RateCDR] => 1 ) [2025-03-24 17:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 14:03:06' and `end` < '2025-03-24 17:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 17:03:19] Production.INFO: count ==7194 [2025-03-24 17:03:23] Production.ERROR: pbx CDR StartTime 2025-03-24 14:03:06 - End Time 2025-03-24 17:03:06 [2025-03-24 17:03:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 17:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753557', 'tblTempUsageDetail_20' ) start [2025-03-24 17:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753557', 'tblTempUsageDetail_20' ) end [2025-03-24 17:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753557', 'tblTempVendorCDR_20' ) start [2025-03-24 17:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753557', 'tblTempVendorCDR_20' ) end [2025-03-24 17:03:23] Production.INFO: ProcessCDR(1,14753557,1,1,2) [2025-03-24 17:03:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:03:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:03:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753557', 'tblTempUsageDetail_20' ) start [2025-03-24 17:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753557', 'tblTempUsageDetail_20' ) end [2025-03-24 17:03:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 17:03:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 17:03:28] Production.INFO: ==24825== Releasing lock... [2025-03-24 17:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 17:03:28] Production.INFO: 82.25 MB #Memory Used# [2025-03-24 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 14:04:05 [end_date_ymd] => 2025-03-24 17:04:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 14:04:05' and `end` < '2025-03-24 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-03-24 17:04:19] Production.INFO: count ==7184 [2025-03-24 17:04:22] Production.ERROR: pbx CDR StartTime 2025-03-24 14:04:05 - End Time 2025-03-24 17:04:05 [2025-03-24 17:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753562', 'tblTempUsageDetail_20' ) start [2025-03-24 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753562', 'tblTempUsageDetail_20' ) end [2025-03-24 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753562', 'tblTempVendorCDR_20' ) start [2025-03-24 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753562', 'tblTempVendorCDR_20' ) end [2025-03-24 17:04:22] Production.INFO: ProcessCDR(1,14753562,1,1,2) [2025-03-24 17:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753562', 'tblTempUsageDetail_20' ) start [2025-03-24 17:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753562', 'tblTempUsageDetail_20' ) end [2025-03-24 17:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 17:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 17:04:27] Production.INFO: ==24928== Releasing lock... [2025-03-24 17:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 17:04:27] Production.INFO: 82.25 MB #Memory Used# [2025-03-24 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 14:05:05 [end_date_ymd] => 2025-03-24 17:05:05 [RateCDR] => 1 ) [2025-03-24 17:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 14:05:05' and `end` < '2025-03-24 17:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 17:05:19] Production.INFO: count ==7187 [2025-03-24 17:05:23] Production.ERROR: pbx CDR StartTime 2025-03-24 14:05:05 - End Time 2025-03-24 17:05:05 [2025-03-24 17:05:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 17:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753567', 'tblTempUsageDetail_20' ) start [2025-03-24 17:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753567', 'tblTempUsageDetail_20' ) end [2025-03-24 17:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753567', 'tblTempVendorCDR_20' ) start [2025-03-24 17:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753567', 'tblTempVendorCDR_20' ) end [2025-03-24 17:05:23] Production.INFO: ProcessCDR(1,14753567,1,1,2) [2025-03-24 17:05:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:05:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:05:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:05:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753567', 'tblTempUsageDetail_20' ) start [2025-03-24 17:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753567', 'tblTempUsageDetail_20' ) end [2025-03-24 17:05:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 17:05:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 17:05:28] Production.INFO: ==25028== Releasing lock... [2025-03-24 17:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 17:05:28] Production.INFO: 82.25 MB #Memory Used# [2025-03-24 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 14:06:05 [end_date_ymd] => 2025-03-24 17:06:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 14:06:05' and `end` < '2025-03-24 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-03-24 17:06:19] Production.INFO: count ==7189 [2025-03-24 17:06:23] Production.ERROR: pbx CDR StartTime 2025-03-24 14:06:05 - End Time 2025-03-24 17:06:05 [2025-03-24 17:06:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 17:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753572', 'tblTempUsageDetail_20' ) start [2025-03-24 17:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753572', 'tblTempUsageDetail_20' ) end [2025-03-24 17:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753572', 'tblTempVendorCDR_20' ) start [2025-03-24 17:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753572', 'tblTempVendorCDR_20' ) end [2025-03-24 17:06:23] Production.INFO: ProcessCDR(1,14753572,1,1,2) [2025-03-24 17:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:06:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:06:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753572', 'tblTempUsageDetail_20' ) start [2025-03-24 17:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753572', 'tblTempUsageDetail_20' ) end [2025-03-24 17:06:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 17:06:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 17:06:28] Production.INFO: ==25129== Releasing lock... [2025-03-24 17:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 17:06:28] Production.INFO: 82.25 MB #Memory Used# [2025-03-24 17:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 14:07:06 [end_date_ymd] => 2025-03-24 17:07:06 [RateCDR] => 1 ) [2025-03-24 17:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 14:07:06' and `end` < '2025-03-24 17:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 17:07:20] Production.INFO: count ==7166 [2025-03-24 17:07:23] Production.ERROR: pbx CDR StartTime 2025-03-24 14:07:06 - End Time 2025-03-24 17:07:06 [2025-03-24 17:07:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 17:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753577', 'tblTempUsageDetail_20' ) start [2025-03-24 17:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753577', 'tblTempUsageDetail_20' ) end [2025-03-24 17:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753577', 'tblTempVendorCDR_20' ) start [2025-03-24 17:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753577', 'tblTempVendorCDR_20' ) end [2025-03-24 17:07:23] Production.INFO: ProcessCDR(1,14753577,1,1,2) [2025-03-24 17:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:07:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:07:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753577', 'tblTempUsageDetail_20' ) start [2025-03-24 17:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753577', 'tblTempUsageDetail_20' ) end [2025-03-24 17:07:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 17:07:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 17:07:28] Production.INFO: ==25228== Releasing lock... [2025-03-24 17:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 17:07:28] Production.INFO: 82.25 MB #Memory Used# [2025-03-24 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 14:08:05 [end_date_ymd] => 2025-03-24 17:08:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 14:08:05' and `end` < '2025-03-24 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-03-24 17:08:19] Production.INFO: count ==7162 [2025-03-24 17:08:22] Production.ERROR: pbx CDR StartTime 2025-03-24 14:08:05 - End Time 2025-03-24 17:08:05 [2025-03-24 17:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 17:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753582', 'tblTempUsageDetail_20' ) start [2025-03-24 17:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753582', 'tblTempUsageDetail_20' ) end [2025-03-24 17:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753582', 'tblTempVendorCDR_20' ) start [2025-03-24 17:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753582', 'tblTempVendorCDR_20' ) end [2025-03-24 17:08:22] Production.INFO: ProcessCDR(1,14753582,1,1,2) [2025-03-24 17:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753582', 'tblTempUsageDetail_20' ) start [2025-03-24 17:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753582', 'tblTempUsageDetail_20' ) end [2025-03-24 17:08:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 17:08:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 17:08:28] Production.INFO: ==25315== Releasing lock... [2025-03-24 17:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 17:08:28] Production.INFO: 82.25 MB #Memory Used# [2025-03-24 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 14:09:05 [end_date_ymd] => 2025-03-24 17:09:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 14:09:05' and `end` < '2025-03-24 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-03-24 17:09:19] Production.INFO: count ==7168 [2025-03-24 17:09:22] Production.ERROR: pbx CDR StartTime 2025-03-24 14:09:05 - End Time 2025-03-24 17:09:05 [2025-03-24 17:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753587', 'tblTempUsageDetail_20' ) start [2025-03-24 17:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753587', 'tblTempUsageDetail_20' ) end [2025-03-24 17:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753587', 'tblTempVendorCDR_20' ) start [2025-03-24 17:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753587', 'tblTempVendorCDR_20' ) end [2025-03-24 17:09:23] Production.INFO: ProcessCDR(1,14753587,1,1,2) [2025-03-24 17:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753587', 'tblTempUsageDetail_20' ) start [2025-03-24 17:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753587', 'tblTempUsageDetail_20' ) end [2025-03-24 17:09:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 17:09:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 17:09:28] Production.INFO: ==25403== Releasing lock... [2025-03-24 17:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 17:09:28] Production.INFO: 82.25 MB #Memory Used# [2025-03-24 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 14:10:06 [end_date_ymd] => 2025-03-24 17:10:06 [RateCDR] => 1 ) [2025-03-24 17:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 14:10:06' and `end` < '2025-03-24 17:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 17:10:20] Production.INFO: count ==7179 [2025-03-24 17:10:23] Production.ERROR: pbx CDR StartTime 2025-03-24 14:10:06 - End Time 2025-03-24 17:10:06 [2025-03-24 17:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 17:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753593', 'tblTempUsageDetail_20' ) start [2025-03-24 17:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753593', 'tblTempUsageDetail_20' ) end [2025-03-24 17:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753593', 'tblTempVendorCDR_20' ) start [2025-03-24 17:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753593', 'tblTempVendorCDR_20' ) end [2025-03-24 17:10:23] Production.INFO: ProcessCDR(1,14753593,1,1,2) [2025-03-24 17:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753593', 'tblTempUsageDetail_20' ) start [2025-03-24 17:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753593', 'tblTempUsageDetail_20' ) end [2025-03-24 17:10:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 17:10:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 17:10:27] Production.INFO: ==25490== Releasing lock... [2025-03-24 17:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 17:10:27] Production.INFO: 82.25 MB #Memory Used# [2025-03-24 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 14:11:05 [end_date_ymd] => 2025-03-24 17:11:05 [RateCDR] => 1 ) [2025-03-24 17:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 14:11:05' and `end` < '2025-03-24 17:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 17:11:19] Production.INFO: count ==7101 [2025-03-24 17:11:22] Production.ERROR: pbx CDR StartTime 2025-03-24 14:11:05 - End Time 2025-03-24 17:11:05 [2025-03-24 17:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753598', 'tblTempUsageDetail_20' ) start [2025-03-24 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753598', 'tblTempUsageDetail_20' ) end [2025-03-24 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753598', 'tblTempVendorCDR_20' ) start [2025-03-24 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753598', 'tblTempVendorCDR_20' ) end [2025-03-24 17:11:22] Production.INFO: ProcessCDR(1,14753598,1,1,2) [2025-03-24 17:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753598', 'tblTempUsageDetail_20' ) start [2025-03-24 17:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753598', 'tblTempUsageDetail_20' ) end [2025-03-24 17:11:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 17:11:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 17:11:27] Production.INFO: ==25585== Releasing lock... [2025-03-24 17:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 17:11:27] Production.INFO: 81.75 MB #Memory Used# [2025-03-24 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 14:12:05 [end_date_ymd] => 2025-03-24 17:12:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 14:12:05' and `end` < '2025-03-24 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-03-24 17:12:19] Production.INFO: count ==7088 [2025-03-24 17:12:22] Production.ERROR: pbx CDR StartTime 2025-03-24 14:12:05 - End Time 2025-03-24 17:12:05 [2025-03-24 17:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753603', 'tblTempUsageDetail_20' ) start [2025-03-24 17:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753603', 'tblTempUsageDetail_20' ) end [2025-03-24 17:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753603', 'tblTempVendorCDR_20' ) start [2025-03-24 17:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753603', 'tblTempVendorCDR_20' ) end [2025-03-24 17:12:23] Production.INFO: ProcessCDR(1,14753603,1,1,2) [2025-03-24 17:12:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753603', 'tblTempUsageDetail_20' ) start [2025-03-24 17:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753603', 'tblTempUsageDetail_20' ) end [2025-03-24 17:12:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 17:12:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 17:12:28] Production.INFO: ==25671== Releasing lock... [2025-03-24 17:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 17:12:28] Production.INFO: 81.5 MB #Memory Used# [2025-03-24 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 14:13:05 [end_date_ymd] => 2025-03-24 17:13:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 14:13:05' and `end` < '2025-03-24 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-03-24 17:13:19] Production.INFO: count ==7070 [2025-03-24 17:13:22] Production.ERROR: pbx CDR StartTime 2025-03-24 14:13:05 - End Time 2025-03-24 17:13:05 [2025-03-24 17:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753608', 'tblTempUsageDetail_20' ) start [2025-03-24 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753608', 'tblTempUsageDetail_20' ) end [2025-03-24 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753608', 'tblTempVendorCDR_20' ) start [2025-03-24 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753608', 'tblTempVendorCDR_20' ) end [2025-03-24 17:13:22] Production.INFO: ProcessCDR(1,14753608,1,1,2) [2025-03-24 17:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753608', 'tblTempUsageDetail_20' ) start [2025-03-24 17:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753608', 'tblTempUsageDetail_20' ) end [2025-03-24 17:13:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 17:13:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 17:13:26] Production.INFO: ==25756== Releasing lock... [2025-03-24 17:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 17:13:26] Production.INFO: 81 MB #Memory Used# [2025-03-24 17:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 14:14:06 [end_date_ymd] => 2025-03-24 17:14:06 [RateCDR] => 1 ) [2025-03-24 17:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 14:14:06' and `end` < '2025-03-24 17:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 17:14:20] Production.INFO: count ==7064 [2025-03-24 17:14:23] Production.ERROR: pbx CDR StartTime 2025-03-24 14:14:06 - End Time 2025-03-24 17:14:06 [2025-03-24 17:14:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 17:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753613', 'tblTempUsageDetail_20' ) start [2025-03-24 17:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753613', 'tblTempUsageDetail_20' ) end [2025-03-24 17:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753613', 'tblTempVendorCDR_20' ) start [2025-03-24 17:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753613', 'tblTempVendorCDR_20' ) end [2025-03-24 17:14:23] Production.INFO: ProcessCDR(1,14753613,1,1,2) [2025-03-24 17:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753613', 'tblTempUsageDetail_20' ) start [2025-03-24 17:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753613', 'tblTempUsageDetail_20' ) end [2025-03-24 17:14:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 17:14:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 17:14:27] Production.INFO: ==25843== Releasing lock... [2025-03-24 17:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 17:14:27] Production.INFO: 81 MB #Memory Used# [2025-03-24 17:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 14:15:06 [end_date_ymd] => 2025-03-24 17:15:06 [RateCDR] => 1 ) [2025-03-24 17: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-03-24 14:15:06' and `end` < '2025-03-24 17: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-03-24 17:15:20] Production.INFO: count ==7058 [2025-03-24 17:15:23] Production.ERROR: pbx CDR StartTime 2025-03-24 14:15:06 - End Time 2025-03-24 17:15:06 [2025-03-24 17:15:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 17:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753618', 'tblTempUsageDetail_20' ) start [2025-03-24 17:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753618', 'tblTempUsageDetail_20' ) end [2025-03-24 17:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753618', 'tblTempVendorCDR_20' ) start [2025-03-24 17:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753618', 'tblTempVendorCDR_20' ) end [2025-03-24 17:15:23] Production.INFO: ProcessCDR(1,14753618,1,1,2) [2025-03-24 17:15:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753618', 'tblTempUsageDetail_20' ) start [2025-03-24 17:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753618', 'tblTempUsageDetail_20' ) end [2025-03-24 17:15:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 17:15:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 17:15:27] Production.INFO: ==25941== Releasing lock... [2025-03-24 17:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 17:15:27] Production.INFO: 80.75 MB #Memory Used# [2025-03-24 17:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 14:16:06 [end_date_ymd] => 2025-03-24 17:16:06 [RateCDR] => 1 ) [2025-03-24 17: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-03-24 14:16:06' and `end` < '2025-03-24 17: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-03-24 17:16:19] Production.INFO: count ==7067 [2025-03-24 17:16:22] Production.ERROR: pbx CDR StartTime 2025-03-24 14:16:06 - End Time 2025-03-24 17:16:06 [2025-03-24 17:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753623', 'tblTempUsageDetail_20' ) start [2025-03-24 17:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753623', 'tblTempUsageDetail_20' ) end [2025-03-24 17:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753623', 'tblTempVendorCDR_20' ) start [2025-03-24 17:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753623', 'tblTempVendorCDR_20' ) end [2025-03-24 17:16:23] Production.INFO: ProcessCDR(1,14753623,1,1,2) [2025-03-24 17:16:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753623', 'tblTempUsageDetail_20' ) start [2025-03-24 17:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753623', 'tblTempUsageDetail_20' ) end [2025-03-24 17:16:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 17:16:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 17:16:28] Production.INFO: ==26032== Releasing lock... [2025-03-24 17:16:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 17:16:28] Production.INFO: 81 MB #Memory Used# [2025-03-24 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 14:17:05 [end_date_ymd] => 2025-03-24 17:17:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 14:17:05' and `end` < '2025-03-24 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-03-24 17:17:19] Production.INFO: count ==7064 [2025-03-24 17:17:22] Production.ERROR: pbx CDR StartTime 2025-03-24 14:17:05 - End Time 2025-03-24 17:17:05 [2025-03-24 17:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753628', 'tblTempUsageDetail_20' ) start [2025-03-24 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753628', 'tblTempUsageDetail_20' ) end [2025-03-24 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753628', 'tblTempVendorCDR_20' ) start [2025-03-24 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753628', 'tblTempVendorCDR_20' ) end [2025-03-24 17:17:22] Production.INFO: ProcessCDR(1,14753628,1,1,2) [2025-03-24 17:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753628', 'tblTempUsageDetail_20' ) start [2025-03-24 17:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753628', 'tblTempUsageDetail_20' ) end [2025-03-24 17:17:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 17:17:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 17:17:26] Production.INFO: ==26116== Releasing lock... [2025-03-24 17:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 17:17:26] Production.INFO: 81 MB #Memory Used# [2025-03-24 17:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 14:18:06 [end_date_ymd] => 2025-03-24 17:18:06 [RateCDR] => 1 ) [2025-03-24 17: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-03-24 14:18:06' and `end` < '2025-03-24 17: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-03-24 17:18:19] Production.INFO: count ==7057 [2025-03-24 17:18:22] Production.ERROR: pbx CDR StartTime 2025-03-24 14:18:06 - End Time 2025-03-24 17:18:06 [2025-03-24 17:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 17:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753633', 'tblTempUsageDetail_20' ) start [2025-03-24 17:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753633', 'tblTempUsageDetail_20' ) end [2025-03-24 17:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753633', 'tblTempVendorCDR_20' ) start [2025-03-24 17:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753633', 'tblTempVendorCDR_20' ) end [2025-03-24 17:18:23] Production.INFO: ProcessCDR(1,14753633,1,1,2) [2025-03-24 17:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753633', 'tblTempUsageDetail_20' ) start [2025-03-24 17:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753633', 'tblTempUsageDetail_20' ) end [2025-03-24 17:18:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 17:18:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 17:18:28] Production.INFO: ==26253== Releasing lock... [2025-03-24 17:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 17:18:28] Production.INFO: 80.75 MB #Memory Used# [2025-03-24 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 14:19:05 [end_date_ymd] => 2025-03-24 17:19:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 14:19:05' and `end` < '2025-03-24 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-03-24 17:19:19] Production.INFO: count ==7040 [2025-03-24 17:19:22] Production.ERROR: pbx CDR StartTime 2025-03-24 14:19:05 - End Time 2025-03-24 17:19:05 [2025-03-24 17:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753638', 'tblTempUsageDetail_20' ) start [2025-03-24 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753638', 'tblTempUsageDetail_20' ) end [2025-03-24 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753638', 'tblTempVendorCDR_20' ) start [2025-03-24 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753638', 'tblTempVendorCDR_20' ) end [2025-03-24 17:19:22] Production.INFO: ProcessCDR(1,14753638,1,1,2) [2025-03-24 17:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753638', 'tblTempUsageDetail_20' ) start [2025-03-24 17:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753638', 'tblTempUsageDetail_20' ) end [2025-03-24 17:19:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 17:19:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 17:19:26] Production.INFO: ==26341== Releasing lock... [2025-03-24 17:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 17:19:26] Production.INFO: 80.75 MB #Memory Used# [2025-03-24 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 14:20:06 [end_date_ymd] => 2025-03-24 17:20:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 14:20:06' and `end` < '2025-03-24 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-03-24 17:20:20] Production.INFO: count ==7023 [2025-03-24 17:20:23] Production.ERROR: pbx CDR StartTime 2025-03-24 14:20:06 - End Time 2025-03-24 17:20:06 [2025-03-24 17:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 17:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753644', 'tblTempUsageDetail_20' ) start [2025-03-24 17:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753644', 'tblTempUsageDetail_20' ) end [2025-03-24 17:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753644', 'tblTempVendorCDR_20' ) start [2025-03-24 17:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753644', 'tblTempVendorCDR_20' ) end [2025-03-24 17:20:24] Production.INFO: ProcessCDR(1,14753644,1,1,2) [2025-03-24 17:20:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:20:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753644', 'tblTempUsageDetail_20' ) start [2025-03-24 17:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753644', 'tblTempUsageDetail_20' ) end [2025-03-24 17:20:29] Production.ERROR: pbx prc_insertCDR start [2025-03-24 17:20:29] Production.ERROR: pbx prc_insertCDR end [2025-03-24 17:20:29] Production.INFO: ==26427== Releasing lock... [2025-03-24 17:20:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 17:20:29] Production.INFO: 80.5 MB #Memory Used# [2025-03-24 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 14:21:05 [end_date_ymd] => 2025-03-24 17:21:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 14:21:05' and `end` < '2025-03-24 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-03-24 17:21:18] Production.INFO: count ==6948 [2025-03-24 17:21:21] Production.ERROR: pbx CDR StartTime 2025-03-24 14:21:05 - End Time 2025-03-24 17:21:05 [2025-03-24 17:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753649', 'tblTempUsageDetail_20' ) start [2025-03-24 17:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753649', 'tblTempUsageDetail_20' ) end [2025-03-24 17:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753649', 'tblTempVendorCDR_20' ) start [2025-03-24 17:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753649', 'tblTempVendorCDR_20' ) end [2025-03-24 17:21:22] Production.INFO: ProcessCDR(1,14753649,1,1,2) [2025-03-24 17:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753649', 'tblTempUsageDetail_20' ) start [2025-03-24 17:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753649', 'tblTempUsageDetail_20' ) end [2025-03-24 17:21:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 17:21:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 17:21:27] Production.INFO: ==26518== Releasing lock... [2025-03-24 17:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 17:21:27] Production.INFO: 80 MB #Memory Used# [2025-03-24 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 14:22:05 [end_date_ymd] => 2025-03-24 17:22:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 14:22:05' and `end` < '2025-03-24 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-03-24 17:22:19] Production.INFO: count ==6896 [2025-03-24 17:22:22] Production.ERROR: pbx CDR StartTime 2025-03-24 14:22:05 - End Time 2025-03-24 17:22:05 [2025-03-24 17:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753654', 'tblTempUsageDetail_20' ) start [2025-03-24 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753654', 'tblTempUsageDetail_20' ) end [2025-03-24 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753654', 'tblTempVendorCDR_20' ) start [2025-03-24 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753654', 'tblTempVendorCDR_20' ) end [2025-03-24 17:22:22] Production.INFO: ProcessCDR(1,14753654,1,1,2) [2025-03-24 17:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753654', 'tblTempUsageDetail_20' ) start [2025-03-24 17:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753654', 'tblTempUsageDetail_20' ) end [2025-03-24 17:22:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 17:22:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 17:22:27] Production.INFO: ==26607== Releasing lock... [2025-03-24 17:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 17:22:27] Production.INFO: 79.75 MB #Memory Used# [2025-03-24 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 14:23:05 [end_date_ymd] => 2025-03-24 17:23:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 14:23:05' and `end` < '2025-03-24 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-03-24 17:23:18] Production.INFO: count ==6883 [2025-03-24 17:23:21] Production.ERROR: pbx CDR StartTime 2025-03-24 14:23:05 - End Time 2025-03-24 17:23:05 [2025-03-24 17:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753659', 'tblTempUsageDetail_20' ) start [2025-03-24 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753659', 'tblTempUsageDetail_20' ) end [2025-03-24 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753659', 'tblTempVendorCDR_20' ) start [2025-03-24 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753659', 'tblTempVendorCDR_20' ) end [2025-03-24 17:23:21] Production.INFO: ProcessCDR(1,14753659,1,1,2) [2025-03-24 17:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753659', 'tblTempUsageDetail_20' ) start [2025-03-24 17:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753659', 'tblTempUsageDetail_20' ) end [2025-03-24 17:23:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 17:23:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 17:23:25] Production.INFO: ==26698== Releasing lock... [2025-03-24 17:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 17:23:25] Production.INFO: 79.5 MB #Memory Used# [2025-03-24 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 14:24:05 [end_date_ymd] => 2025-03-24 17:24:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 14:24:05' and `end` < '2025-03-24 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-03-24 17:24:19] Production.INFO: count ==6886 [2025-03-24 17:24:22] Production.ERROR: pbx CDR StartTime 2025-03-24 14:24:05 - End Time 2025-03-24 17:24:05 [2025-03-24 17:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753664', 'tblTempUsageDetail_20' ) start [2025-03-24 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753664', 'tblTempUsageDetail_20' ) end [2025-03-24 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753664', 'tblTempVendorCDR_20' ) start [2025-03-24 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753664', 'tblTempVendorCDR_20' ) end [2025-03-24 17:24:22] Production.INFO: ProcessCDR(1,14753664,1,1,2) [2025-03-24 17:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753664', 'tblTempUsageDetail_20' ) start [2025-03-24 17:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753664', 'tblTempUsageDetail_20' ) end [2025-03-24 17:24:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 17:24:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 17:24:27] Production.INFO: ==26795== Releasing lock... [2025-03-24 17:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 17:24:27] Production.INFO: 79.5 MB #Memory Used# [2025-03-24 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 14:25:05 [end_date_ymd] => 2025-03-24 17:25:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 14:25:05' and `end` < '2025-03-24 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-03-24 17:25:19] Production.INFO: count ==6881 [2025-03-24 17:25:22] Production.ERROR: pbx CDR StartTime 2025-03-24 14:25:05 - End Time 2025-03-24 17:25:05 [2025-03-24 17:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753669', 'tblTempUsageDetail_20' ) start [2025-03-24 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753669', 'tblTempUsageDetail_20' ) end [2025-03-24 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753669', 'tblTempVendorCDR_20' ) start [2025-03-24 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753669', 'tblTempVendorCDR_20' ) end [2025-03-24 17:25:22] Production.INFO: ProcessCDR(1,14753669,1,1,2) [2025-03-24 17:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753669', 'tblTempUsageDetail_20' ) start [2025-03-24 17:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753669', 'tblTempUsageDetail_20' ) end [2025-03-24 17:25:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 17:25:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 17:25:27] Production.INFO: ==26885== Releasing lock... [2025-03-24 17:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 17:25:27] Production.INFO: 79.5 MB #Memory Used# [2025-03-24 17:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 14:26:05 [end_date_ymd] => 2025-03-24 17:26:05 [RateCDR] => 1 ) [2025-03-24 17: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-03-24 14:26:05' and `end` < '2025-03-24 17: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-03-24 17:26:19] Production.INFO: count ==6851 [2025-03-24 17:26:22] Production.ERROR: pbx CDR StartTime 2025-03-24 14:26:05 - End Time 2025-03-24 17:26:05 [2025-03-24 17:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 17:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753674', 'tblTempUsageDetail_20' ) start [2025-03-24 17:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753674', 'tblTempUsageDetail_20' ) end [2025-03-24 17:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753674', 'tblTempVendorCDR_20' ) start [2025-03-24 17:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753674', 'tblTempVendorCDR_20' ) end [2025-03-24 17:26:22] Production.INFO: ProcessCDR(1,14753674,1,1,2) [2025-03-24 17:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753674', 'tblTempUsageDetail_20' ) start [2025-03-24 17:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753674', 'tblTempUsageDetail_20' ) end [2025-03-24 17:26:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 17:26:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 17:26:27] Production.INFO: ==26968== Releasing lock... [2025-03-24 17:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 17:26:27] Production.INFO: 79.25 MB #Memory Used# [2025-03-24 17:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 14:27:06 [end_date_ymd] => 2025-03-24 17:27:06 [RateCDR] => 1 ) [2025-03-24 17: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-03-24 14:27:06' and `end` < '2025-03-24 17: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-03-24 17:27:19] Production.INFO: count ==6837 [2025-03-24 17:27:22] Production.ERROR: pbx CDR StartTime 2025-03-24 14:27:06 - End Time 2025-03-24 17:27:06 [2025-03-24 17:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 17:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753679', 'tblTempUsageDetail_20' ) start [2025-03-24 17:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753679', 'tblTempUsageDetail_20' ) end [2025-03-24 17:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753679', 'tblTempVendorCDR_20' ) start [2025-03-24 17:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753679', 'tblTempVendorCDR_20' ) end [2025-03-24 17:27:23] Production.INFO: ProcessCDR(1,14753679,1,1,2) [2025-03-24 17:27:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:27:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753679', 'tblTempUsageDetail_20' ) start [2025-03-24 17:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753679', 'tblTempUsageDetail_20' ) end [2025-03-24 17:27:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 17:27:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 17:27:28] Production.INFO: ==27057== Releasing lock... [2025-03-24 17:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 17:27:28] Production.INFO: 79.25 MB #Memory Used# [2025-03-24 17:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 14:28:06 [end_date_ymd] => 2025-03-24 17:28:06 [RateCDR] => 1 ) [2025-03-24 17: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-03-24 14:28:06' and `end` < '2025-03-24 17: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-03-24 17:28:19] Production.INFO: count ==6867 [2025-03-24 17:28:22] Production.ERROR: pbx CDR StartTime 2025-03-24 14:28:06 - End Time 2025-03-24 17:28:06 [2025-03-24 17:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 17:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753684', 'tblTempUsageDetail_20' ) start [2025-03-24 17:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753684', 'tblTempUsageDetail_20' ) end [2025-03-24 17:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753684', 'tblTempVendorCDR_20' ) start [2025-03-24 17:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753684', 'tblTempVendorCDR_20' ) end [2025-03-24 17:28:22] Production.INFO: ProcessCDR(1,14753684,1,1,2) [2025-03-24 17:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753684', 'tblTempUsageDetail_20' ) start [2025-03-24 17:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753684', 'tblTempUsageDetail_20' ) end [2025-03-24 17:28:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 17:28:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 17:28:28] Production.INFO: ==27143== Releasing lock... [2025-03-24 17:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 17:28:28] Production.INFO: 79.5 MB #Memory Used# [2025-03-24 17:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 14:29:06 [end_date_ymd] => 2025-03-24 17:29:06 [RateCDR] => 1 ) [2025-03-24 17: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-03-24 14:29:06' and `end` < '2025-03-24 17: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-03-24 17:29:19] Production.INFO: count ==6884 [2025-03-24 17:29:23] Production.ERROR: pbx CDR StartTime 2025-03-24 14:29:06 - End Time 2025-03-24 17:29:06 [2025-03-24 17:29:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 17:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753689', 'tblTempUsageDetail_20' ) start [2025-03-24 17:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753689', 'tblTempUsageDetail_20' ) end [2025-03-24 17:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753689', 'tblTempVendorCDR_20' ) start [2025-03-24 17:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753689', 'tblTempVendorCDR_20' ) end [2025-03-24 17:29:23] Production.INFO: ProcessCDR(1,14753689,1,1,2) [2025-03-24 17:29:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753689', 'tblTempUsageDetail_20' ) start [2025-03-24 17:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753689', 'tblTempUsageDetail_20' ) end [2025-03-24 17:29:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 17:29:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 17:29:28] Production.INFO: ==27232== Releasing lock... [2025-03-24 17:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 17:29:28] Production.INFO: 79.5 MB #Memory Used# [2025-03-24 17:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 14:30:06 [end_date_ymd] => 2025-03-24 17:30:06 [RateCDR] => 1 ) [2025-03-24 17: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-03-24 14:30:06' and `end` < '2025-03-24 17: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-03-24 17:30:19] Production.INFO: count ==6876 [2025-03-24 17:30:22] Production.ERROR: pbx CDR StartTime 2025-03-24 14:30:06 - End Time 2025-03-24 17:30:06 [2025-03-24 17:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 17:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753695', 'tblTempUsageDetail_20' ) start [2025-03-24 17:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753695', 'tblTempUsageDetail_20' ) end [2025-03-24 17:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753695', 'tblTempVendorCDR_20' ) start [2025-03-24 17:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753695', 'tblTempVendorCDR_20' ) end [2025-03-24 17:30:23] Production.INFO: ProcessCDR(1,14753695,1,1,2) [2025-03-24 17:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753695', 'tblTempUsageDetail_20' ) start [2025-03-24 17:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753695', 'tblTempUsageDetail_20' ) end [2025-03-24 17:30:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 17:30:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 17:30:26] Production.INFO: ==27319== Releasing lock... [2025-03-24 17:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 17:30:26] Production.INFO: 79.5 MB #Memory Used# [2025-03-24 17:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 14:31:06 [end_date_ymd] => 2025-03-24 17:31:06 [RateCDR] => 1 ) [2025-03-24 17: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-03-24 14:31:06' and `end` < '2025-03-24 17: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-03-24 17:31:20] Production.INFO: count ==6835 [2025-03-24 17:31:23] Production.ERROR: pbx CDR StartTime 2025-03-24 14:31:06 - End Time 2025-03-24 17:31:06 [2025-03-24 17:31:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 17:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753700', 'tblTempUsageDetail_20' ) start [2025-03-24 17:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753700', 'tblTempUsageDetail_20' ) end [2025-03-24 17:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753700', 'tblTempVendorCDR_20' ) start [2025-03-24 17:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753700', 'tblTempVendorCDR_20' ) end [2025-03-24 17:31:23] Production.INFO: ProcessCDR(1,14753700,1,1,2) [2025-03-24 17:31:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753700', 'tblTempUsageDetail_20' ) start [2025-03-24 17:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753700', 'tblTempUsageDetail_20' ) end [2025-03-24 17:31:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 17:31:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 17:31:26] Production.INFO: ==27409== Releasing lock... [2025-03-24 17:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 17:31:26] Production.INFO: 79.25 MB #Memory Used# [2025-03-24 17:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 14:32:05 [end_date_ymd] => 2025-03-24 17:32:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 14:32:05' and `end` < '2025-03-24 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-03-24 17:32:19] Production.INFO: count ==6818 [2025-03-24 17:32:22] Production.ERROR: pbx CDR StartTime 2025-03-24 14:32:05 - End Time 2025-03-24 17:32:05 [2025-03-24 17:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753705', 'tblTempUsageDetail_20' ) start [2025-03-24 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753705', 'tblTempUsageDetail_20' ) end [2025-03-24 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753705', 'tblTempVendorCDR_20' ) start [2025-03-24 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753705', 'tblTempVendorCDR_20' ) end [2025-03-24 17:32:22] Production.INFO: ProcessCDR(1,14753705,1,1,2) [2025-03-24 17:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753705', 'tblTempUsageDetail_20' ) start [2025-03-24 17:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753705', 'tblTempUsageDetail_20' ) end [2025-03-24 17:32:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 17:32:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 17:32:26] Production.INFO: ==27496== Releasing lock... [2025-03-24 17:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 17:32:26] Production.INFO: 79 MB #Memory Used# [2025-03-24 17:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 14:33:05 [end_date_ymd] => 2025-03-24 17:33:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 14:33:05' and `end` < '2025-03-24 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-03-24 17:33:19] Production.INFO: count ==6790 [2025-03-24 17:33:22] Production.ERROR: pbx CDR StartTime 2025-03-24 14:33:05 - End Time 2025-03-24 17:33:05 [2025-03-24 17:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 17:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753710', 'tblTempUsageDetail_20' ) start [2025-03-24 17:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753710', 'tblTempUsageDetail_20' ) end [2025-03-24 17:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753710', 'tblTempVendorCDR_20' ) start [2025-03-24 17:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753710', 'tblTempVendorCDR_20' ) end [2025-03-24 17:33:22] Production.INFO: ProcessCDR(1,14753710,1,1,2) [2025-03-24 17:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753710', 'tblTempUsageDetail_20' ) start [2025-03-24 17:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753710', 'tblTempUsageDetail_20' ) end [2025-03-24 17:33:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 17:33:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 17:33:27] Production.INFO: ==27583== Releasing lock... [2025-03-24 17:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 17:33:27] Production.INFO: 78.75 MB #Memory Used# [2025-03-24 17:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 14:34:05 [end_date_ymd] => 2025-03-24 17:34:05 [RateCDR] => 1 ) [2025-03-24 17:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 14:34:05' and `end` < '2025-03-24 17:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 17:34:18] Production.INFO: count ==6771 [2025-03-24 17:34:21] Production.ERROR: pbx CDR StartTime 2025-03-24 14:34:05 - End Time 2025-03-24 17:34:05 [2025-03-24 17:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753715', 'tblTempUsageDetail_20' ) start [2025-03-24 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753715', 'tblTempUsageDetail_20' ) end [2025-03-24 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753715', 'tblTempVendorCDR_20' ) start [2025-03-24 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753715', 'tblTempVendorCDR_20' ) end [2025-03-24 17:34:21] Production.INFO: ProcessCDR(1,14753715,1,1,2) [2025-03-24 17:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753715', 'tblTempUsageDetail_20' ) start [2025-03-24 17:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753715', 'tblTempUsageDetail_20' ) end [2025-03-24 17:34:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 17:34:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 17:34:27] Production.INFO: ==27708== Releasing lock... [2025-03-24 17:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 17:34:27] Production.INFO: 78.75 MB #Memory Used# [2025-03-24 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 14:35:05 [end_date_ymd] => 2025-03-24 17:35:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 14:35:05' and `end` < '2025-03-24 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-03-24 17:35:19] Production.INFO: count ==6736 [2025-03-24 17:35:22] Production.ERROR: pbx CDR StartTime 2025-03-24 14:35:05 - End Time 2025-03-24 17:35:05 [2025-03-24 17:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 17:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753720', 'tblTempUsageDetail_20' ) start [2025-03-24 17:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753720', 'tblTempUsageDetail_20' ) end [2025-03-24 17:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753720', 'tblTempVendorCDR_20' ) start [2025-03-24 17:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753720', 'tblTempVendorCDR_20' ) end [2025-03-24 17:35:22] Production.INFO: ProcessCDR(1,14753720,1,1,2) [2025-03-24 17:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753720', 'tblTempUsageDetail_20' ) start [2025-03-24 17:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753720', 'tblTempUsageDetail_20' ) end [2025-03-24 17:35:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 17:35:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 17:35:27] Production.INFO: ==27793== Releasing lock... [2025-03-24 17:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 17:35:27] Production.INFO: 78.5 MB #Memory Used# [2025-03-24 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 14:36:05 [end_date_ymd] => 2025-03-24 17:36:05 [RateCDR] => 1 ) [2025-03-24 17:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 14:36:05' and `end` < '2025-03-24 17:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 17:36:18] Production.INFO: count ==6737 [2025-03-24 17:36:21] Production.ERROR: pbx CDR StartTime 2025-03-24 14:36:05 - End Time 2025-03-24 17:36:05 [2025-03-24 17:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753725', 'tblTempUsageDetail_20' ) start [2025-03-24 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753725', 'tblTempUsageDetail_20' ) end [2025-03-24 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753725', 'tblTempVendorCDR_20' ) start [2025-03-24 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753725', 'tblTempVendorCDR_20' ) end [2025-03-24 17:36:22] Production.INFO: ProcessCDR(1,14753725,1,1,2) [2025-03-24 17:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753725', 'tblTempUsageDetail_20' ) start [2025-03-24 17:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753725', 'tblTempUsageDetail_20' ) end [2025-03-24 17:36:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 17:36:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 17:36:26] Production.INFO: ==27878== Releasing lock... [2025-03-24 17:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 17:36:26] Production.INFO: 78.5 MB #Memory Used# [2025-03-24 17:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 14:37:06 [end_date_ymd] => 2025-03-24 17:37:06 [RateCDR] => 1 ) [2025-03-24 17: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-03-24 14:37:06' and `end` < '2025-03-24 17: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-03-24 17:37:20] Production.INFO: count ==6726 [2025-03-24 17:37:23] Production.ERROR: pbx CDR StartTime 2025-03-24 14:37:06 - End Time 2025-03-24 17:37:06 [2025-03-24 17:37:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 17:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753730', 'tblTempUsageDetail_20' ) start [2025-03-24 17:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753730', 'tblTempUsageDetail_20' ) end [2025-03-24 17:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753730', 'tblTempVendorCDR_20' ) start [2025-03-24 17:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753730', 'tblTempVendorCDR_20' ) end [2025-03-24 17:37:23] Production.INFO: ProcessCDR(1,14753730,1,1,2) [2025-03-24 17:37:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:37:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753730', 'tblTempUsageDetail_20' ) start [2025-03-24 17:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753730', 'tblTempUsageDetail_20' ) end [2025-03-24 17:37:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 17:37:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 17:37:28] Production.INFO: ==27965== Releasing lock... [2025-03-24 17:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 17:37:28] Production.INFO: 78.25 MB #Memory Used# [2025-03-24 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 14:38:05 [end_date_ymd] => 2025-03-24 17:38:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 14:38:05' and `end` < '2025-03-24 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-03-24 17:38:18] Production.INFO: count ==6703 [2025-03-24 17:38:21] Production.ERROR: pbx CDR StartTime 2025-03-24 14:38:05 - End Time 2025-03-24 17:38:05 [2025-03-24 17:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753735', 'tblTempUsageDetail_20' ) start [2025-03-24 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753735', 'tblTempUsageDetail_20' ) end [2025-03-24 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753735', 'tblTempVendorCDR_20' ) start [2025-03-24 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753735', 'tblTempVendorCDR_20' ) end [2025-03-24 17:38:22] Production.INFO: ProcessCDR(1,14753735,1,1,2) [2025-03-24 17:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753735', 'tblTempUsageDetail_20' ) start [2025-03-24 17:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753735', 'tblTempUsageDetail_20' ) end [2025-03-24 17:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 17:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 17:38:26] Production.INFO: ==28056== Releasing lock... [2025-03-24 17:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 17:38:26] Production.INFO: 78.25 MB #Memory Used# [2025-03-24 17:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 14:39:06 [end_date_ymd] => 2025-03-24 17:39:06 [RateCDR] => 1 ) [2025-03-24 17: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-03-24 14:39:06' and `end` < '2025-03-24 17: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-03-24 17:39:19] Production.INFO: count ==6692 [2025-03-24 17:39:22] Production.ERROR: pbx CDR StartTime 2025-03-24 14:39:06 - End Time 2025-03-24 17:39:06 [2025-03-24 17:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 17:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753740', 'tblTempUsageDetail_20' ) start [2025-03-24 17:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753740', 'tblTempUsageDetail_20' ) end [2025-03-24 17:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753740', 'tblTempVendorCDR_20' ) start [2025-03-24 17:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753740', 'tblTempVendorCDR_20' ) end [2025-03-24 17:39:22] Production.INFO: ProcessCDR(1,14753740,1,1,2) [2025-03-24 17:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753740', 'tblTempUsageDetail_20' ) start [2025-03-24 17:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753740', 'tblTempUsageDetail_20' ) end [2025-03-24 17:39:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 17:39:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 17:39:26] Production.INFO: ==28142== Releasing lock... [2025-03-24 17:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 17:39:26] Production.INFO: 78 MB #Memory Used# [2025-03-24 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 14:40:06 [end_date_ymd] => 2025-03-24 17:40:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 14:40:06' and `end` < '2025-03-24 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-03-24 17:40:19] Production.INFO: count ==6705 [2025-03-24 17:40:22] Production.ERROR: pbx CDR StartTime 2025-03-24 14:40:06 - End Time 2025-03-24 17:40:06 [2025-03-24 17:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753745', 'tblTempUsageDetail_20' ) start [2025-03-24 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753745', 'tblTempUsageDetail_20' ) end [2025-03-24 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753745', 'tblTempVendorCDR_20' ) start [2025-03-24 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753745', 'tblTempVendorCDR_20' ) end [2025-03-24 17:40:22] Production.INFO: ProcessCDR(1,14753745,1,1,2) [2025-03-24 17:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753745', 'tblTempUsageDetail_20' ) start [2025-03-24 17:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753745', 'tblTempUsageDetail_20' ) end [2025-03-24 17:40:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 17:40:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 17:40:27] Production.INFO: ==28230== Releasing lock... [2025-03-24 17:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 17:40:27] Production.INFO: 78.25 MB #Memory Used# [2025-03-24 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 14:41:05 [end_date_ymd] => 2025-03-24 17:41:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 14:41:05' and `end` < '2025-03-24 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-03-24 17:41:19] Production.INFO: count ==6694 [2025-03-24 17:41:22] Production.ERROR: pbx CDR StartTime 2025-03-24 14:41:05 - End Time 2025-03-24 17:41:05 [2025-03-24 17:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753751', 'tblTempUsageDetail_20' ) start [2025-03-24 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753751', 'tblTempUsageDetail_20' ) end [2025-03-24 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753751', 'tblTempVendorCDR_20' ) start [2025-03-24 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753751', 'tblTempVendorCDR_20' ) end [2025-03-24 17:41:22] Production.INFO: ProcessCDR(1,14753751,1,1,2) [2025-03-24 17:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753751', 'tblTempUsageDetail_20' ) start [2025-03-24 17:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753751', 'tblTempUsageDetail_20' ) end [2025-03-24 17:41:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 17:41:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 17:41:27] Production.INFO: ==28323== Releasing lock... [2025-03-24 17:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 17:41:27] Production.INFO: 78 MB #Memory Used# [2025-03-24 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 14:42:05 [end_date_ymd] => 2025-03-24 17:42:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 14:42:05' and `end` < '2025-03-24 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-03-24 17:42:19] Production.INFO: count ==6688 [2025-03-24 17:42:22] Production.ERROR: pbx CDR StartTime 2025-03-24 14:42:05 - End Time 2025-03-24 17:42:05 [2025-03-24 17:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 17:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753756', 'tblTempUsageDetail_20' ) start [2025-03-24 17:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753756', 'tblTempUsageDetail_20' ) end [2025-03-24 17:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753756', 'tblTempVendorCDR_20' ) start [2025-03-24 17:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753756', 'tblTempVendorCDR_20' ) end [2025-03-24 17:42:22] Production.INFO: ProcessCDR(1,14753756,1,1,2) [2025-03-24 17:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753756', 'tblTempUsageDetail_20' ) start [2025-03-24 17:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753756', 'tblTempUsageDetail_20' ) end [2025-03-24 17:42:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 17:42:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 17:42:27] Production.INFO: ==28408== Releasing lock... [2025-03-24 17:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 17:42:27] Production.INFO: 78 MB #Memory Used# [2025-03-24 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 14:43:05 [end_date_ymd] => 2025-03-24 17:43:05 [RateCDR] => 1 ) [2025-03-24 17:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 14:43:05' and `end` < '2025-03-24 17:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 17:43:19] Production.INFO: count ==6671 [2025-03-24 17:43:21] Production.ERROR: pbx CDR StartTime 2025-03-24 14:43:05 - End Time 2025-03-24 17:43:05 [2025-03-24 17:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753761', 'tblTempUsageDetail_20' ) start [2025-03-24 17:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753761', 'tblTempUsageDetail_20' ) end [2025-03-24 17:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753761', 'tblTempVendorCDR_20' ) start [2025-03-24 17:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753761', 'tblTempVendorCDR_20' ) end [2025-03-24 17:43:22] Production.INFO: ProcessCDR(1,14753761,1,1,2) [2025-03-24 17:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753761', 'tblTempUsageDetail_20' ) start [2025-03-24 17:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753761', 'tblTempUsageDetail_20' ) end [2025-03-24 17:43:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 17:43:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 17:43:25] Production.INFO: ==28516== Releasing lock... [2025-03-24 17:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 17:43:25] Production.INFO: 78 MB #Memory Used# [2025-03-24 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 14:44:05 [end_date_ymd] => 2025-03-24 17:44:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 14:44:05' and `end` < '2025-03-24 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-03-24 17:44:19] Production.INFO: count ==6650 [2025-03-24 17:44:21] Production.ERROR: pbx CDR StartTime 2025-03-24 14:44:05 - End Time 2025-03-24 17:44:05 [2025-03-24 17:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753766', 'tblTempUsageDetail_20' ) start [2025-03-24 17:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753766', 'tblTempUsageDetail_20' ) end [2025-03-24 17:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753766', 'tblTempVendorCDR_20' ) start [2025-03-24 17:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753766', 'tblTempVendorCDR_20' ) end [2025-03-24 17:44:22] Production.INFO: ProcessCDR(1,14753766,1,1,2) [2025-03-24 17:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753766', 'tblTempUsageDetail_20' ) start [2025-03-24 17:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753766', 'tblTempUsageDetail_20' ) end [2025-03-24 17:44:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 17:44:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 17:44:25] Production.INFO: ==28619== Releasing lock... [2025-03-24 17:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 17:44:25] Production.INFO: 77.75 MB #Memory Used# [2025-03-24 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 14:45:05 [end_date_ymd] => 2025-03-24 17:45:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 14:45:05' and `end` < '2025-03-24 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-03-24 17:45:19] Production.INFO: count ==6653 [2025-03-24 17:45:22] Production.ERROR: pbx CDR StartTime 2025-03-24 14:45:05 - End Time 2025-03-24 17:45:05 [2025-03-24 17:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 17:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753771', 'tblTempUsageDetail_20' ) start [2025-03-24 17:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753771', 'tblTempUsageDetail_20' ) end [2025-03-24 17:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753771', 'tblTempVendorCDR_20' ) start [2025-03-24 17:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753771', 'tblTempVendorCDR_20' ) end [2025-03-24 17:45:22] Production.INFO: ProcessCDR(1,14753771,1,1,2) [2025-03-24 17:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753771', 'tblTempUsageDetail_20' ) start [2025-03-24 17:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753771', 'tblTempUsageDetail_20' ) end [2025-03-24 17:45:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 17:45:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 17:45:27] Production.INFO: ==28721== Releasing lock... [2025-03-24 17:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 17:45:27] Production.INFO: 77.75 MB #Memory Used# [2025-03-24 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 14:46:05 [end_date_ymd] => 2025-03-24 17:46:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 14:46:05' and `end` < '2025-03-24 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-03-24 17:46:18] Production.INFO: count ==6653 [2025-03-24 17:46:21] Production.ERROR: pbx CDR StartTime 2025-03-24 14:46:05 - End Time 2025-03-24 17:46:05 [2025-03-24 17:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753776', 'tblTempUsageDetail_20' ) start [2025-03-24 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753776', 'tblTempUsageDetail_20' ) end [2025-03-24 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753776', 'tblTempVendorCDR_20' ) start [2025-03-24 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753776', 'tblTempVendorCDR_20' ) end [2025-03-24 17:46:22] Production.INFO: ProcessCDR(1,14753776,1,1,2) [2025-03-24 17:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753776', 'tblTempUsageDetail_20' ) start [2025-03-24 17:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753776', 'tblTempUsageDetail_20' ) end [2025-03-24 17:46:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 17:46:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 17:46:27] Production.INFO: ==28828== Releasing lock... [2025-03-24 17:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 17:46:27] Production.INFO: 77.75 MB #Memory Used# [2025-03-24 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 14:47:05 [end_date_ymd] => 2025-03-24 17:47:05 [RateCDR] => 1 ) [2025-03-24 17:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 14:47:05' and `end` < '2025-03-24 17:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 17:47:19] Production.INFO: count ==6627 [2025-03-24 17:47:22] Production.ERROR: pbx CDR StartTime 2025-03-24 14:47:05 - End Time 2025-03-24 17:47:05 [2025-03-24 17:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 17:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753781', 'tblTempUsageDetail_20' ) start [2025-03-24 17:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753781', 'tblTempUsageDetail_20' ) end [2025-03-24 17:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753781', 'tblTempVendorCDR_20' ) start [2025-03-24 17:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753781', 'tblTempVendorCDR_20' ) end [2025-03-24 17:47:22] Production.INFO: ProcessCDR(1,14753781,1,1,2) [2025-03-24 17:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753781', 'tblTempUsageDetail_20' ) start [2025-03-24 17:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753781', 'tblTempUsageDetail_20' ) end [2025-03-24 17:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 17:47:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 17:47:26] Production.INFO: ==28931== Releasing lock... [2025-03-24 17:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 17:47:26] Production.INFO: 77.5 MB #Memory Used# [2025-03-24 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 14:48:05 [end_date_ymd] => 2025-03-24 17:48:05 [RateCDR] => 1 ) [2025-03-24 17:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 14:48:05' and `end` < '2025-03-24 17:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 17:48:19] Production.INFO: count ==6613 [2025-03-24 17:48:22] Production.ERROR: pbx CDR StartTime 2025-03-24 14:48:05 - End Time 2025-03-24 17:48:05 [2025-03-24 17:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 17:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753786', 'tblTempUsageDetail_20' ) start [2025-03-24 17:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753786', 'tblTempUsageDetail_20' ) end [2025-03-24 17:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753786', 'tblTempVendorCDR_20' ) start [2025-03-24 17:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753786', 'tblTempVendorCDR_20' ) end [2025-03-24 17:48:22] Production.INFO: ProcessCDR(1,14753786,1,1,2) [2025-03-24 17:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753786', 'tblTempUsageDetail_20' ) start [2025-03-24 17:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753786', 'tblTempUsageDetail_20' ) end [2025-03-24 17:48:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 17:48:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 17:48:27] Production.INFO: ==29034== Releasing lock... [2025-03-24 17:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 17:48:27] Production.INFO: 77.5 MB #Memory Used# [2025-03-24 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 14:49:05 [end_date_ymd] => 2025-03-24 17:49:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 14:49:05' and `end` < '2025-03-24 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-03-24 17:49:19] Production.INFO: count ==6595 [2025-03-24 17:49:22] Production.ERROR: pbx CDR StartTime 2025-03-24 14:49:05 - End Time 2025-03-24 17:49:05 [2025-03-24 17:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 17:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753791', 'tblTempUsageDetail_20' ) start [2025-03-24 17:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753791', 'tblTempUsageDetail_20' ) end [2025-03-24 17:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753791', 'tblTempVendorCDR_20' ) start [2025-03-24 17:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753791', 'tblTempVendorCDR_20' ) end [2025-03-24 17:49:22] Production.INFO: ProcessCDR(1,14753791,1,1,2) [2025-03-24 17:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753791', 'tblTempUsageDetail_20' ) start [2025-03-24 17:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753791', 'tblTempUsageDetail_20' ) end [2025-03-24 17:49:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 17:49:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 17:49:26] Production.INFO: ==29172== Releasing lock... [2025-03-24 17:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 17:49:26] Production.INFO: 77.25 MB #Memory Used# [2025-03-24 17:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 14:50:07 [end_date_ymd] => 2025-03-24 17:50:07 [RateCDR] => 1 ) [2025-03-24 17:50: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-03-24 14:50:07' and `end` < '2025-03-24 17:50: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-03-24 17:50:20] Production.INFO: count ==6582 [2025-03-24 17:50:23] Production.ERROR: pbx CDR StartTime 2025-03-24 14:50:07 - End Time 2025-03-24 17:50:07 [2025-03-24 17:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 17:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753797', 'tblTempUsageDetail_20' ) start [2025-03-24 17:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753797', 'tblTempUsageDetail_20' ) end [2025-03-24 17:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753797', 'tblTempVendorCDR_20' ) start [2025-03-24 17:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753797', 'tblTempVendorCDR_20' ) end [2025-03-24 17:50:24] Production.INFO: ProcessCDR(1,14753797,1,1,2) [2025-03-24 17:50:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:50:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753797', 'tblTempUsageDetail_20' ) start [2025-03-24 17:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753797', 'tblTempUsageDetail_20' ) end [2025-03-24 17:50:29] Production.ERROR: pbx prc_insertCDR start [2025-03-24 17:50:29] Production.ERROR: pbx prc_insertCDR end [2025-03-24 17:50:29] Production.INFO: ==29284== Releasing lock... [2025-03-24 17:50:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 17:50:29] Production.INFO: 77.25 MB #Memory Used# [2025-03-24 17:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 14:51:05 [end_date_ymd] => 2025-03-24 17:51:05 [RateCDR] => 1 ) [2025-03-24 17: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-03-24 14:51:05' and `end` < '2025-03-24 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-03-24 17:51:19] Production.INFO: count ==6510 [2025-03-24 17:51:22] Production.ERROR: pbx CDR StartTime 2025-03-24 14:51:05 - End Time 2025-03-24 17:51:05 [2025-03-24 17:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 17:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753802', 'tblTempUsageDetail_20' ) start [2025-03-24 17:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753802', 'tblTempUsageDetail_20' ) end [2025-03-24 17:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753802', 'tblTempVendorCDR_20' ) start [2025-03-24 17:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753802', 'tblTempVendorCDR_20' ) end [2025-03-24 17:51:22] Production.INFO: ProcessCDR(1,14753802,1,1,2) [2025-03-24 17:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753802', 'tblTempUsageDetail_20' ) start [2025-03-24 17:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753802', 'tblTempUsageDetail_20' ) end [2025-03-24 17:51:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 17:51:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 17:51:27] Production.INFO: ==29395== Releasing lock... [2025-03-24 17:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 17:51:27] Production.INFO: 76.75 MB #Memory Used# [2025-03-24 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 14:52:05 [end_date_ymd] => 2025-03-24 17:52:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 14:52:05' and `end` < '2025-03-24 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-03-24 17:52:19] Production.INFO: count ==6497 [2025-03-24 17:52:21] Production.ERROR: pbx CDR StartTime 2025-03-24 14:52:05 - End Time 2025-03-24 17:52:05 [2025-03-24 17:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753807', 'tblTempUsageDetail_20' ) start [2025-03-24 17:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753807', 'tblTempUsageDetail_20' ) end [2025-03-24 17:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753807', 'tblTempVendorCDR_20' ) start [2025-03-24 17:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753807', 'tblTempVendorCDR_20' ) end [2025-03-24 17:52:22] Production.INFO: ProcessCDR(1,14753807,1,1,2) [2025-03-24 17:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753807', 'tblTempUsageDetail_20' ) start [2025-03-24 17:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753807', 'tblTempUsageDetail_20' ) end [2025-03-24 17:52:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 17:52:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 17:52:27] Production.INFO: ==29499== Releasing lock... [2025-03-24 17:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 17:52:27] Production.INFO: 76.5 MB #Memory Used# [2025-03-24 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 14:53:05 [end_date_ymd] => 2025-03-24 17:53:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 14:53:05' and `end` < '2025-03-24 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-03-24 17:53:18] Production.INFO: count ==6490 [2025-03-24 17:53:21] Production.ERROR: pbx CDR StartTime 2025-03-24 14:53:05 - End Time 2025-03-24 17:53:05 [2025-03-24 17:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753812', 'tblTempUsageDetail_20' ) start [2025-03-24 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753812', 'tblTempUsageDetail_20' ) end [2025-03-24 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753812', 'tblTempVendorCDR_20' ) start [2025-03-24 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753812', 'tblTempVendorCDR_20' ) end [2025-03-24 17:53:21] Production.INFO: ProcessCDR(1,14753812,1,1,2) [2025-03-24 17:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753812', 'tblTempUsageDetail_20' ) start [2025-03-24 17:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753812', 'tblTempUsageDetail_20' ) end [2025-03-24 17:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 17:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 17:53:26] Production.INFO: ==29601== Releasing lock... [2025-03-24 17:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 17:53:26] Production.INFO: 76.5 MB #Memory Used# [2025-03-24 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 14:54:05 [end_date_ymd] => 2025-03-24 17:54:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 14:54:05' and `end` < '2025-03-24 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-03-24 17:54:19] Production.INFO: count ==6477 [2025-03-24 17:54:22] Production.ERROR: pbx CDR StartTime 2025-03-24 14:54:05 - End Time 2025-03-24 17:54:05 [2025-03-24 17:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 17:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753817', 'tblTempUsageDetail_20' ) start [2025-03-24 17:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753817', 'tblTempUsageDetail_20' ) end [2025-03-24 17:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753817', 'tblTempVendorCDR_20' ) start [2025-03-24 17:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753817', 'tblTempVendorCDR_20' ) end [2025-03-24 17:54:22] Production.INFO: ProcessCDR(1,14753817,1,1,2) [2025-03-24 17:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753817', 'tblTempUsageDetail_20' ) start [2025-03-24 17:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753817', 'tblTempUsageDetail_20' ) end [2025-03-24 17:54:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 17:54:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 17:54:25] Production.INFO: ==29716== Releasing lock... [2025-03-24 17:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 17:54:25] Production.INFO: 76.5 MB #Memory Used# [2025-03-24 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 14:55:05 [end_date_ymd] => 2025-03-24 17:55:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 14:55:05' and `end` < '2025-03-24 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-03-24 17:55:19] Production.INFO: count ==6482 [2025-03-24 17:55:22] Production.ERROR: pbx CDR StartTime 2025-03-24 14:55:05 - End Time 2025-03-24 17:55:05 [2025-03-24 17:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 17:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753822', 'tblTempUsageDetail_20' ) start [2025-03-24 17:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753822', 'tblTempUsageDetail_20' ) end [2025-03-24 17:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753822', 'tblTempVendorCDR_20' ) start [2025-03-24 17:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753822', 'tblTempVendorCDR_20' ) end [2025-03-24 17:55:22] Production.INFO: ProcessCDR(1,14753822,1,1,2) [2025-03-24 17:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753822', 'tblTempUsageDetail_20' ) start [2025-03-24 17:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753822', 'tblTempUsageDetail_20' ) end [2025-03-24 17:55:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 17:55:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 17:55:27] Production.INFO: ==29815== Releasing lock... [2025-03-24 17:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 17:55:27] Production.INFO: 76.5 MB #Memory Used# [2025-03-24 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 14:56:05 [end_date_ymd] => 2025-03-24 17:56:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 14:56:05' and `end` < '2025-03-24 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-03-24 17:56:19] Production.INFO: count ==6481 [2025-03-24 17:56:22] Production.ERROR: pbx CDR StartTime 2025-03-24 14:56:05 - End Time 2025-03-24 17:56:05 [2025-03-24 17:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 17:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753827', 'tblTempUsageDetail_20' ) start [2025-03-24 17:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753827', 'tblTempUsageDetail_20' ) end [2025-03-24 17:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753827', 'tblTempVendorCDR_20' ) start [2025-03-24 17:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753827', 'tblTempVendorCDR_20' ) end [2025-03-24 17:56:22] Production.INFO: ProcessCDR(1,14753827,1,1,2) [2025-03-24 17:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753827', 'tblTempUsageDetail_20' ) start [2025-03-24 17:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753827', 'tblTempUsageDetail_20' ) end [2025-03-24 17:56:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 17:56:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 17:56:27] Production.INFO: ==29919== Releasing lock... [2025-03-24 17:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 17:56:27] Production.INFO: 76.5 MB #Memory Used# [2025-03-24 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 14:57:05 [end_date_ymd] => 2025-03-24 17:57:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 14:57:05' and `end` < '2025-03-24 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-03-24 17:57:18] Production.INFO: count ==6492 [2025-03-24 17:57:21] Production.ERROR: pbx CDR StartTime 2025-03-24 14:57:05 - End Time 2025-03-24 17:57:05 [2025-03-24 17:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753832', 'tblTempUsageDetail_20' ) start [2025-03-24 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753832', 'tblTempUsageDetail_20' ) end [2025-03-24 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753832', 'tblTempVendorCDR_20' ) start [2025-03-24 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753832', 'tblTempVendorCDR_20' ) end [2025-03-24 17:57:21] Production.INFO: ProcessCDR(1,14753832,1,1,2) [2025-03-24 17:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753832', 'tblTempUsageDetail_20' ) start [2025-03-24 17:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753832', 'tblTempUsageDetail_20' ) end [2025-03-24 17:57:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 17:57:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 17:57:25] Production.INFO: ==30024== Releasing lock... [2025-03-24 17:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 17:57:25] Production.INFO: 76.5 MB #Memory Used# [2025-03-24 17:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 14:58:06 [end_date_ymd] => 2025-03-24 17:58:06 [RateCDR] => 1 ) [2025-03-24 17:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 14:58:06' and `end` < '2025-03-24 17:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 17:58:19] Production.INFO: count ==6464 [2025-03-24 17:58:22] Production.ERROR: pbx CDR StartTime 2025-03-24 14:58:06 - End Time 2025-03-24 17:58:06 [2025-03-24 17:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 17:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753837', 'tblTempUsageDetail_20' ) start [2025-03-24 17:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753837', 'tblTempUsageDetail_20' ) end [2025-03-24 17:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753837', 'tblTempVendorCDR_20' ) start [2025-03-24 17:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753837', 'tblTempVendorCDR_20' ) end [2025-03-24 17:58:22] Production.INFO: ProcessCDR(1,14753837,1,1,2) [2025-03-24 17:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753837', 'tblTempUsageDetail_20' ) start [2025-03-24 17:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753837', 'tblTempUsageDetail_20' ) end [2025-03-24 17:58:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 17:58:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 17:58:27] Production.INFO: ==30129== Releasing lock... [2025-03-24 17:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 17:58:27] Production.INFO: 76.25 MB #Memory Used# [2025-03-24 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 14:59:05 [end_date_ymd] => 2025-03-24 17:59:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 14:59:05' and `end` < '2025-03-24 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-03-24 17:59:18] Production.INFO: count ==6445 [2025-03-24 17:59:21] Production.ERROR: pbx CDR StartTime 2025-03-24 14:59:05 - End Time 2025-03-24 17:59:05 [2025-03-24 17:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753842', 'tblTempUsageDetail_20' ) start [2025-03-24 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753842', 'tblTempUsageDetail_20' ) end [2025-03-24 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753842', 'tblTempVendorCDR_20' ) start [2025-03-24 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753842', 'tblTempVendorCDR_20' ) end [2025-03-24 17:59:21] Production.INFO: ProcessCDR(1,14753842,1,1,2) [2025-03-24 17:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 17:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 17:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753842', 'tblTempUsageDetail_20' ) start [2025-03-24 17:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753842', 'tblTempUsageDetail_20' ) end [2025-03-24 17:59:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 17:59:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 17:59:26] Production.INFO: ==30232== Releasing lock... [2025-03-24 17:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 17:59:26] Production.INFO: 76.25 MB #Memory Used# [2025-03-24 18:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 15:00:05 [end_date_ymd] => 2025-03-24 18:00:05 [RateCDR] => 1 ) [2025-03-24 18:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 15:00:05' and `end` < '2025-03-24 18:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 18:00:19] Production.INFO: count ==6423 [2025-03-24 18:00:22] Production.ERROR: pbx CDR StartTime 2025-03-24 15:00:05 - End Time 2025-03-24 18:00:05 [2025-03-24 18:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753848', 'tblTempUsageDetail_20' ) start [2025-03-24 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753848', 'tblTempUsageDetail_20' ) end [2025-03-24 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753848', 'tblTempVendorCDR_20' ) start [2025-03-24 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753848', 'tblTempVendorCDR_20' ) end [2025-03-24 18:00:22] Production.INFO: ProcessCDR(1,14753848,1,1,2) [2025-03-24 18:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753848', 'tblTempUsageDetail_20' ) start [2025-03-24 18:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753848', 'tblTempUsageDetail_20' ) end [2025-03-24 18:00:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 18:00:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 18:00:27] Production.INFO: ==30336== Releasing lock... [2025-03-24 18:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 18:00:27] Production.INFO: 76 MB #Memory Used# [2025-03-24 18:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 15:01:06 [end_date_ymd] => 2025-03-24 18:01:06 [RateCDR] => 1 ) [2025-03-24 18:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 15:01:06' and `end` < '2025-03-24 18:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 18:01:20] Production.INFO: count ==6389 [2025-03-24 18:01:23] Production.ERROR: pbx CDR StartTime 2025-03-24 15:01:06 - End Time 2025-03-24 18:01:06 [2025-03-24 18:01:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 18:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753853', 'tblTempUsageDetail_20' ) start [2025-03-24 18:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753853', 'tblTempUsageDetail_20' ) end [2025-03-24 18:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753853', 'tblTempVendorCDR_20' ) start [2025-03-24 18:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753853', 'tblTempVendorCDR_20' ) end [2025-03-24 18:01:23] Production.INFO: ProcessCDR(1,14753853,1,1,2) [2025-03-24 18:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:01:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:01:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:01:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753853', 'tblTempUsageDetail_20' ) start [2025-03-24 18:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753853', 'tblTempUsageDetail_20' ) end [2025-03-24 18:01:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 18:01:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 18:01:28] Production.INFO: ==30457== Releasing lock... [2025-03-24 18:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 18:01:28] Production.INFO: 75.75 MB #Memory Used# [2025-03-24 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 15:02:05 [end_date_ymd] => 2025-03-24 18:02:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 15:02:05' and `end` < '2025-03-24 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-03-24 18:02:19] Production.INFO: count ==6373 [2025-03-24 18:02:22] Production.ERROR: pbx CDR StartTime 2025-03-24 15:02:05 - End Time 2025-03-24 18:02:05 [2025-03-24 18:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 18:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753858', 'tblTempUsageDetail_20' ) start [2025-03-24 18:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753858', 'tblTempUsageDetail_20' ) end [2025-03-24 18:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753858', 'tblTempVendorCDR_20' ) start [2025-03-24 18:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753858', 'tblTempVendorCDR_20' ) end [2025-03-24 18:02:22] Production.INFO: ProcessCDR(1,14753858,1,1,2) [2025-03-24 18:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753858', 'tblTempUsageDetail_20' ) start [2025-03-24 18:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753858', 'tblTempUsageDetail_20' ) end [2025-03-24 18:02:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 18:02:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 18:02:26] Production.INFO: ==30565== Releasing lock... [2025-03-24 18:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 18:02:26] Production.INFO: 75.75 MB #Memory Used# [2025-03-24 18:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 15:03:06 [end_date_ymd] => 2025-03-24 18:03:06 [RateCDR] => 1 ) [2025-03-24 18:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 15:03:06' and `end` < '2025-03-24 18:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 18:03:20] Production.INFO: count ==6350 [2025-03-24 18:03:23] Production.ERROR: pbx CDR StartTime 2025-03-24 15:03:06 - End Time 2025-03-24 18:03:06 [2025-03-24 18:03:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 18:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753863', 'tblTempUsageDetail_20' ) start [2025-03-24 18:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753863', 'tblTempUsageDetail_20' ) end [2025-03-24 18:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753863', 'tblTempVendorCDR_20' ) start [2025-03-24 18:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753863', 'tblTempVendorCDR_20' ) end [2025-03-24 18:03:23] Production.INFO: ProcessCDR(1,14753863,1,1,2) [2025-03-24 18:03:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753863', 'tblTempUsageDetail_20' ) start [2025-03-24 18:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753863', 'tblTempUsageDetail_20' ) end [2025-03-24 18:03:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 18:03:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 18:03:28] Production.INFO: ==30672== Releasing lock... [2025-03-24 18:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 18:03:28] Production.INFO: 75.5 MB #Memory Used# [2025-03-24 18:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 15:04:06 [end_date_ymd] => 2025-03-24 18:04:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 15:04:06' and `end` < '2025-03-24 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-03-24 18:04:19] Production.INFO: count ==6338 [2025-03-24 18:04:22] Production.ERROR: pbx CDR StartTime 2025-03-24 15:04:06 - End Time 2025-03-24 18:04:06 [2025-03-24 18:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 18:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753868', 'tblTempUsageDetail_20' ) start [2025-03-24 18:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753868', 'tblTempUsageDetail_20' ) end [2025-03-24 18:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753868', 'tblTempVendorCDR_20' ) start [2025-03-24 18:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753868', 'tblTempVendorCDR_20' ) end [2025-03-24 18:04:22] Production.INFO: ProcessCDR(1,14753868,1,1,2) [2025-03-24 18:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753868', 'tblTempUsageDetail_20' ) start [2025-03-24 18:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753868', 'tblTempUsageDetail_20' ) end [2025-03-24 18:04:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 18:04:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 18:04:25] Production.INFO: ==30779== Releasing lock... [2025-03-24 18:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 18:04:25] Production.INFO: 75.5 MB #Memory Used# [2025-03-24 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 15:05:05 [end_date_ymd] => 2025-03-24 18:05:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 15:05:05' and `end` < '2025-03-24 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-03-24 18:05:19] Production.INFO: count ==6338 [2025-03-24 18:05:21] Production.ERROR: pbx CDR StartTime 2025-03-24 15:05:05 - End Time 2025-03-24 18:05:05 [2025-03-24 18:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753873', 'tblTempUsageDetail_20' ) start [2025-03-24 18:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753873', 'tblTempUsageDetail_20' ) end [2025-03-24 18:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753873', 'tblTempVendorCDR_20' ) start [2025-03-24 18:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753873', 'tblTempVendorCDR_20' ) end [2025-03-24 18:05:22] Production.INFO: ProcessCDR(1,14753873,1,1,2) [2025-03-24 18:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753873', 'tblTempUsageDetail_20' ) start [2025-03-24 18:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753873', 'tblTempUsageDetail_20' ) end [2025-03-24 18:05:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 18:05:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 18:05:27] Production.INFO: ==30928== Releasing lock... [2025-03-24 18:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 18:05:27] Production.INFO: 75.5 MB #Memory Used# [2025-03-24 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 15:06:05 [end_date_ymd] => 2025-03-24 18:06:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 15:06:05' and `end` < '2025-03-24 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-03-24 18:06:18] Production.INFO: count ==6330 [2025-03-24 18:06:21] Production.ERROR: pbx CDR StartTime 2025-03-24 15:06:05 - End Time 2025-03-24 18:06:05 [2025-03-24 18:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753878', 'tblTempUsageDetail_20' ) start [2025-03-24 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753878', 'tblTempUsageDetail_20' ) end [2025-03-24 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753878', 'tblTempVendorCDR_20' ) start [2025-03-24 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753878', 'tblTempVendorCDR_20' ) end [2025-03-24 18:06:21] Production.INFO: ProcessCDR(1,14753878,1,1,2) [2025-03-24 18:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753878', 'tblTempUsageDetail_20' ) start [2025-03-24 18:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753878', 'tblTempUsageDetail_20' ) end [2025-03-24 18:06:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 18:06:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 18:06:26] Production.INFO: ==31033== Releasing lock... [2025-03-24 18:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 18:06:26] Production.INFO: 75.25 MB #Memory Used# [2025-03-24 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 15:07:05 [end_date_ymd] => 2025-03-24 18:07:05 [RateCDR] => 1 ) [2025-03-24 18:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 15:07:05' and `end` < '2025-03-24 18:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 18:07:19] Production.INFO: count ==6315 [2025-03-24 18:07:22] Production.ERROR: pbx CDR StartTime 2025-03-24 15:07:05 - End Time 2025-03-24 18:07:05 [2025-03-24 18:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 18:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753883', 'tblTempUsageDetail_20' ) start [2025-03-24 18:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753883', 'tblTempUsageDetail_20' ) end [2025-03-24 18:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753883', 'tblTempVendorCDR_20' ) start [2025-03-24 18:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753883', 'tblTempVendorCDR_20' ) end [2025-03-24 18:07:22] Production.INFO: ProcessCDR(1,14753883,1,1,2) [2025-03-24 18:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753883', 'tblTempUsageDetail_20' ) start [2025-03-24 18:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753883', 'tblTempUsageDetail_20' ) end [2025-03-24 18:07:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 18:07:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 18:07:27] Production.INFO: ==31148== Releasing lock... [2025-03-24 18:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 18:07:27] Production.INFO: 75.25 MB #Memory Used# [2025-03-24 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 15:08:05 [end_date_ymd] => 2025-03-24 18:08:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 15:08:05' and `end` < '2025-03-24 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-03-24 18:08:19] Production.INFO: count ==6313 [2025-03-24 18:08:21] Production.ERROR: pbx CDR StartTime 2025-03-24 15:08:05 - End Time 2025-03-24 18:08:05 [2025-03-24 18:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753888', 'tblTempUsageDetail_20' ) start [2025-03-24 18:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753888', 'tblTempUsageDetail_20' ) end [2025-03-24 18:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753888', 'tblTempVendorCDR_20' ) start [2025-03-24 18:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753888', 'tblTempVendorCDR_20' ) end [2025-03-24 18:08:22] Production.INFO: ProcessCDR(1,14753888,1,1,2) [2025-03-24 18:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753888', 'tblTempUsageDetail_20' ) start [2025-03-24 18:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753888', 'tblTempUsageDetail_20' ) end [2025-03-24 18:08:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 18:08:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 18:08:26] Production.INFO: ==31236== Releasing lock... [2025-03-24 18:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 18:08:26] Production.INFO: 75.25 MB #Memory Used# [2025-03-24 18:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 15:09:06 [end_date_ymd] => 2025-03-24 18:09:06 [RateCDR] => 1 ) [2025-03-24 18:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 15:09:06' and `end` < '2025-03-24 18:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 18:09:19] Production.INFO: count ==6298 [2025-03-24 18:09:22] Production.ERROR: pbx CDR StartTime 2025-03-24 15:09:06 - End Time 2025-03-24 18:09:06 [2025-03-24 18:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 18:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753893', 'tblTempUsageDetail_20' ) start [2025-03-24 18:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753893', 'tblTempUsageDetail_20' ) end [2025-03-24 18:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753893', 'tblTempVendorCDR_20' ) start [2025-03-24 18:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753893', 'tblTempVendorCDR_20' ) end [2025-03-24 18:09:22] Production.INFO: ProcessCDR(1,14753893,1,1,2) [2025-03-24 18:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753893', 'tblTempUsageDetail_20' ) start [2025-03-24 18:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753893', 'tblTempUsageDetail_20' ) end [2025-03-24 18:09:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 18:09:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 18:09:27] Production.INFO: ==31322== Releasing lock... [2025-03-24 18:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 18:09:27] Production.INFO: 75 MB #Memory Used# [2025-03-24 18:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 15:10:07 [end_date_ymd] => 2025-03-24 18:10:07 [RateCDR] => 1 ) [2025-03-24 18:10: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-03-24 15:10:07' and `end` < '2025-03-24 18:10: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-03-24 18:10:20] Production.INFO: count ==6295 [2025-03-24 18:10:23] Production.ERROR: pbx CDR StartTime 2025-03-24 15:10:07 - End Time 2025-03-24 18:10:07 [2025-03-24 18:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 18:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753899', 'tblTempUsageDetail_20' ) start [2025-03-24 18:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753899', 'tblTempUsageDetail_20' ) end [2025-03-24 18:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753899', 'tblTempVendorCDR_20' ) start [2025-03-24 18:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753899', 'tblTempVendorCDR_20' ) end [2025-03-24 18:10:24] Production.INFO: ProcessCDR(1,14753899,1,1,2) [2025-03-24 18:10:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:10:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753899', 'tblTempUsageDetail_20' ) start [2025-03-24 18:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753899', 'tblTempUsageDetail_20' ) end [2025-03-24 18:10:29] Production.ERROR: pbx prc_insertCDR start [2025-03-24 18:10:29] Production.ERROR: pbx prc_insertCDR end [2025-03-24 18:10:29] Production.INFO: ==31414== Releasing lock... [2025-03-24 18:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 18:10:29] Production.INFO: 75 MB #Memory Used# [2025-03-24 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 15:11:05 [end_date_ymd] => 2025-03-24 18:11:05 [RateCDR] => 1 ) [2025-03-24 18:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 15:11:05' and `end` < '2025-03-24 18:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 18:11:18] Production.INFO: count ==6207 [2025-03-24 18:11:21] Production.ERROR: pbx CDR StartTime 2025-03-24 15:11:05 - End Time 2025-03-24 18:11:05 [2025-03-24 18:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753904', 'tblTempUsageDetail_20' ) start [2025-03-24 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753904', 'tblTempUsageDetail_20' ) end [2025-03-24 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753904', 'tblTempVendorCDR_20' ) start [2025-03-24 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753904', 'tblTempVendorCDR_20' ) end [2025-03-24 18:11:21] Production.INFO: ProcessCDR(1,14753904,1,1,2) [2025-03-24 18:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753904', 'tblTempUsageDetail_20' ) start [2025-03-24 18:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753904', 'tblTempUsageDetail_20' ) end [2025-03-24 18:11:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 18:11:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 18:11:26] Production.INFO: ==31502== Releasing lock... [2025-03-24 18:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 18:11:26] Production.INFO: 74.5 MB #Memory Used# [2025-03-24 18:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 15:12:06 [end_date_ymd] => 2025-03-24 18:12:06 [RateCDR] => 1 ) [2025-03-24 18: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-03-24 15:12:06' and `end` < '2025-03-24 18: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-03-24 18:12:20] Production.INFO: count ==6188 [2025-03-24 18:12:22] Production.ERROR: pbx CDR StartTime 2025-03-24 15:12:06 - End Time 2025-03-24 18:12:06 [2025-03-24 18:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 18:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753909', 'tblTempUsageDetail_20' ) start [2025-03-24 18:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753909', 'tblTempUsageDetail_20' ) end [2025-03-24 18:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753909', 'tblTempVendorCDR_20' ) start [2025-03-24 18:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753909', 'tblTempVendorCDR_20' ) end [2025-03-24 18:12:22] Production.INFO: ProcessCDR(1,14753909,1,1,2) [2025-03-24 18:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753909', 'tblTempUsageDetail_20' ) start [2025-03-24 18:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753909', 'tblTempUsageDetail_20' ) end [2025-03-24 18:12:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 18:12:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 18:12:27] Production.INFO: ==31595== Releasing lock... [2025-03-24 18:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 18:12:27] Production.INFO: 74.25 MB #Memory Used# [2025-03-24 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 15:13:05 [end_date_ymd] => 2025-03-24 18:13:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 15:13:05' and `end` < '2025-03-24 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-03-24 18:13:18] Production.INFO: count ==6162 [2025-03-24 18:13:21] Production.ERROR: pbx CDR StartTime 2025-03-24 15:13:05 - End Time 2025-03-24 18:13:05 [2025-03-24 18:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753914', 'tblTempUsageDetail_20' ) start [2025-03-24 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753914', 'tblTempUsageDetail_20' ) end [2025-03-24 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753914', 'tblTempVendorCDR_20' ) start [2025-03-24 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753914', 'tblTempVendorCDR_20' ) end [2025-03-24 18:13:21] Production.INFO: ProcessCDR(1,14753914,1,1,2) [2025-03-24 18:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753914', 'tblTempUsageDetail_20' ) start [2025-03-24 18:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753914', 'tblTempUsageDetail_20' ) end [2025-03-24 18:13:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 18:13:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 18:13:26] Production.INFO: ==31684== Releasing lock... [2025-03-24 18:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 18:13:26] Production.INFO: 74 MB #Memory Used# [2025-03-24 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 15:14:05 [end_date_ymd] => 2025-03-24 18:14:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 15:14:05' and `end` < '2025-03-24 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-03-24 18:14:19] Production.INFO: count ==6143 [2025-03-24 18:14:21] Production.ERROR: pbx CDR StartTime 2025-03-24 15:14:05 - End Time 2025-03-24 18:14:05 [2025-03-24 18:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753919', 'tblTempUsageDetail_20' ) start [2025-03-24 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753919', 'tblTempUsageDetail_20' ) end [2025-03-24 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753919', 'tblTempVendorCDR_20' ) start [2025-03-24 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753919', 'tblTempVendorCDR_20' ) end [2025-03-24 18:14:21] Production.INFO: ProcessCDR(1,14753919,1,1,2) [2025-03-24 18:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753919', 'tblTempUsageDetail_20' ) start [2025-03-24 18:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753919', 'tblTempUsageDetail_20' ) end [2025-03-24 18:14:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 18:14:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 18:14:27] Production.INFO: ==31790== Releasing lock... [2025-03-24 18:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 18:14:27] Production.INFO: 74 MB #Memory Used# [2025-03-24 18:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 15:15:04 [end_date_ymd] => 2025-03-24 18:15:04 [RateCDR] => 1 ) [2025-03-24 18:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 15:15:04' and `end` < '2025-03-24 18:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 18:15:18] Production.INFO: count ==6135 [2025-03-24 18:15:20] Production.ERROR: pbx CDR StartTime 2025-03-24 15:15:04 - End Time 2025-03-24 18:15:04 [2025-03-24 18:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753924', 'tblTempUsageDetail_20' ) start [2025-03-24 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753924', 'tblTempUsageDetail_20' ) end [2025-03-24 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753924', 'tblTempVendorCDR_20' ) start [2025-03-24 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753924', 'tblTempVendorCDR_20' ) end [2025-03-24 18:15:21] Production.INFO: ProcessCDR(1,14753924,1,1,2) [2025-03-24 18:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753924', 'tblTempUsageDetail_20' ) start [2025-03-24 18:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753924', 'tblTempUsageDetail_20' ) end [2025-03-24 18:15:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 18:15:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 18:15:26] Production.INFO: ==31882== Releasing lock... [2025-03-24 18:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 18:15:26] Production.INFO: 74 MB #Memory Used# [2025-03-24 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 15:16:05 [end_date_ymd] => 2025-03-24 18:16:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 15:16:05' and `end` < '2025-03-24 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-03-24 18:16:18] Production.INFO: count ==6128 [2025-03-24 18:16:21] Production.ERROR: pbx CDR StartTime 2025-03-24 15:16:05 - End Time 2025-03-24 18:16:05 [2025-03-24 18:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753929', 'tblTempUsageDetail_20' ) start [2025-03-24 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753929', 'tblTempUsageDetail_20' ) end [2025-03-24 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753929', 'tblTempVendorCDR_20' ) start [2025-03-24 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753929', 'tblTempVendorCDR_20' ) end [2025-03-24 18:16:21] Production.INFO: ProcessCDR(1,14753929,1,1,2) [2025-03-24 18:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753929', 'tblTempUsageDetail_20' ) start [2025-03-24 18:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753929', 'tblTempUsageDetail_20' ) end [2025-03-24 18:16:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 18:16:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 18:16:27] Production.INFO: ==31972== Releasing lock... [2025-03-24 18:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 18:16:27] Production.INFO: 73.75 MB #Memory Used# [2025-03-24 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 15:17:05 [end_date_ymd] => 2025-03-24 18:17:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 15:17:05' and `end` < '2025-03-24 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-03-24 18:17:18] Production.INFO: count ==6108 [2025-03-24 18:17:21] Production.ERROR: pbx CDR StartTime 2025-03-24 15:17:05 - End Time 2025-03-24 18:17:05 [2025-03-24 18:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753934', 'tblTempUsageDetail_20' ) start [2025-03-24 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753934', 'tblTempUsageDetail_20' ) end [2025-03-24 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753934', 'tblTempVendorCDR_20' ) start [2025-03-24 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753934', 'tblTempVendorCDR_20' ) end [2025-03-24 18:17:21] Production.INFO: ProcessCDR(1,14753934,1,1,2) [2025-03-24 18:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753934', 'tblTempUsageDetail_20' ) start [2025-03-24 18:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753934', 'tblTempUsageDetail_20' ) end [2025-03-24 18:17:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 18:17:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 18:17:26] Production.INFO: ==32062== Releasing lock... [2025-03-24 18:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 18:17:26] Production.INFO: 73.75 MB #Memory Used# [2025-03-24 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 15:18:05 [end_date_ymd] => 2025-03-24 18:18:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 15:18:05' and `end` < '2025-03-24 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-03-24 18:18:19] Production.INFO: count ==6082 [2025-03-24 18:18:21] Production.ERROR: pbx CDR StartTime 2025-03-24 15:18:05 - End Time 2025-03-24 18:18:05 [2025-03-24 18:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753939', 'tblTempUsageDetail_20' ) start [2025-03-24 18:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753939', 'tblTempUsageDetail_20' ) end [2025-03-24 18:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753939', 'tblTempVendorCDR_20' ) start [2025-03-24 18:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753939', 'tblTempVendorCDR_20' ) end [2025-03-24 18:18:22] Production.INFO: ProcessCDR(1,14753939,1,1,2) [2025-03-24 18:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753939', 'tblTempUsageDetail_20' ) start [2025-03-24 18:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753939', 'tblTempUsageDetail_20' ) end [2025-03-24 18:18:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 18:18:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 18:18:27] Production.INFO: ==32152== Releasing lock... [2025-03-24 18:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 18:18:27] Production.INFO: 73.5 MB #Memory Used# [2025-03-24 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 15:19:05 [end_date_ymd] => 2025-03-24 18:19:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 15:19:05' and `end` < '2025-03-24 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-03-24 18:19:18] Production.INFO: count ==6076 [2025-03-24 18:19:21] Production.ERROR: pbx CDR StartTime 2025-03-24 15:19:05 - End Time 2025-03-24 18:19:05 [2025-03-24 18:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753944', 'tblTempUsageDetail_20' ) start [2025-03-24 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753944', 'tblTempUsageDetail_20' ) end [2025-03-24 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753944', 'tblTempVendorCDR_20' ) start [2025-03-24 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753944', 'tblTempVendorCDR_20' ) end [2025-03-24 18:19:21] Production.INFO: ProcessCDR(1,14753944,1,1,2) [2025-03-24 18:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753944', 'tblTempUsageDetail_20' ) start [2025-03-24 18:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753944', 'tblTempUsageDetail_20' ) end [2025-03-24 18:19:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 18:19:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 18:19:26] Production.INFO: ==32242== Releasing lock... [2025-03-24 18:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 18:19:26] Production.INFO: 73.5 MB #Memory Used# [2025-03-24 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 15:20:06 [end_date_ymd] => 2025-03-24 18:20:06 [RateCDR] => 1 ) [2025-03-24 18:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 15:20:06' and `end` < '2025-03-24 18:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 18:20:20] Production.INFO: count ==6048 [2025-03-24 18:20:22] Production.ERROR: pbx CDR StartTime 2025-03-24 15:20:06 - End Time 2025-03-24 18:20:06 [2025-03-24 18:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 18:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753950', 'tblTempUsageDetail_20' ) start [2025-03-24 18:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753950', 'tblTempUsageDetail_20' ) end [2025-03-24 18:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753950', 'tblTempVendorCDR_20' ) start [2025-03-24 18:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753950', 'tblTempVendorCDR_20' ) end [2025-03-24 18:20:23] Production.INFO: ProcessCDR(1,14753950,1,1,2) [2025-03-24 18:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753950', 'tblTempUsageDetail_20' ) start [2025-03-24 18:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753950', 'tblTempUsageDetail_20' ) end [2025-03-24 18:20:28] Production.ERROR: pbx prc_insertCDR start [2025-03-24 18:20:28] Production.ERROR: pbx prc_insertCDR end [2025-03-24 18:20:28] Production.INFO: ==32390== Releasing lock... [2025-03-24 18:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 18:20:28] Production.INFO: 73.25 MB #Memory Used# [2025-03-24 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 15:21:05 [end_date_ymd] => 2025-03-24 18:21:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 15:21:05' and `end` < '2025-03-24 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-03-24 18:21:18] Production.INFO: count ==5986 [2025-03-24 18:21:20] Production.ERROR: pbx CDR StartTime 2025-03-24 15:21:05 - End Time 2025-03-24 18:21:05 [2025-03-24 18:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753955', 'tblTempUsageDetail_20' ) start [2025-03-24 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753955', 'tblTempUsageDetail_20' ) end [2025-03-24 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753955', 'tblTempVendorCDR_20' ) start [2025-03-24 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753955', 'tblTempVendorCDR_20' ) end [2025-03-24 18:21:21] Production.INFO: ProcessCDR(1,14753955,1,1,2) [2025-03-24 18:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753955', 'tblTempUsageDetail_20' ) start [2025-03-24 18:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753955', 'tblTempUsageDetail_20' ) end [2025-03-24 18:21:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 18:21:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 18:21:26] Production.INFO: ==32490== Releasing lock... [2025-03-24 18:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 18:21:26] Production.INFO: 72.75 MB #Memory Used# [2025-03-24 18:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 15:22:06 [end_date_ymd] => 2025-03-24 18:22:06 [RateCDR] => 1 ) [2025-03-24 18: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-03-24 15:22:06' and `end` < '2025-03-24 18: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-03-24 18:22:19] Production.INFO: count ==5942 [2025-03-24 18:22:21] Production.ERROR: pbx CDR StartTime 2025-03-24 15:22:06 - End Time 2025-03-24 18:22:06 [2025-03-24 18:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753960', 'tblTempUsageDetail_20' ) start [2025-03-24 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753960', 'tblTempUsageDetail_20' ) end [2025-03-24 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753960', 'tblTempVendorCDR_20' ) start [2025-03-24 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753960', 'tblTempVendorCDR_20' ) end [2025-03-24 18:22:21] Production.INFO: ProcessCDR(1,14753960,1,1,2) [2025-03-24 18:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753960', 'tblTempUsageDetail_20' ) start [2025-03-24 18:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753960', 'tblTempUsageDetail_20' ) end [2025-03-24 18:22:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 18:22:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 18:22:26] Production.INFO: ==32591== Releasing lock... [2025-03-24 18:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 18:22:26] Production.INFO: 72.5 MB #Memory Used# [2025-03-24 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 15:23:05 [end_date_ymd] => 2025-03-24 18:23:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 15:23:05' and `end` < '2025-03-24 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-03-24 18:23:18] Production.INFO: count ==5923 [2025-03-24 18:23:21] Production.ERROR: pbx CDR StartTime 2025-03-24 15:23:05 - End Time 2025-03-24 18:23:05 [2025-03-24 18:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753965', 'tblTempUsageDetail_20' ) start [2025-03-24 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753965', 'tblTempUsageDetail_20' ) end [2025-03-24 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753965', 'tblTempVendorCDR_20' ) start [2025-03-24 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753965', 'tblTempVendorCDR_20' ) end [2025-03-24 18:23:21] Production.INFO: ProcessCDR(1,14753965,1,1,2) [2025-03-24 18:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753965', 'tblTempUsageDetail_20' ) start [2025-03-24 18:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753965', 'tblTempUsageDetail_20' ) end [2025-03-24 18:23:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 18:23:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 18:23:27] Production.INFO: ==32679== Releasing lock... [2025-03-24 18:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 18:23:27] Production.INFO: 72.25 MB #Memory Used# [2025-03-24 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 15:24:05 [end_date_ymd] => 2025-03-24 18:24:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 15:24:05' and `end` < '2025-03-24 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-03-24 18:24:19] Production.INFO: count ==5903 [2025-03-24 18:24:21] Production.ERROR: pbx CDR StartTime 2025-03-24 15:24:05 - End Time 2025-03-24 18:24:05 [2025-03-24 18:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753970', 'tblTempUsageDetail_20' ) start [2025-03-24 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753970', 'tblTempUsageDetail_20' ) end [2025-03-24 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753970', 'tblTempVendorCDR_20' ) start [2025-03-24 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753970', 'tblTempVendorCDR_20' ) end [2025-03-24 18:24:21] Production.INFO: ProcessCDR(1,14753970,1,1,2) [2025-03-24 18:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753970', 'tblTempUsageDetail_20' ) start [2025-03-24 18:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753970', 'tblTempUsageDetail_20' ) end [2025-03-24 18:24:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 18:24:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 18:24:26] Production.INFO: ==32767== Releasing lock... [2025-03-24 18:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 18:24:26] Production.INFO: 72.25 MB #Memory Used# [2025-03-24 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 15:25:05 [end_date_ymd] => 2025-03-24 18:25:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 15:25:05' and `end` < '2025-03-24 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-03-24 18:25:18] Production.INFO: count ==5869 [2025-03-24 18:25:21] Production.ERROR: pbx CDR StartTime 2025-03-24 15:25:05 - End Time 2025-03-24 18:25:05 [2025-03-24 18:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753975', 'tblTempUsageDetail_20' ) start [2025-03-24 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753975', 'tblTempUsageDetail_20' ) end [2025-03-24 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753975', 'tblTempVendorCDR_20' ) start [2025-03-24 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753975', 'tblTempVendorCDR_20' ) end [2025-03-24 18:25:21] Production.INFO: ProcessCDR(1,14753975,1,1,2) [2025-03-24 18:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753975', 'tblTempUsageDetail_20' ) start [2025-03-24 18:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753975', 'tblTempUsageDetail_20' ) end [2025-03-24 18:25:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 18:25:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 18:25:26] Production.INFO: ==408== Releasing lock... [2025-03-24 18:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 18:25:26] Production.INFO: 72 MB #Memory Used# [2025-03-24 18:26:22] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 15:26:21 [end_date_ymd] => 2025-03-24 18:26:21 [RateCDR] => 1 ) [2025-03-24 18:26:22] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 15:26:21' and `end` < '2025-03-24 18:26:21' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 18:26:36] Production.INFO: count ==5815 [2025-03-24 18:27:38] Production.ERROR: pbx CDR StartTime 2025-03-24 15:26:21 - End Time 2025-03-24 18:26:21 [2025-03-24 18:27:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 18:27:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753980', 'tblTempUsageDetail_20' ) start [2025-03-24 18:27:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753980', 'tblTempUsageDetail_20' ) end [2025-03-24 18:27:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753980', 'tblTempVendorCDR_20' ) start [2025-03-24 18:27:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753980', 'tblTempVendorCDR_20' ) end [2025-03-24 18:27:43] Production.INFO: ProcessCDR(1,14753980,1,1,2) [2025-03-24 18:27:43] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:27:55] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:27:55] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753980', 'tblTempUsageDetail_20' ) start [2025-03-24 18:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753980', 'tblTempUsageDetail_20' ) end [2025-03-24 18:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 18:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 18:28:22] Production.INFO: ==505== Releasing lock... [2025-03-24 18:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 18:28:22] Production.INFO: 71.5 MB #Memory Used# [2025-03-24 18:29:20] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 15:29:20 [end_date_ymd] => 2025-03-24 18:29:20 [RateCDR] => 1 ) [2025-03-24 18:29:20] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 15:29:20' and `end` < '2025-03-24 18:29:20' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 18:29:33] Production.INFO: count ==5763 [2025-03-24 18:30:18] Production.ERROR: pbx CDR StartTime 2025-03-24 15:29:20 - End Time 2025-03-24 18:29:20 [2025-03-24 18:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 18:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753991', 'tblTempUsageDetail_20' ) start [2025-03-24 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14753991', 'tblTempUsageDetail_20' ) end [2025-03-24 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753991', 'tblTempVendorCDR_20' ) start [2025-03-24 18:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14753991', 'tblTempVendorCDR_20' ) end [2025-03-24 18:30:24] Production.INFO: ProcessCDR(1,14753991,1,1,2) [2025-03-24 18:30:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14753991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:30:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14753991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:30:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14753991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:31:16] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14753991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:31:16] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753991', 'tblTempUsageDetail_20' ) start [2025-03-24 18:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14753991', 'tblTempUsageDetail_20' ) end [2025-03-24 18:31:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 18:31:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 18:31:30] Production.INFO: ==805== Releasing lock... [2025-03-24 18:31:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 18:31:30] Production.INFO: 71 MB #Memory Used# [2025-03-24 18:32:08] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 15:32:08 [end_date_ymd] => 2025-03-24 18:32:08 [RateCDR] => 1 ) [2025-03-24 18:32:08] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 15:32:08' and `end` < '2025-03-24 18:32:08' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 18:32:22] Production.INFO: count ==5659 [2025-03-24 18:32:34] Production.ERROR: pbx CDR StartTime 2025-03-24 15:32:08 - End Time 2025-03-24 18:32:08 [2025-03-24 18:32:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 18:32:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754003', 'tblTempUsageDetail_20' ) start [2025-03-24 18:32:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754003', 'tblTempUsageDetail_20' ) end [2025-03-24 18:32:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754003', 'tblTempVendorCDR_20' ) start [2025-03-24 18:32:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754003', 'tblTempVendorCDR_20' ) end [2025-03-24 18:32:34] Production.INFO: ProcessCDR(1,14754003,1,1,2) [2025-03-24 18:32:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:32:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:32:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:32:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:32:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754003', 'tblTempUsageDetail_20' ) start [2025-03-24 18:32:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754003', 'tblTempUsageDetail_20' ) end [2025-03-24 18:32:41] Production.ERROR: pbx prc_insertCDR start [2025-03-24 18:32:41] Production.ERROR: pbx prc_insertCDR end [2025-03-24 18:32:41] Production.INFO: ==1067== Releasing lock... [2025-03-24 18:32:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 18:32:41] Production.INFO: 70.25 MB #Memory Used# [2025-03-24 18:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 15:33:06 [end_date_ymd] => 2025-03-24 18:33:06 [RateCDR] => 1 ) [2025-03-24 18:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 15:33:06' and `end` < '2025-03-24 18:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 18:33:19] Production.INFO: count ==5626 [2025-03-24 18:33:22] Production.ERROR: pbx CDR StartTime 2025-03-24 15:33:06 - End Time 2025-03-24 18:33:06 [2025-03-24 18:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 18:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754008', 'tblTempUsageDetail_20' ) start [2025-03-24 18:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754008', 'tblTempUsageDetail_20' ) end [2025-03-24 18:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754008', 'tblTempVendorCDR_20' ) start [2025-03-24 18:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754008', 'tblTempVendorCDR_20' ) end [2025-03-24 18:33:22] Production.INFO: ProcessCDR(1,14754008,1,1,2) [2025-03-24 18:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754008', 'tblTempUsageDetail_20' ) start [2025-03-24 18:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754008', 'tblTempUsageDetail_20' ) end [2025-03-24 18:33:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 18:33:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 18:33:25] Production.INFO: ==1178== Releasing lock... [2025-03-24 18:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 18:33:25] Production.INFO: 70 MB #Memory Used# [2025-03-24 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 15:34:05 [end_date_ymd] => 2025-03-24 18:34:05 [RateCDR] => 1 ) [2025-03-24 18:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 15:34:05' and `end` < '2025-03-24 18:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 18:34:19] Production.INFO: count ==5607 [2025-03-24 18:34:21] Production.ERROR: pbx CDR StartTime 2025-03-24 15:34:05 - End Time 2025-03-24 18:34:05 [2025-03-24 18:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 18:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754013', 'tblTempUsageDetail_20' ) start [2025-03-24 18:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754013', 'tblTempUsageDetail_20' ) end [2025-03-24 18:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754013', 'tblTempVendorCDR_20' ) start [2025-03-24 18:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754013', 'tblTempVendorCDR_20' ) end [2025-03-24 18:34:21] Production.INFO: ProcessCDR(1,14754013,1,1,2) [2025-03-24 18:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754013', 'tblTempUsageDetail_20' ) start [2025-03-24 18:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754013', 'tblTempUsageDetail_20' ) end [2025-03-24 18:34:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 18:34:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 18:34:25] Production.INFO: ==1294== Releasing lock... [2025-03-24 18:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 18:34:25] Production.INFO: 70 MB #Memory Used# [2025-03-24 18:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 15:35:06 [end_date_ymd] => 2025-03-24 18:35:06 [RateCDR] => 1 ) [2025-03-24 18: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-03-24 15:35:06' and `end` < '2025-03-24 18: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-03-24 18:35:19] Production.INFO: count ==5556 [2025-03-24 18:35:22] Production.ERROR: pbx CDR StartTime 2025-03-24 15:35:06 - End Time 2025-03-24 18:35:06 [2025-03-24 18:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 18:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754018', 'tblTempUsageDetail_20' ) start [2025-03-24 18:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754018', 'tblTempUsageDetail_20' ) end [2025-03-24 18:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754018', 'tblTempVendorCDR_20' ) start [2025-03-24 18:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754018', 'tblTempVendorCDR_20' ) end [2025-03-24 18:35:22] Production.INFO: ProcessCDR(1,14754018,1,1,2) [2025-03-24 18:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754018', 'tblTempUsageDetail_20' ) start [2025-03-24 18:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754018', 'tblTempUsageDetail_20' ) end [2025-03-24 18:35:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 18:35:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 18:35:27] Production.INFO: ==1383== Releasing lock... [2025-03-24 18:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 18:35:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-24 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 15:36:05 [end_date_ymd] => 2025-03-24 18:36:05 [RateCDR] => 1 ) [2025-03-24 18:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 15:36:05' and `end` < '2025-03-24 18:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 18:36:19] Production.INFO: count ==5508 [2025-03-24 18:36:21] Production.ERROR: pbx CDR StartTime 2025-03-24 15:36:05 - End Time 2025-03-24 18:36:05 [2025-03-24 18:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754023', 'tblTempUsageDetail_20' ) start [2025-03-24 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754023', 'tblTempUsageDetail_20' ) end [2025-03-24 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754023', 'tblTempVendorCDR_20' ) start [2025-03-24 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754023', 'tblTempVendorCDR_20' ) end [2025-03-24 18:36:21] Production.INFO: ProcessCDR(1,14754023,1,1,2) [2025-03-24 18:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754023', 'tblTempUsageDetail_20' ) start [2025-03-24 18:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754023', 'tblTempUsageDetail_20' ) end [2025-03-24 18:36:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 18:36:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 18:36:25] Production.INFO: ==1544== Releasing lock... [2025-03-24 18:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 18:36:25] Production.INFO: 69.25 MB #Memory Used# [2025-03-24 18:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 15:37:06 [end_date_ymd] => 2025-03-24 18:37:06 [RateCDR] => 1 ) [2025-03-24 18: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-03-24 15:37:06' and `end` < '2025-03-24 18: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-03-24 18:37:19] Production.INFO: count ==5465 [2025-03-24 18:37:21] Production.ERROR: pbx CDR StartTime 2025-03-24 15:37:06 - End Time 2025-03-24 18:37:06 [2025-03-24 18:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754028', 'tblTempUsageDetail_20' ) start [2025-03-24 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754028', 'tblTempUsageDetail_20' ) end [2025-03-24 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754028', 'tblTempVendorCDR_20' ) start [2025-03-24 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754028', 'tblTempVendorCDR_20' ) end [2025-03-24 18:37:21] Production.INFO: ProcessCDR(1,14754028,1,1,2) [2025-03-24 18:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754028', 'tblTempUsageDetail_20' ) start [2025-03-24 18:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754028', 'tblTempUsageDetail_20' ) end [2025-03-24 18:37:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 18:37:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 18:37:26] Production.INFO: ==1636== Releasing lock... [2025-03-24 18:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 18:37:26] Production.INFO: 68.75 MB #Memory Used# [2025-03-24 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 15:38:05 [end_date_ymd] => 2025-03-24 18:38:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 15:38:05' and `end` < '2025-03-24 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-03-24 18:38:18] Production.INFO: count ==5403 [2025-03-24 18:38:21] Production.ERROR: pbx CDR StartTime 2025-03-24 15:38:05 - End Time 2025-03-24 18:38:05 [2025-03-24 18:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 18:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754033', 'tblTempUsageDetail_20' ) start [2025-03-24 18:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754033', 'tblTempUsageDetail_20' ) end [2025-03-24 18:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754033', 'tblTempVendorCDR_20' ) start [2025-03-24 18:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754033', 'tblTempVendorCDR_20' ) end [2025-03-24 18:38:21] Production.INFO: ProcessCDR(1,14754033,1,1,2) [2025-03-24 18:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754033', 'tblTempUsageDetail_20' ) start [2025-03-24 18:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754033', 'tblTempUsageDetail_20' ) end [2025-03-24 18:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 18:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 18:38:26] Production.INFO: ==1729== Releasing lock... [2025-03-24 18:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 18:38:26] Production.INFO: 68.5 MB #Memory Used# [2025-03-24 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 15:39:05 [end_date_ymd] => 2025-03-24 18:39:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 15:39:05' and `end` < '2025-03-24 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-03-24 18:39:18] Production.INFO: count ==5358 [2025-03-24 18:39:21] Production.ERROR: pbx CDR StartTime 2025-03-24 15:39:05 - End Time 2025-03-24 18:39:05 [2025-03-24 18:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754038', 'tblTempUsageDetail_20' ) start [2025-03-24 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754038', 'tblTempUsageDetail_20' ) end [2025-03-24 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754038', 'tblTempVendorCDR_20' ) start [2025-03-24 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754038', 'tblTempVendorCDR_20' ) end [2025-03-24 18:39:21] Production.INFO: ProcessCDR(1,14754038,1,1,2) [2025-03-24 18:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754038', 'tblTempUsageDetail_20' ) start [2025-03-24 18:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754038', 'tblTempUsageDetail_20' ) end [2025-03-24 18:39:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 18:39:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 18:39:26] Production.INFO: ==1822== Releasing lock... [2025-03-24 18:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 18:39:26] Production.INFO: 68 MB #Memory Used# [2025-03-24 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 15:40:06 [end_date_ymd] => 2025-03-24 18:40:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 15:40:06' and `end` < '2025-03-24 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-03-24 18:40:19] Production.INFO: count ==5317 [2025-03-24 18:40:21] Production.ERROR: pbx CDR StartTime 2025-03-24 15:40:06 - End Time 2025-03-24 18:40:06 [2025-03-24 18:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754044', 'tblTempUsageDetail_20' ) start [2025-03-24 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754044', 'tblTempUsageDetail_20' ) end [2025-03-24 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754044', 'tblTempVendorCDR_20' ) start [2025-03-24 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754044', 'tblTempVendorCDR_20' ) end [2025-03-24 18:40:21] Production.INFO: ProcessCDR(1,14754044,1,1,2) [2025-03-24 18:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754044', 'tblTempUsageDetail_20' ) start [2025-03-24 18:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754044', 'tblTempUsageDetail_20' ) end [2025-03-24 18:40:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 18:40:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 18:40:25] Production.INFO: ==1938== Releasing lock... [2025-03-24 18:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 18:40:25] Production.INFO: 67.75 MB #Memory Used# [2025-03-24 18:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 15:41:06 [end_date_ymd] => 2025-03-24 18:41:06 [RateCDR] => 1 ) [2025-03-24 18:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 15:41:06' and `end` < '2025-03-24 18:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 18:41:19] Production.INFO: count ==5201 [2025-03-24 18:41:21] Production.ERROR: pbx CDR StartTime 2025-03-24 15:41:06 - End Time 2025-03-24 18:41:06 [2025-03-24 18:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 18:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754049', 'tblTempUsageDetail_20' ) start [2025-03-24 18:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754049', 'tblTempUsageDetail_20' ) end [2025-03-24 18:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754049', 'tblTempVendorCDR_20' ) start [2025-03-24 18:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754049', 'tblTempVendorCDR_20' ) end [2025-03-24 18:41:21] Production.INFO: ProcessCDR(1,14754049,1,1,2) [2025-03-24 18:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754049', 'tblTempUsageDetail_20' ) start [2025-03-24 18:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754049', 'tblTempUsageDetail_20' ) end [2025-03-24 18:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 18:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 18:41:26] Production.INFO: ==2037== Releasing lock... [2025-03-24 18:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 18:41:26] Production.INFO: 67 MB #Memory Used# [2025-03-24 18:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 15:42:06 [end_date_ymd] => 2025-03-24 18:42:06 [RateCDR] => 1 ) [2025-03-24 18:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 15:42:06' and `end` < '2025-03-24 18:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 18:42:19] Production.INFO: count ==5131 [2025-03-24 18:42:21] Production.ERROR: pbx CDR StartTime 2025-03-24 15:42:06 - End Time 2025-03-24 18:42:06 [2025-03-24 18:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754054', 'tblTempUsageDetail_20' ) start [2025-03-24 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754054', 'tblTempUsageDetail_20' ) end [2025-03-24 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754054', 'tblTempVendorCDR_20' ) start [2025-03-24 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754054', 'tblTempVendorCDR_20' ) end [2025-03-24 18:42:21] Production.INFO: ProcessCDR(1,14754054,1,1,2) [2025-03-24 18:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754054', 'tblTempUsageDetail_20' ) start [2025-03-24 18:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754054', 'tblTempUsageDetail_20' ) end [2025-03-24 18:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 18:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 18:42:26] Production.INFO: ==2129== Releasing lock... [2025-03-24 18:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 18:42:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-24 18:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 15:43:06 [end_date_ymd] => 2025-03-24 18:43:06 [RateCDR] => 1 ) [2025-03-24 18: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-03-24 15:43:06' and `end` < '2025-03-24 18: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-03-24 18:43:19] Production.INFO: count ==5104 [2025-03-24 18:43:21] Production.ERROR: pbx CDR StartTime 2025-03-24 15:43:06 - End Time 2025-03-24 18:43:06 [2025-03-24 18:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754059', 'tblTempUsageDetail_20' ) start [2025-03-24 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754059', 'tblTempUsageDetail_20' ) end [2025-03-24 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754059', 'tblTempVendorCDR_20' ) start [2025-03-24 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754059', 'tblTempVendorCDR_20' ) end [2025-03-24 18:43:21] Production.INFO: ProcessCDR(1,14754059,1,1,2) [2025-03-24 18:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754059', 'tblTempUsageDetail_20' ) start [2025-03-24 18:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754059', 'tblTempUsageDetail_20' ) end [2025-03-24 18:43:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 18:43:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 18:43:26] Production.INFO: ==2218== Releasing lock... [2025-03-24 18:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 18:43:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-24 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 15:44:05 [end_date_ymd] => 2025-03-24 18:44:05 [RateCDR] => 1 ) [2025-03-24 18:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 15:44:05' and `end` < '2025-03-24 18:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 18:44:19] Production.INFO: count ==5085 [2025-03-24 18:44:21] Production.ERROR: pbx CDR StartTime 2025-03-24 15:44:05 - End Time 2025-03-24 18:44:05 [2025-03-24 18:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754064', 'tblTempUsageDetail_20' ) start [2025-03-24 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754064', 'tblTempUsageDetail_20' ) end [2025-03-24 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754064', 'tblTempVendorCDR_20' ) start [2025-03-24 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754064', 'tblTempVendorCDR_20' ) end [2025-03-24 18:44:21] Production.INFO: ProcessCDR(1,14754064,1,1,2) [2025-03-24 18:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754064', 'tblTempUsageDetail_20' ) start [2025-03-24 18:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754064', 'tblTempUsageDetail_20' ) end [2025-03-24 18:44:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 18:44:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 18:44:24] Production.INFO: ==2317== Releasing lock... [2025-03-24 18:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 18:44:24] Production.INFO: 66 MB #Memory Used# [2025-03-24 18:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 15:45:06 [end_date_ymd] => 2025-03-24 18:45:06 [RateCDR] => 1 ) [2025-03-24 18: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-03-24 15:45:06' and `end` < '2025-03-24 18: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-03-24 18:45:19] Production.INFO: count ==5034 [2025-03-24 18:45:21] Production.ERROR: pbx CDR StartTime 2025-03-24 15:45:06 - End Time 2025-03-24 18:45:06 [2025-03-24 18:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754069', 'tblTempUsageDetail_20' ) start [2025-03-24 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754069', 'tblTempUsageDetail_20' ) end [2025-03-24 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754069', 'tblTempVendorCDR_20' ) start [2025-03-24 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754069', 'tblTempVendorCDR_20' ) end [2025-03-24 18:45:21] Production.INFO: ProcessCDR(1,14754069,1,1,2) [2025-03-24 18:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754069', 'tblTempUsageDetail_20' ) start [2025-03-24 18:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754069', 'tblTempUsageDetail_20' ) end [2025-03-24 18:45:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 18:45:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 18:45:27] Production.INFO: ==2408== Releasing lock... [2025-03-24 18:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 18:45:27] Production.INFO: 65.75 MB #Memory Used# [2025-03-24 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 15:46:05 [end_date_ymd] => 2025-03-24 18:46:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 15:46:05' and `end` < '2025-03-24 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-03-24 18:46:18] Production.INFO: count ==4964 [2025-03-24 18:46:20] Production.ERROR: pbx CDR StartTime 2025-03-24 15:46:05 - End Time 2025-03-24 18:46:05 [2025-03-24 18:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754074', 'tblTempUsageDetail_20' ) start [2025-03-24 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754074', 'tblTempUsageDetail_20' ) end [2025-03-24 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754074', 'tblTempVendorCDR_20' ) start [2025-03-24 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754074', 'tblTempVendorCDR_20' ) end [2025-03-24 18:46:21] Production.INFO: ProcessCDR(1,14754074,1,1,2) [2025-03-24 18:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754074', 'tblTempUsageDetail_20' ) start [2025-03-24 18:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754074', 'tblTempUsageDetail_20' ) end [2025-03-24 18:46:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 18:46:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 18:46:26] Production.INFO: ==2493== Releasing lock... [2025-03-24 18:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 18:46:26] Production.INFO: 65 MB #Memory Used# [2025-03-24 18:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 15:47:06 [end_date_ymd] => 2025-03-24 18:47:06 [RateCDR] => 1 ) [2025-03-24 18: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-03-24 15:47:06' and `end` < '2025-03-24 18: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-03-24 18:47:19] Production.INFO: count ==4940 [2025-03-24 18:47:21] Production.ERROR: pbx CDR StartTime 2025-03-24 15:47:06 - End Time 2025-03-24 18:47:06 [2025-03-24 18:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754079', 'tblTempUsageDetail_20' ) start [2025-03-24 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754079', 'tblTempUsageDetail_20' ) end [2025-03-24 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754079', 'tblTempVendorCDR_20' ) start [2025-03-24 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754079', 'tblTempVendorCDR_20' ) end [2025-03-24 18:47:21] Production.INFO: ProcessCDR(1,14754079,1,1,2) [2025-03-24 18:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754079', 'tblTempUsageDetail_20' ) start [2025-03-24 18:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754079', 'tblTempUsageDetail_20' ) end [2025-03-24 18:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 18:47:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 18:47:26] Production.INFO: ==2599== Releasing lock... [2025-03-24 18:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 18:47:26] Production.INFO: 65 MB #Memory Used# [2025-03-24 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 15:48:05 [end_date_ymd] => 2025-03-24 18:48:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 15:48:05' and `end` < '2025-03-24 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-03-24 18:48:18] Production.INFO: count ==4923 [2025-03-24 18:48:21] Production.ERROR: pbx CDR StartTime 2025-03-24 15:48:05 - End Time 2025-03-24 18:48:05 [2025-03-24 18:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754084', 'tblTempUsageDetail_20' ) start [2025-03-24 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754084', 'tblTempUsageDetail_20' ) end [2025-03-24 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754084', 'tblTempVendorCDR_20' ) start [2025-03-24 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754084', 'tblTempVendorCDR_20' ) end [2025-03-24 18:48:21] Production.INFO: ProcessCDR(1,14754084,1,1,2) [2025-03-24 18:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754084', 'tblTempUsageDetail_20' ) start [2025-03-24 18:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754084', 'tblTempUsageDetail_20' ) end [2025-03-24 18:48:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 18:48:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 18:48:25] Production.INFO: ==2690== Releasing lock... [2025-03-24 18:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 18:48:25] Production.INFO: 64.75 MB #Memory Used# [2025-03-24 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 15:49:05 [end_date_ymd] => 2025-03-24 18:49:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 15:49:05' and `end` < '2025-03-24 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-03-24 18:49:18] Production.INFO: count ==4903 [2025-03-24 18:49:21] Production.ERROR: pbx CDR StartTime 2025-03-24 15:49:05 - End Time 2025-03-24 18:49:05 [2025-03-24 18:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 18:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754089', 'tblTempUsageDetail_20' ) start [2025-03-24 18:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754089', 'tblTempUsageDetail_20' ) end [2025-03-24 18:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754089', 'tblTempVendorCDR_20' ) start [2025-03-24 18:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754089', 'tblTempVendorCDR_20' ) end [2025-03-24 18:49:21] Production.INFO: ProcessCDR(1,14754089,1,1,2) [2025-03-24 18:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754089', 'tblTempUsageDetail_20' ) start [2025-03-24 18:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754089', 'tblTempUsageDetail_20' ) end [2025-03-24 18:49:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 18:49:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 18:49:26] Production.INFO: ==2777== Releasing lock... [2025-03-24 18:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 18:49:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-24 18:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 15:50:05 [end_date_ymd] => 2025-03-24 18:50:05 [RateCDR] => 1 ) [2025-03-24 18:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 15:50:05' and `end` < '2025-03-24 18:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 18:50:18] Production.INFO: count ==4873 [2025-03-24 18:50:20] Production.ERROR: pbx CDR StartTime 2025-03-24 15:50:05 - End Time 2025-03-24 18:50:05 [2025-03-24 18:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754095', 'tblTempUsageDetail_20' ) start [2025-03-24 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754095', 'tblTempUsageDetail_20' ) end [2025-03-24 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754095', 'tblTempVendorCDR_20' ) start [2025-03-24 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754095', 'tblTempVendorCDR_20' ) end [2025-03-24 18:50:20] Production.INFO: ProcessCDR(1,14754095,1,1,2) [2025-03-24 18:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754095', 'tblTempUsageDetail_20' ) start [2025-03-24 18:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754095', 'tblTempUsageDetail_20' ) end [2025-03-24 18:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 18:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 18:50:24] Production.INFO: ==2866== Releasing lock... [2025-03-24 18:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 18:50:24] Production.INFO: 64.5 MB #Memory Used# [2025-03-24 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 15:51:05 [end_date_ymd] => 2025-03-24 18:51:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 15:51:05' and `end` < '2025-03-24 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-03-24 18:51:18] Production.INFO: count ==4777 [2025-03-24 18:51:20] Production.ERROR: pbx CDR StartTime 2025-03-24 15:51:05 - End Time 2025-03-24 18:51:05 [2025-03-24 18:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754100', 'tblTempUsageDetail_20' ) start [2025-03-24 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754100', 'tblTempUsageDetail_20' ) end [2025-03-24 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754100', 'tblTempVendorCDR_20' ) start [2025-03-24 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754100', 'tblTempVendorCDR_20' ) end [2025-03-24 18:51:20] Production.INFO: ProcessCDR(1,14754100,1,1,2) [2025-03-24 18:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754100', 'tblTempUsageDetail_20' ) start [2025-03-24 18:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754100', 'tblTempUsageDetail_20' ) end [2025-03-24 18:51:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 18:51:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 18:51:24] Production.INFO: ==2996== Releasing lock... [2025-03-24 18:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 18:51:24] Production.INFO: 63.75 MB #Memory Used# [2025-03-24 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 15:52:05 [end_date_ymd] => 2025-03-24 18:52:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 15:52:05' and `end` < '2025-03-24 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-03-24 18:52:18] Production.INFO: count ==4747 [2025-03-24 18:52:20] Production.ERROR: pbx CDR StartTime 2025-03-24 15:52:05 - End Time 2025-03-24 18:52:05 [2025-03-24 18:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754105', 'tblTempUsageDetail_20' ) start [2025-03-24 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754105', 'tblTempUsageDetail_20' ) end [2025-03-24 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754105', 'tblTempVendorCDR_20' ) start [2025-03-24 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754105', 'tblTempVendorCDR_20' ) end [2025-03-24 18:52:20] Production.INFO: ProcessCDR(1,14754105,1,1,2) [2025-03-24 18:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754105', 'tblTempUsageDetail_20' ) start [2025-03-24 18:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754105', 'tblTempUsageDetail_20' ) end [2025-03-24 18:52:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 18:52:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 18:52:25] Production.INFO: ==3084== Releasing lock... [2025-03-24 18:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 18:52:25] Production.INFO: 63.5 MB #Memory Used# [2025-03-24 18:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 15:53:06 [end_date_ymd] => 2025-03-24 18:53:06 [RateCDR] => 1 ) [2025-03-24 18: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-03-24 15:53:06' and `end` < '2025-03-24 18: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-03-24 18:53:19] Production.INFO: count ==4696 [2025-03-24 18:53:21] Production.ERROR: pbx CDR StartTime 2025-03-24 15:53:06 - End Time 2025-03-24 18:53:06 [2025-03-24 18:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 18:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754110', 'tblTempUsageDetail_20' ) start [2025-03-24 18:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754110', 'tblTempUsageDetail_20' ) end [2025-03-24 18:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754110', 'tblTempVendorCDR_20' ) start [2025-03-24 18:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754110', 'tblTempVendorCDR_20' ) end [2025-03-24 18:53:21] Production.INFO: ProcessCDR(1,14754110,1,1,2) [2025-03-24 18:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754110', 'tblTempUsageDetail_20' ) start [2025-03-24 18:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754110', 'tblTempUsageDetail_20' ) end [2025-03-24 18:53:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 18:53:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 18:53:25] Production.INFO: ==3171== Releasing lock... [2025-03-24 18:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 18:53:25] Production.INFO: 63 MB #Memory Used# [2025-03-24 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 15:54:05 [end_date_ymd] => 2025-03-24 18:54:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 15:54:05' and `end` < '2025-03-24 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-03-24 18:54:18] Production.INFO: count ==4653 [2025-03-24 18:54:20] Production.ERROR: pbx CDR StartTime 2025-03-24 15:54:05 - End Time 2025-03-24 18:54:05 [2025-03-24 18:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754115', 'tblTempUsageDetail_20' ) start [2025-03-24 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754115', 'tblTempUsageDetail_20' ) end [2025-03-24 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754115', 'tblTempVendorCDR_20' ) start [2025-03-24 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754115', 'tblTempVendorCDR_20' ) end [2025-03-24 18:54:20] Production.INFO: ProcessCDR(1,14754115,1,1,2) [2025-03-24 18:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754115', 'tblTempUsageDetail_20' ) start [2025-03-24 18:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754115', 'tblTempUsageDetail_20' ) end [2025-03-24 18:54:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 18:54:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 18:54:25] Production.INFO: ==3260== Releasing lock... [2025-03-24 18:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 18:54:25] Production.INFO: 62.75 MB #Memory Used# [2025-03-24 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 15:55:05 [end_date_ymd] => 2025-03-24 18:55:05 [RateCDR] => 1 ) [2025-03-24 18:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 15:55:05' and `end` < '2025-03-24 18:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 18:55:19] Production.INFO: count ==4600 [2025-03-24 18:55:21] Production.ERROR: pbx CDR StartTime 2025-03-24 15:55:05 - End Time 2025-03-24 18:55:05 [2025-03-24 18:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754120', 'tblTempUsageDetail_20' ) start [2025-03-24 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754120', 'tblTempUsageDetail_20' ) end [2025-03-24 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754120', 'tblTempVendorCDR_20' ) start [2025-03-24 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754120', 'tblTempVendorCDR_20' ) end [2025-03-24 18:55:21] Production.INFO: ProcessCDR(1,14754120,1,1,2) [2025-03-24 18:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754120', 'tblTempUsageDetail_20' ) start [2025-03-24 18:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754120', 'tblTempUsageDetail_20' ) end [2025-03-24 18:55:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 18:55:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 18:55:26] Production.INFO: ==3348== Releasing lock... [2025-03-24 18:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 18:55:26] Production.INFO: 62.5 MB #Memory Used# [2025-03-24 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 15:56:05 [end_date_ymd] => 2025-03-24 18:56:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 15:56:05' and `end` < '2025-03-24 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-03-24 18:56:18] Production.INFO: count ==4574 [2025-03-24 18:56:20] Production.ERROR: pbx CDR StartTime 2025-03-24 15:56:05 - End Time 2025-03-24 18:56:05 [2025-03-24 18:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754125', 'tblTempUsageDetail_20' ) start [2025-03-24 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754125', 'tblTempUsageDetail_20' ) end [2025-03-24 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754125', 'tblTempVendorCDR_20' ) start [2025-03-24 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754125', 'tblTempVendorCDR_20' ) end [2025-03-24 18:56:20] Production.INFO: ProcessCDR(1,14754125,1,1,2) [2025-03-24 18:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754125', 'tblTempUsageDetail_20' ) start [2025-03-24 18:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754125', 'tblTempUsageDetail_20' ) end [2025-03-24 18:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 18:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 18:56:24] Production.INFO: ==3435== Releasing lock... [2025-03-24 18:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 18:56:24] Production.INFO: 62.25 MB #Memory Used# [2025-03-24 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 15:57:05 [end_date_ymd] => 2025-03-24 18:57:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 15:57:05' and `end` < '2025-03-24 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-03-24 18:57:19] Production.INFO: count ==4560 [2025-03-24 18:57:20] Production.ERROR: pbx CDR StartTime 2025-03-24 15:57:05 - End Time 2025-03-24 18:57:05 [2025-03-24 18:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754130', 'tblTempUsageDetail_20' ) start [2025-03-24 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754130', 'tblTempUsageDetail_20' ) end [2025-03-24 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754130', 'tblTempVendorCDR_20' ) start [2025-03-24 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754130', 'tblTempVendorCDR_20' ) end [2025-03-24 18:57:21] Production.INFO: ProcessCDR(1,14754130,1,1,2) [2025-03-24 18:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754130', 'tblTempUsageDetail_20' ) start [2025-03-24 18:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754130', 'tblTempUsageDetail_20' ) end [2025-03-24 18:57:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 18:57:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 18:57:25] Production.INFO: ==3526== Releasing lock... [2025-03-24 18:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 18:57:25] Production.INFO: 62 MB #Memory Used# [2025-03-24 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 15:58:04 [end_date_ymd] => 2025-03-24 18:58:04 [RateCDR] => 1 ) [2025-03-24 18:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 15:58:04' and `end` < '2025-03-24 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-03-24 18:58:18] Production.INFO: count ==4530 [2025-03-24 18:58:19] Production.ERROR: pbx CDR StartTime 2025-03-24 15:58:04 - End Time 2025-03-24 18:58:04 [2025-03-24 18:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754135', 'tblTempUsageDetail_20' ) start [2025-03-24 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754135', 'tblTempUsageDetail_20' ) end [2025-03-24 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754135', 'tblTempVendorCDR_20' ) start [2025-03-24 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754135', 'tblTempVendorCDR_20' ) end [2025-03-24 18:58:20] Production.INFO: ProcessCDR(1,14754135,1,1,2) [2025-03-24 18:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754135', 'tblTempUsageDetail_20' ) start [2025-03-24 18:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754135', 'tblTempUsageDetail_20' ) end [2025-03-24 18:58:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 18:58:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 18:58:25] Production.INFO: ==3613== Releasing lock... [2025-03-24 18:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 18:58:25] Production.INFO: 62 MB #Memory Used# [2025-03-24 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 15:59:05 [end_date_ymd] => 2025-03-24 18:59:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 15:59:05' and `end` < '2025-03-24 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-03-24 18:59:18] Production.INFO: count ==4486 [2025-03-24 18:59:20] Production.ERROR: pbx CDR StartTime 2025-03-24 15:59:05 - End Time 2025-03-24 18:59:05 [2025-03-24 18:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754140', 'tblTempUsageDetail_20' ) start [2025-03-24 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754140', 'tblTempUsageDetail_20' ) end [2025-03-24 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754140', 'tblTempVendorCDR_20' ) start [2025-03-24 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754140', 'tblTempVendorCDR_20' ) end [2025-03-24 18:59:20] Production.INFO: ProcessCDR(1,14754140,1,1,2) [2025-03-24 18:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 18:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 18:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754140', 'tblTempUsageDetail_20' ) start [2025-03-24 18:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754140', 'tblTempUsageDetail_20' ) end [2025-03-24 18:59:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 18:59:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 18:59:24] Production.INFO: ==3699== Releasing lock... [2025-03-24 18:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 18:59:24] Production.INFO: 61.5 MB #Memory Used# [2025-03-24 19:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 16:00:07 [end_date_ymd] => 2025-03-24 19:00:07 [RateCDR] => 1 ) [2025-03-24 19: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-03-24 16:00:07' and `end` < '2025-03-24 19: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-03-24 19:00:20] Production.INFO: count ==4462 [2025-03-24 19:00:22] Production.ERROR: pbx CDR StartTime 2025-03-24 16:00:07 - End Time 2025-03-24 19:00:07 [2025-03-24 19:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754146', 'tblTempUsageDetail_20' ) start [2025-03-24 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754146', 'tblTempUsageDetail_20' ) end [2025-03-24 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754146', 'tblTempVendorCDR_20' ) start [2025-03-24 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754146', 'tblTempVendorCDR_20' ) end [2025-03-24 19:00:22] Production.INFO: ProcessCDR(1,14754146,1,1,2) [2025-03-24 19:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754146', 'tblTempUsageDetail_20' ) start [2025-03-24 19:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754146', 'tblTempUsageDetail_20' ) end [2025-03-24 19:00:27] Production.ERROR: pbx prc_insertCDR start [2025-03-24 19:00:27] Production.ERROR: pbx prc_insertCDR end [2025-03-24 19:00:27] Production.INFO: ==3796== Releasing lock... [2025-03-24 19:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 19:00:27] Production.INFO: 61.25 MB #Memory Used# [2025-03-24 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 16:01:05 [end_date_ymd] => 2025-03-24 19:01:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 16:01:05' and `end` < '2025-03-24 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-03-24 19:01:19] Production.INFO: count ==4355 [2025-03-24 19:01:21] Production.ERROR: pbx CDR StartTime 2025-03-24 16:01:05 - End Time 2025-03-24 19:01:05 [2025-03-24 19:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754151', 'tblTempUsageDetail_20' ) start [2025-03-24 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754151', 'tblTempUsageDetail_20' ) end [2025-03-24 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754151', 'tblTempVendorCDR_20' ) start [2025-03-24 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754151', 'tblTempVendorCDR_20' ) end [2025-03-24 19:01:21] Production.INFO: ProcessCDR(1,14754151,1,1,2) [2025-03-24 19:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754151', 'tblTempUsageDetail_20' ) start [2025-03-24 19:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754151', 'tblTempUsageDetail_20' ) end [2025-03-24 19:01:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 19:01:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 19:01:26] Production.INFO: ==3942== Releasing lock... [2025-03-24 19:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 19:01:26] Production.INFO: 60.5 MB #Memory Used# [2025-03-24 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 16:02:05 [end_date_ymd] => 2025-03-24 19:02:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 16:02:05' and `end` < '2025-03-24 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-03-24 19:02:19] Production.INFO: count ==4305 [2025-03-24 19:02:20] Production.ERROR: pbx CDR StartTime 2025-03-24 16:02:05 - End Time 2025-03-24 19:02:05 [2025-03-24 19:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754156', 'tblTempUsageDetail_20' ) start [2025-03-24 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754156', 'tblTempUsageDetail_20' ) end [2025-03-24 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754156', 'tblTempVendorCDR_20' ) start [2025-03-24 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754156', 'tblTempVendorCDR_20' ) end [2025-03-24 19:02:21] Production.INFO: ProcessCDR(1,14754156,1,1,2) [2025-03-24 19:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754156', 'tblTempUsageDetail_20' ) start [2025-03-24 19:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754156', 'tblTempUsageDetail_20' ) end [2025-03-24 19:02:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 19:02:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 19:02:24] Production.INFO: ==4064== Releasing lock... [2025-03-24 19:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 19:02:24] Production.INFO: 60.25 MB #Memory Used# [2025-03-24 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 16:03:05 [end_date_ymd] => 2025-03-24 19:03:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 16:03:05' and `end` < '2025-03-24 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-03-24 19:03:19] Production.INFO: count ==4275 [2025-03-24 19:03:20] Production.ERROR: pbx CDR StartTime 2025-03-24 16:03:05 - End Time 2025-03-24 19:03:05 [2025-03-24 19:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754161', 'tblTempUsageDetail_20' ) start [2025-03-24 19:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754161', 'tblTempUsageDetail_20' ) end [2025-03-24 19:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754161', 'tblTempVendorCDR_20' ) start [2025-03-24 19:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754161', 'tblTempVendorCDR_20' ) end [2025-03-24 19:03:21] Production.INFO: ProcessCDR(1,14754161,1,1,2) [2025-03-24 19:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754161', 'tblTempUsageDetail_20' ) start [2025-03-24 19:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754161', 'tblTempUsageDetail_20' ) end [2025-03-24 19:03:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 19:03:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 19:03:24] Production.INFO: ==4159== Releasing lock... [2025-03-24 19:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 19:03:24] Production.INFO: 60 MB #Memory Used# [2025-03-24 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 16:04:05 [end_date_ymd] => 2025-03-24 19:04:05 [RateCDR] => 1 ) [2025-03-24 19:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 16:04:05' and `end` < '2025-03-24 19:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 19:04:19] Production.INFO: count ==4237 [2025-03-24 19:04:20] Production.ERROR: pbx CDR StartTime 2025-03-24 16:04:05 - End Time 2025-03-24 19:04:05 [2025-03-24 19:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754166', 'tblTempUsageDetail_20' ) start [2025-03-24 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754166', 'tblTempUsageDetail_20' ) end [2025-03-24 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754166', 'tblTempVendorCDR_20' ) start [2025-03-24 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754166', 'tblTempVendorCDR_20' ) end [2025-03-24 19:04:20] Production.INFO: ProcessCDR(1,14754166,1,1,2) [2025-03-24 19:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754166', 'tblTempUsageDetail_20' ) start [2025-03-24 19:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754166', 'tblTempUsageDetail_20' ) end [2025-03-24 19:04:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 19:04:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 19:04:25] Production.INFO: ==4247== Releasing lock... [2025-03-24 19:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 19:04:25] Production.INFO: 59.75 MB #Memory Used# [2025-03-24 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 16:05:05 [end_date_ymd] => 2025-03-24 19:05:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 16:05:05' and `end` < '2025-03-24 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-03-24 19:05:18] Production.INFO: count ==4219 [2025-03-24 19:05:20] Production.ERROR: pbx CDR StartTime 2025-03-24 16:05:05 - End Time 2025-03-24 19:05:05 [2025-03-24 19:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754171', 'tblTempUsageDetail_20' ) start [2025-03-24 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754171', 'tblTempUsageDetail_20' ) end [2025-03-24 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754171', 'tblTempVendorCDR_20' ) start [2025-03-24 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754171', 'tblTempVendorCDR_20' ) end [2025-03-24 19:05:20] Production.INFO: ProcessCDR(1,14754171,1,1,2) [2025-03-24 19:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754171', 'tblTempUsageDetail_20' ) start [2025-03-24 19:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754171', 'tblTempUsageDetail_20' ) end [2025-03-24 19:05:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 19:05:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 19:05:25] Production.INFO: ==4411== Releasing lock... [2025-03-24 19:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 19:05:25] Production.INFO: 59.5 MB #Memory Used# [2025-03-24 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 16:06:05 [end_date_ymd] => 2025-03-24 19:06:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 16:06:05' and `end` < '2025-03-24 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-03-24 19:06:19] Production.INFO: count ==4179 [2025-03-24 19:06:20] Production.ERROR: pbx CDR StartTime 2025-03-24 16:06:05 - End Time 2025-03-24 19:06:05 [2025-03-24 19:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754176', 'tblTempUsageDetail_20' ) start [2025-03-24 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754176', 'tblTempUsageDetail_20' ) end [2025-03-24 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754176', 'tblTempVendorCDR_20' ) start [2025-03-24 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754176', 'tblTempVendorCDR_20' ) end [2025-03-24 19:06:20] Production.INFO: ProcessCDR(1,14754176,1,1,2) [2025-03-24 19:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754176', 'tblTempUsageDetail_20' ) start [2025-03-24 19:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754176', 'tblTempUsageDetail_20' ) end [2025-03-24 19:06:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 19:06:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 19:06:26] Production.INFO: ==4500== Releasing lock... [2025-03-24 19:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 19:06:26] Production.INFO: 59.25 MB #Memory Used# [2025-03-24 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 16:07:05 [end_date_ymd] => 2025-03-24 19:07:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 16:07:05' and `end` < '2025-03-24 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-03-24 19:07:18] Production.INFO: count ==4163 [2025-03-24 19:07:20] Production.ERROR: pbx CDR StartTime 2025-03-24 16:07:05 - End Time 2025-03-24 19:07:05 [2025-03-24 19:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754181', 'tblTempUsageDetail_20' ) start [2025-03-24 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754181', 'tblTempUsageDetail_20' ) end [2025-03-24 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754181', 'tblTempVendorCDR_20' ) start [2025-03-24 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754181', 'tblTempVendorCDR_20' ) end [2025-03-24 19:07:20] Production.INFO: ProcessCDR(1,14754181,1,1,2) [2025-03-24 19:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754181', 'tblTempUsageDetail_20' ) start [2025-03-24 19:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754181', 'tblTempUsageDetail_20' ) end [2025-03-24 19:07:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 19:07:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 19:07:25] Production.INFO: ==4633== Releasing lock... [2025-03-24 19:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 19:07:25] Production.INFO: 59.25 MB #Memory Used# [2025-03-24 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 16:08:05 [end_date_ymd] => 2025-03-24 19:08:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 16:08:05' and `end` < '2025-03-24 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-03-24 19:08:18] Production.INFO: count ==4143 [2025-03-24 19:08:20] Production.ERROR: pbx CDR StartTime 2025-03-24 16:08:05 - End Time 2025-03-24 19:08:05 [2025-03-24 19:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754186', 'tblTempUsageDetail_20' ) start [2025-03-24 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754186', 'tblTempUsageDetail_20' ) end [2025-03-24 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754186', 'tblTempVendorCDR_20' ) start [2025-03-24 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754186', 'tblTempVendorCDR_20' ) end [2025-03-24 19:08:20] Production.INFO: ProcessCDR(1,14754186,1,1,2) [2025-03-24 19:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754186', 'tblTempUsageDetail_20' ) start [2025-03-24 19:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754186', 'tblTempUsageDetail_20' ) end [2025-03-24 19:08:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 19:08:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 19:08:24] Production.INFO: ==4799== Releasing lock... [2025-03-24 19:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 19:08:24] Production.INFO: 59 MB #Memory Used# [2025-03-24 19:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 16:09:06 [end_date_ymd] => 2025-03-24 19:09:06 [RateCDR] => 1 ) [2025-03-24 19:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 16:09:06' and `end` < '2025-03-24 19:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 19:09:19] Production.INFO: count ==4121 [2025-03-24 19:09:20] Production.ERROR: pbx CDR StartTime 2025-03-24 16:09:06 - End Time 2025-03-24 19:09:06 [2025-03-24 19:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754191', 'tblTempUsageDetail_20' ) start [2025-03-24 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754191', 'tblTempUsageDetail_20' ) end [2025-03-24 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754191', 'tblTempVendorCDR_20' ) start [2025-03-24 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754191', 'tblTempVendorCDR_20' ) end [2025-03-24 19:09:20] Production.INFO: ProcessCDR(1,14754191,1,1,2) [2025-03-24 19:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754191', 'tblTempUsageDetail_20' ) start [2025-03-24 19:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754191', 'tblTempUsageDetail_20' ) end [2025-03-24 19:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 19:09:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 19:09:26] Production.INFO: ==4891== Releasing lock... [2025-03-24 19:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 19:09:26] Production.INFO: 58.75 MB #Memory Used# [2025-03-24 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 16:10:06 [end_date_ymd] => 2025-03-24 19:10:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 16:10:06' and `end` < '2025-03-24 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-03-24 19:10:19] Production.INFO: count ==4097 [2025-03-24 19:10:21] Production.ERROR: pbx CDR StartTime 2025-03-24 16:10:06 - End Time 2025-03-24 19:10:06 [2025-03-24 19:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754197', 'tblTempUsageDetail_20' ) start [2025-03-24 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754197', 'tblTempUsageDetail_20' ) end [2025-03-24 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754197', 'tblTempVendorCDR_20' ) start [2025-03-24 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754197', 'tblTempVendorCDR_20' ) end [2025-03-24 19:10:21] Production.INFO: ProcessCDR(1,14754197,1,1,2) [2025-03-24 19:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754197', 'tblTempUsageDetail_20' ) start [2025-03-24 19:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754197', 'tblTempUsageDetail_20' ) end [2025-03-24 19:10:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 19:10:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 19:10:26] Production.INFO: ==4988== Releasing lock... [2025-03-24 19:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 19:10:26] Production.INFO: 58.75 MB #Memory Used# [2025-03-24 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 16:11:05 [end_date_ymd] => 2025-03-24 19:11:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 16:11:05' and `end` < '2025-03-24 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-03-24 19:11:19] Production.INFO: count ==3992 [2025-03-24 19:11:20] Production.ERROR: pbx CDR StartTime 2025-03-24 16:11:05 - End Time 2025-03-24 19:11:05 [2025-03-24 19:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754202', 'tblTempUsageDetail_20' ) start [2025-03-24 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754202', 'tblTempUsageDetail_20' ) end [2025-03-24 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754202', 'tblTempVendorCDR_20' ) start [2025-03-24 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754202', 'tblTempVendorCDR_20' ) end [2025-03-24 19:11:20] Production.INFO: ProcessCDR(1,14754202,1,1,2) [2025-03-24 19:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754202', 'tblTempUsageDetail_20' ) start [2025-03-24 19:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754202', 'tblTempUsageDetail_20' ) end [2025-03-24 19:11:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 19:11:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 19:11:24] Production.INFO: ==5084== Releasing lock... [2025-03-24 19:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 19:11:24] Production.INFO: 57.75 MB #Memory Used# [2025-03-24 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 16:12:05 [end_date_ymd] => 2025-03-24 19:12:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 16:12:05' and `end` < '2025-03-24 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-03-24 19:12:18] Production.INFO: count ==3938 [2025-03-24 19:12:20] Production.ERROR: pbx CDR StartTime 2025-03-24 16:12:05 - End Time 2025-03-24 19:12:05 [2025-03-24 19:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754207', 'tblTempUsageDetail_20' ) start [2025-03-24 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754207', 'tblTempUsageDetail_20' ) end [2025-03-24 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754207', 'tblTempVendorCDR_20' ) start [2025-03-24 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754207', 'tblTempVendorCDR_20' ) end [2025-03-24 19:12:20] Production.INFO: ProcessCDR(1,14754207,1,1,2) [2025-03-24 19:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754207', 'tblTempUsageDetail_20' ) start [2025-03-24 19:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754207', 'tblTempUsageDetail_20' ) end [2025-03-24 19:12:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 19:12:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 19:12:25] Production.INFO: ==5250== Releasing lock... [2025-03-24 19:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 19:12:25] Production.INFO: 57.5 MB #Memory Used# [2025-03-24 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 16:13:05 [end_date_ymd] => 2025-03-24 19:13:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 16:13:05' and `end` < '2025-03-24 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-03-24 19:13:18] Production.INFO: count ==3919 [2025-03-24 19:13:20] Production.ERROR: pbx CDR StartTime 2025-03-24 16:13:05 - End Time 2025-03-24 19:13:05 [2025-03-24 19:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754212', 'tblTempUsageDetail_20' ) start [2025-03-24 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754212', 'tblTempUsageDetail_20' ) end [2025-03-24 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754212', 'tblTempVendorCDR_20' ) start [2025-03-24 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754212', 'tblTempVendorCDR_20' ) end [2025-03-24 19:13:20] Production.INFO: ProcessCDR(1,14754212,1,1,2) [2025-03-24 19:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754212', 'tblTempUsageDetail_20' ) start [2025-03-24 19:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754212', 'tblTempUsageDetail_20' ) end [2025-03-24 19:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 19:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 19:13:23] Production.INFO: ==5337== Releasing lock... [2025-03-24 19:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 19:13:23] Production.INFO: 57.25 MB #Memory Used# [2025-03-24 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 16:14:05 [end_date_ymd] => 2025-03-24 19:14:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 16:14:05' and `end` < '2025-03-24 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-03-24 19:14:18] Production.INFO: count ==3869 [2025-03-24 19:14:20] Production.ERROR: pbx CDR StartTime 2025-03-24 16:14:05 - End Time 2025-03-24 19:14:05 [2025-03-24 19:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754217', 'tblTempUsageDetail_20' ) start [2025-03-24 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754217', 'tblTempUsageDetail_20' ) end [2025-03-24 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754217', 'tblTempVendorCDR_20' ) start [2025-03-24 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754217', 'tblTempVendorCDR_20' ) end [2025-03-24 19:14:20] Production.INFO: ProcessCDR(1,14754217,1,1,2) [2025-03-24 19:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754217', 'tblTempUsageDetail_20' ) start [2025-03-24 19:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754217', 'tblTempUsageDetail_20' ) end [2025-03-24 19:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 19:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 19:14:23] Production.INFO: ==5428== Releasing lock... [2025-03-24 19:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 19:14:23] Production.INFO: 56.75 MB #Memory Used# [2025-03-24 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 16:15:05 [end_date_ymd] => 2025-03-24 19:15:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 16:15:05' and `end` < '2025-03-24 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-03-24 19:15:18] Production.INFO: count ==3840 [2025-03-24 19:15:20] Production.ERROR: pbx CDR StartTime 2025-03-24 16:15:05 - End Time 2025-03-24 19:15:05 [2025-03-24 19:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754222', 'tblTempUsageDetail_20' ) start [2025-03-24 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754222', 'tblTempUsageDetail_20' ) end [2025-03-24 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754222', 'tblTempVendorCDR_20' ) start [2025-03-24 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754222', 'tblTempVendorCDR_20' ) end [2025-03-24 19:15:20] Production.INFO: ProcessCDR(1,14754222,1,1,2) [2025-03-24 19:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754222', 'tblTempUsageDetail_20' ) start [2025-03-24 19:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754222', 'tblTempUsageDetail_20' ) end [2025-03-24 19:15:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 19:15:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 19:15:24] Production.INFO: ==5594== Releasing lock... [2025-03-24 19:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 19:15:24] Production.INFO: 56.75 MB #Memory Used# [2025-03-24 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 16:16:05 [end_date_ymd] => 2025-03-24 19:16:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 16:16:05' and `end` < '2025-03-24 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-03-24 19:16:18] Production.INFO: count ==3811 [2025-03-24 19:16:20] Production.ERROR: pbx CDR StartTime 2025-03-24 16:16:05 - End Time 2025-03-24 19:16:05 [2025-03-24 19:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754227', 'tblTempUsageDetail_20' ) start [2025-03-24 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754227', 'tblTempUsageDetail_20' ) end [2025-03-24 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754227', 'tblTempVendorCDR_20' ) start [2025-03-24 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754227', 'tblTempVendorCDR_20' ) end [2025-03-24 19:16:20] Production.INFO: ProcessCDR(1,14754227,1,1,2) [2025-03-24 19:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754227', 'tblTempUsageDetail_20' ) start [2025-03-24 19:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754227', 'tblTempUsageDetail_20' ) end [2025-03-24 19:16:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 19:16:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 19:16:25] Production.INFO: ==5682== Releasing lock... [2025-03-24 19:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 19:16:25] Production.INFO: 57 MB #Memory Used# [2025-03-24 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 16:17:05 [end_date_ymd] => 2025-03-24 19:17:05 [RateCDR] => 1 ) [2025-03-24 19:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 16:17:05' and `end` < '2025-03-24 19:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 19:17:18] Production.INFO: count ==3774 [2025-03-24 19:17:20] Production.ERROR: pbx CDR StartTime 2025-03-24 16:17:05 - End Time 2025-03-24 19:17:05 [2025-03-24 19:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754232', 'tblTempUsageDetail_20' ) start [2025-03-24 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754232', 'tblTempUsageDetail_20' ) end [2025-03-24 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754232', 'tblTempVendorCDR_20' ) start [2025-03-24 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754232', 'tblTempVendorCDR_20' ) end [2025-03-24 19:17:20] Production.INFO: ProcessCDR(1,14754232,1,1,2) [2025-03-24 19:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754232', 'tblTempUsageDetail_20' ) start [2025-03-24 19:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754232', 'tblTempUsageDetail_20' ) end [2025-03-24 19:17:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 19:17:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 19:17:25] Production.INFO: ==5769== Releasing lock... [2025-03-24 19:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 19:17:25] Production.INFO: 56.25 MB #Memory Used# [2025-03-24 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 16:18:05 [end_date_ymd] => 2025-03-24 19:18:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 16:18:05' and `end` < '2025-03-24 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-03-24 19:18:18] Production.INFO: count ==3753 [2025-03-24 19:18:19] Production.ERROR: pbx CDR StartTime 2025-03-24 16:18:05 - End Time 2025-03-24 19:18:05 [2025-03-24 19:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754237', 'tblTempUsageDetail_20' ) start [2025-03-24 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754237', 'tblTempUsageDetail_20' ) end [2025-03-24 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754237', 'tblTempVendorCDR_20' ) start [2025-03-24 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754237', 'tblTempVendorCDR_20' ) end [2025-03-24 19:18:20] Production.INFO: ProcessCDR(1,14754237,1,1,2) [2025-03-24 19:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754237', 'tblTempUsageDetail_20' ) start [2025-03-24 19:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754237', 'tblTempUsageDetail_20' ) end [2025-03-24 19:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 19:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 19:18:23] Production.INFO: ==5861== Releasing lock... [2025-03-24 19:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 19:18:23] Production.INFO: 56 MB #Memory Used# [2025-03-24 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 16:19:05 [end_date_ymd] => 2025-03-24 19:19:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 16:19:05' and `end` < '2025-03-24 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-03-24 19:19:18] Production.INFO: count ==3730 [2025-03-24 19:19:19] Production.ERROR: pbx CDR StartTime 2025-03-24 16:19:05 - End Time 2025-03-24 19:19:05 [2025-03-24 19:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754242', 'tblTempUsageDetail_20' ) start [2025-03-24 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754242', 'tblTempUsageDetail_20' ) end [2025-03-24 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754242', 'tblTempVendorCDR_20' ) start [2025-03-24 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754242', 'tblTempVendorCDR_20' ) end [2025-03-24 19:19:20] Production.INFO: ProcessCDR(1,14754242,1,1,2) [2025-03-24 19:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754242', 'tblTempUsageDetail_20' ) start [2025-03-24 19:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754242', 'tblTempUsageDetail_20' ) end [2025-03-24 19:19:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 19:19:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 19:19:25] Production.INFO: ==5950== Releasing lock... [2025-03-24 19:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 19:19:25] Production.INFO: 56 MB #Memory Used# [2025-03-24 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 16:20:06 [end_date_ymd] => 2025-03-24 19:20:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 16:20:06' and `end` < '2025-03-24 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-03-24 19:20:19] Production.INFO: count ==3697 [2025-03-24 19:20:20] Production.ERROR: pbx CDR StartTime 2025-03-24 16:20:06 - End Time 2025-03-24 19:20:06 [2025-03-24 19:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754247', 'tblTempUsageDetail_20' ) start [2025-03-24 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754247', 'tblTempUsageDetail_20' ) end [2025-03-24 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754247', 'tblTempVendorCDR_20' ) start [2025-03-24 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754247', 'tblTempVendorCDR_20' ) end [2025-03-24 19:20:21] Production.INFO: ProcessCDR(1,14754247,1,1,2) [2025-03-24 19:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754247', 'tblTempUsageDetail_20' ) start [2025-03-24 19:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754247', 'tblTempUsageDetail_20' ) end [2025-03-24 19:20:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 19:20:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 19:20:25] Production.INFO: ==6046== Releasing lock... [2025-03-24 19:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 19:20:25] Production.INFO: 55.75 MB #Memory Used# [2025-03-24 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 16:21:05 [end_date_ymd] => 2025-03-24 19:21:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 16:21:05' and `end` < '2025-03-24 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-03-24 19:21:18] Production.INFO: count ==3584 [2025-03-24 19:21:20] Production.ERROR: pbx CDR StartTime 2025-03-24 16:21:05 - End Time 2025-03-24 19:21:05 [2025-03-24 19:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754253', 'tblTempUsageDetail_20' ) start [2025-03-24 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754253', 'tblTempUsageDetail_20' ) end [2025-03-24 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754253', 'tblTempVendorCDR_20' ) start [2025-03-24 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754253', 'tblTempVendorCDR_20' ) end [2025-03-24 19:21:20] Production.INFO: ProcessCDR(1,14754253,1,1,2) [2025-03-24 19:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754253', 'tblTempUsageDetail_20' ) start [2025-03-24 19:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754253', 'tblTempUsageDetail_20' ) end [2025-03-24 19:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 19:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 19:21:23] Production.INFO: ==6164== Releasing lock... [2025-03-24 19:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 19:21:23] Production.INFO: 55.25 MB #Memory Used# [2025-03-24 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 16:22:05 [end_date_ymd] => 2025-03-24 19:22:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 16:22:05' and `end` < '2025-03-24 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-03-24 19:22:18] Production.INFO: count ==3541 [2025-03-24 19:22:19] Production.ERROR: pbx CDR StartTime 2025-03-24 16:22:05 - End Time 2025-03-24 19:22:05 [2025-03-24 19:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754258', 'tblTempUsageDetail_20' ) start [2025-03-24 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754258', 'tblTempUsageDetail_20' ) end [2025-03-24 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754258', 'tblTempVendorCDR_20' ) start [2025-03-24 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754258', 'tblTempVendorCDR_20' ) end [2025-03-24 19:22:19] Production.INFO: ProcessCDR(1,14754258,1,1,2) [2025-03-24 19:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754258', 'tblTempUsageDetail_20' ) start [2025-03-24 19:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754258', 'tblTempUsageDetail_20' ) end [2025-03-24 19:22:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 19:22:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 19:22:24] Production.INFO: ==6291== Releasing lock... [2025-03-24 19:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 19:22:24] Production.INFO: 55.5 MB #Memory Used# [2025-03-24 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 16:23:05 [end_date_ymd] => 2025-03-24 19:23:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 16:23:05' and `end` < '2025-03-24 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-03-24 19:23:18] Production.INFO: count ==3494 [2025-03-24 19:23:20] Production.ERROR: pbx CDR StartTime 2025-03-24 16:23:05 - End Time 2025-03-24 19:23:05 [2025-03-24 19:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754263', 'tblTempUsageDetail_20' ) start [2025-03-24 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754263', 'tblTempUsageDetail_20' ) end [2025-03-24 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754263', 'tblTempVendorCDR_20' ) start [2025-03-24 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754263', 'tblTempVendorCDR_20' ) end [2025-03-24 19:23:20] Production.INFO: ProcessCDR(1,14754263,1,1,2) [2025-03-24 19:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754263', 'tblTempUsageDetail_20' ) start [2025-03-24 19:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754263', 'tblTempUsageDetail_20' ) end [2025-03-24 19:23:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 19:23:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 19:23:25] Production.INFO: ==6385== Releasing lock... [2025-03-24 19:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 19:23:25] Production.INFO: 55.25 MB #Memory Used# [2025-03-24 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 16:24:05 [end_date_ymd] => 2025-03-24 19:24:05 [RateCDR] => 1 ) [2025-03-24 19:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 16:24:05' and `end` < '2025-03-24 19:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 19:24:18] Production.INFO: count ==3446 [2025-03-24 19:24:20] Production.ERROR: pbx CDR StartTime 2025-03-24 16:24:05 - End Time 2025-03-24 19:24:05 [2025-03-24 19:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754268', 'tblTempUsageDetail_20' ) start [2025-03-24 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754268', 'tblTempUsageDetail_20' ) end [2025-03-24 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754268', 'tblTempVendorCDR_20' ) start [2025-03-24 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754268', 'tblTempVendorCDR_20' ) end [2025-03-24 19:24:20] Production.INFO: ProcessCDR(1,14754268,1,1,2) [2025-03-24 19:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754268', 'tblTempUsageDetail_20' ) start [2025-03-24 19:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754268', 'tblTempUsageDetail_20' ) end [2025-03-24 19:24:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 19:24:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 19:24:23] Production.INFO: ==6474== Releasing lock... [2025-03-24 19:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 19:24:23] Production.INFO: 54.75 MB #Memory Used# [2025-03-24 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 16:25:05 [end_date_ymd] => 2025-03-24 19:25:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 16:25:05' and `end` < '2025-03-24 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-03-24 19:25:18] Production.INFO: count ==3404 [2025-03-24 19:25:19] Production.ERROR: pbx CDR StartTime 2025-03-24 16:25:05 - End Time 2025-03-24 19:25:05 [2025-03-24 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754273', 'tblTempUsageDetail_20' ) start [2025-03-24 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754273', 'tblTempUsageDetail_20' ) end [2025-03-24 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754273', 'tblTempVendorCDR_20' ) start [2025-03-24 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754273', 'tblTempVendorCDR_20' ) end [2025-03-24 19:25:19] Production.INFO: ProcessCDR(1,14754273,1,1,2) [2025-03-24 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754273', 'tblTempUsageDetail_20' ) start [2025-03-24 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754273', 'tblTempUsageDetail_20' ) end [2025-03-24 19:25:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 19:25:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 19:25:24] Production.INFO: ==6562== Releasing lock... [2025-03-24 19:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 19:25:24] Production.INFO: 53.75 MB #Memory Used# [2025-03-24 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 16:26:05 [end_date_ymd] => 2025-03-24 19:26:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 16:26:05' and `end` < '2025-03-24 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-03-24 19:26:18] Production.INFO: count ==3370 [2025-03-24 19:26:19] Production.ERROR: pbx CDR StartTime 2025-03-24 16:26:05 - End Time 2025-03-24 19:26:05 [2025-03-24 19:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754278', 'tblTempUsageDetail_20' ) start [2025-03-24 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754278', 'tblTempUsageDetail_20' ) end [2025-03-24 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754278', 'tblTempVendorCDR_20' ) start [2025-03-24 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754278', 'tblTempVendorCDR_20' ) end [2025-03-24 19:26:20] Production.INFO: ProcessCDR(1,14754278,1,1,2) [2025-03-24 19:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754278', 'tblTempUsageDetail_20' ) start [2025-03-24 19:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754278', 'tblTempUsageDetail_20' ) end [2025-03-24 19:26:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 19:26:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 19:26:24] Production.INFO: ==6651== Releasing lock... [2025-03-24 19:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 19:26:24] Production.INFO: 53.25 MB #Memory Used# [2025-03-24 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 16:27:05 [end_date_ymd] => 2025-03-24 19:27:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 16:27:05' and `end` < '2025-03-24 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-03-24 19:27:18] Production.INFO: count ==3338 [2025-03-24 19:27:19] Production.ERROR: pbx CDR StartTime 2025-03-24 16:27:05 - End Time 2025-03-24 19:27:05 [2025-03-24 19:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754283', 'tblTempUsageDetail_20' ) start [2025-03-24 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754283', 'tblTempUsageDetail_20' ) end [2025-03-24 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754283', 'tblTempVendorCDR_20' ) start [2025-03-24 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754283', 'tblTempVendorCDR_20' ) end [2025-03-24 19:27:19] Production.INFO: ProcessCDR(1,14754283,1,1,2) [2025-03-24 19:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754283', 'tblTempUsageDetail_20' ) start [2025-03-24 19:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754283', 'tblTempUsageDetail_20' ) end [2025-03-24 19:27:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 19:27:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 19:27:23] Production.INFO: ==6735== Releasing lock... [2025-03-24 19:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 19:27:23] Production.INFO: 53.25 MB #Memory Used# [2025-03-24 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 16:28:05 [end_date_ymd] => 2025-03-24 19:28:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 16:28:05' and `end` < '2025-03-24 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-03-24 19:28:19] Production.INFO: count ==3314 [2025-03-24 19:28:20] Production.ERROR: pbx CDR StartTime 2025-03-24 16:28:05 - End Time 2025-03-24 19:28:05 [2025-03-24 19:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754288', 'tblTempUsageDetail_20' ) start [2025-03-24 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754288', 'tblTempUsageDetail_20' ) end [2025-03-24 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754288', 'tblTempVendorCDR_20' ) start [2025-03-24 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754288', 'tblTempVendorCDR_20' ) end [2025-03-24 19:28:20] Production.INFO: ProcessCDR(1,14754288,1,1,2) [2025-03-24 19:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754288', 'tblTempUsageDetail_20' ) start [2025-03-24 19:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754288', 'tblTempUsageDetail_20' ) end [2025-03-24 19:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 19:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 19:28:23] Production.INFO: ==6821== Releasing lock... [2025-03-24 19:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 19:28:23] Production.INFO: 53 MB #Memory Used# [2025-03-24 19:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 16:29:06 [end_date_ymd] => 2025-03-24 19:29:06 [RateCDR] => 1 ) [2025-03-24 19: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-03-24 16:29:06' and `end` < '2025-03-24 19: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-03-24 19:29:19] Production.INFO: count ==3302 [2025-03-24 19:29:20] Production.ERROR: pbx CDR StartTime 2025-03-24 16:29:06 - End Time 2025-03-24 19:29:06 [2025-03-24 19:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754293', 'tblTempUsageDetail_20' ) start [2025-03-24 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754293', 'tblTempUsageDetail_20' ) end [2025-03-24 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754293', 'tblTempVendorCDR_20' ) start [2025-03-24 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754293', 'tblTempVendorCDR_20' ) end [2025-03-24 19:29:20] Production.INFO: ProcessCDR(1,14754293,1,1,2) [2025-03-24 19:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754293', 'tblTempUsageDetail_20' ) start [2025-03-24 19:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754293', 'tblTempUsageDetail_20' ) end [2025-03-24 19:29:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 19:29:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 19:29:24] Production.INFO: ==6907== Releasing lock... [2025-03-24 19:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 19:29:24] Production.INFO: 53.5 MB #Memory Used# [2025-03-24 19:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 16:30:06 [end_date_ymd] => 2025-03-24 19:30:06 [RateCDR] => 1 ) [2025-03-24 19:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 16:30:06' and `end` < '2025-03-24 19:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 19:30:19] Production.INFO: count ==3291 [2025-03-24 19:30:20] Production.ERROR: pbx CDR StartTime 2025-03-24 16:30:06 - End Time 2025-03-24 19:30:06 [2025-03-24 19:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754298', 'tblTempUsageDetail_20' ) start [2025-03-24 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754298', 'tblTempUsageDetail_20' ) end [2025-03-24 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754298', 'tblTempVendorCDR_20' ) start [2025-03-24 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754298', 'tblTempVendorCDR_20' ) end [2025-03-24 19:30:20] Production.INFO: ProcessCDR(1,14754298,1,1,2) [2025-03-24 19:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754298', 'tblTempUsageDetail_20' ) start [2025-03-24 19:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754298', 'tblTempUsageDetail_20' ) end [2025-03-24 19:30:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 19:30:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 19:30:25] Production.INFO: ==6999== Releasing lock... [2025-03-24 19:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 19:30:25] Production.INFO: 53 MB #Memory Used# [2025-03-24 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 16:31:05 [end_date_ymd] => 2025-03-24 19:31:05 [RateCDR] => 1 ) [2025-03-24 19:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 16:31:05' and `end` < '2025-03-24 19:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 19:31:18] Production.INFO: count ==3211 [2025-03-24 19:31:19] Production.ERROR: pbx CDR StartTime 2025-03-24 16:31:05 - End Time 2025-03-24 19:31:05 [2025-03-24 19:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754304', 'tblTempUsageDetail_20' ) start [2025-03-24 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754304', 'tblTempUsageDetail_20' ) end [2025-03-24 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754304', 'tblTempVendorCDR_20' ) start [2025-03-24 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754304', 'tblTempVendorCDR_20' ) end [2025-03-24 19:31:19] Production.INFO: ProcessCDR(1,14754304,1,1,2) [2025-03-24 19:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754304', 'tblTempUsageDetail_20' ) start [2025-03-24 19:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754304', 'tblTempUsageDetail_20' ) end [2025-03-24 19:31:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 19:31:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 19:31:23] Production.INFO: ==7089== Releasing lock... [2025-03-24 19:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 19:31:23] Production.INFO: 52 MB #Memory Used# [2025-03-24 19:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 16:32:06 [end_date_ymd] => 2025-03-24 19:32:06 [RateCDR] => 1 ) [2025-03-24 19: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-03-24 16:32:06' and `end` < '2025-03-24 19: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-03-24 19:32:19] Production.INFO: count ==3187 [2025-03-24 19:32:20] Production.ERROR: pbx CDR StartTime 2025-03-24 16:32:06 - End Time 2025-03-24 19:32:06 [2025-03-24 19:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754309', 'tblTempUsageDetail_20' ) start [2025-03-24 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754309', 'tblTempUsageDetail_20' ) end [2025-03-24 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754309', 'tblTempVendorCDR_20' ) start [2025-03-24 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754309', 'tblTempVendorCDR_20' ) end [2025-03-24 19:32:20] Production.INFO: ProcessCDR(1,14754309,1,1,2) [2025-03-24 19:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754309', 'tblTempUsageDetail_20' ) start [2025-03-24 19:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754309', 'tblTempUsageDetail_20' ) end [2025-03-24 19:32:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 19:32:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 19:32:25] Production.INFO: ==7181== Releasing lock... [2025-03-24 19:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 19:32:25] Production.INFO: 51.75 MB #Memory Used# [2025-03-24 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 16:33:05 [end_date_ymd] => 2025-03-24 19:33:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 16:33:05' and `end` < '2025-03-24 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-03-24 19:33:18] Production.INFO: count ==3168 [2025-03-24 19:33:19] Production.ERROR: pbx CDR StartTime 2025-03-24 16:33:05 - End Time 2025-03-24 19:33:05 [2025-03-24 19:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754314', 'tblTempUsageDetail_20' ) start [2025-03-24 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754314', 'tblTempUsageDetail_20' ) end [2025-03-24 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754314', 'tblTempVendorCDR_20' ) start [2025-03-24 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754314', 'tblTempVendorCDR_20' ) end [2025-03-24 19:33:19] Production.INFO: ProcessCDR(1,14754314,1,1,2) [2025-03-24 19:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754314', 'tblTempUsageDetail_20' ) start [2025-03-24 19:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754314', 'tblTempUsageDetail_20' ) end [2025-03-24 19:33:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 19:33:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 19:33:24] Production.INFO: ==7271== Releasing lock... [2025-03-24 19:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 19:33:24] Production.INFO: 52 MB #Memory Used# [2025-03-24 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 16:34:05 [end_date_ymd] => 2025-03-24 19:34:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 16:34:05' and `end` < '2025-03-24 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-03-24 19:34:18] Production.INFO: count ==3152 [2025-03-24 19:34:19] Production.ERROR: pbx CDR StartTime 2025-03-24 16:34:05 - End Time 2025-03-24 19:34:05 [2025-03-24 19:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754319', 'tblTempUsageDetail_20' ) start [2025-03-24 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754319', 'tblTempUsageDetail_20' ) end [2025-03-24 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754319', 'tblTempVendorCDR_20' ) start [2025-03-24 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754319', 'tblTempVendorCDR_20' ) end [2025-03-24 19:34:19] Production.INFO: ProcessCDR(1,14754319,1,1,2) [2025-03-24 19:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754319', 'tblTempUsageDetail_20' ) start [2025-03-24 19:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754319', 'tblTempUsageDetail_20' ) end [2025-03-24 19:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 19:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 19:34:22] Production.INFO: ==7358== Releasing lock... [2025-03-24 19:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 19:34:22] Production.INFO: 52.25 MB #Memory Used# [2025-03-24 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 16:35:05 [end_date_ymd] => 2025-03-24 19:35:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 16:35:05' and `end` < '2025-03-24 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-03-24 19:35:18] Production.INFO: count ==3133 [2025-03-24 19:35:19] Production.ERROR: pbx CDR StartTime 2025-03-24 16:35:05 - End Time 2025-03-24 19:35:05 [2025-03-24 19:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754324', 'tblTempUsageDetail_20' ) start [2025-03-24 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754324', 'tblTempUsageDetail_20' ) end [2025-03-24 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754324', 'tblTempVendorCDR_20' ) start [2025-03-24 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754324', 'tblTempVendorCDR_20' ) end [2025-03-24 19:35:19] Production.INFO: ProcessCDR(1,14754324,1,1,2) [2025-03-24 19:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754324', 'tblTempUsageDetail_20' ) start [2025-03-24 19:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754324', 'tblTempUsageDetail_20' ) end [2025-03-24 19:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 19:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 19:35:22] Production.INFO: ==7445== Releasing lock... [2025-03-24 19:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 19:35:22] Production.INFO: 51.25 MB #Memory Used# [2025-03-24 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 16:36:05 [end_date_ymd] => 2025-03-24 19:36:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 16:36:05' and `end` < '2025-03-24 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-03-24 19:36:18] Production.INFO: count ==3130 [2025-03-24 19:36:19] Production.ERROR: pbx CDR StartTime 2025-03-24 16:36:05 - End Time 2025-03-24 19:36:05 [2025-03-24 19:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754329', 'tblTempUsageDetail_20' ) start [2025-03-24 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754329', 'tblTempUsageDetail_20' ) end [2025-03-24 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754329', 'tblTempVendorCDR_20' ) start [2025-03-24 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754329', 'tblTempVendorCDR_20' ) end [2025-03-24 19:36:19] Production.INFO: ProcessCDR(1,14754329,1,1,2) [2025-03-24 19:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754329', 'tblTempUsageDetail_20' ) start [2025-03-24 19:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754329', 'tblTempUsageDetail_20' ) end [2025-03-24 19:36:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 19:36:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 19:36:24] Production.INFO: ==7546== Releasing lock... [2025-03-24 19:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 19:36:24] Production.INFO: 51.5 MB #Memory Used# [2025-03-24 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 16:37:05 [end_date_ymd] => 2025-03-24 19:37:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 16:37:05' and `end` < '2025-03-24 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-03-24 19:37:18] Production.INFO: count ==3115 [2025-03-24 19:37:19] Production.ERROR: pbx CDR StartTime 2025-03-24 16:37:05 - End Time 2025-03-24 19:37:05 [2025-03-24 19:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754334', 'tblTempUsageDetail_20' ) start [2025-03-24 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754334', 'tblTempUsageDetail_20' ) end [2025-03-24 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754334', 'tblTempVendorCDR_20' ) start [2025-03-24 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754334', 'tblTempVendorCDR_20' ) end [2025-03-24 19:37:19] Production.INFO: ProcessCDR(1,14754334,1,1,2) [2025-03-24 19:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754334', 'tblTempUsageDetail_20' ) start [2025-03-24 19:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754334', 'tblTempUsageDetail_20' ) end [2025-03-24 19:37:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 19:37:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 19:37:24] Production.INFO: ==7663== Releasing lock... [2025-03-24 19:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 19:37:24] Production.INFO: 51.25 MB #Memory Used# [2025-03-24 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 16:38:05 [end_date_ymd] => 2025-03-24 19:38:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 16:38:05' and `end` < '2025-03-24 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-03-24 19:38:18] Production.INFO: count ==3090 [2025-03-24 19:38:19] Production.ERROR: pbx CDR StartTime 2025-03-24 16:38:05 - End Time 2025-03-24 19:38:05 [2025-03-24 19:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754339', 'tblTempUsageDetail_20' ) start [2025-03-24 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754339', 'tblTempUsageDetail_20' ) end [2025-03-24 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754339', 'tblTempVendorCDR_20' ) start [2025-03-24 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754339', 'tblTempVendorCDR_20' ) end [2025-03-24 19:38:19] Production.INFO: ProcessCDR(1,14754339,1,1,2) [2025-03-24 19:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754339', 'tblTempUsageDetail_20' ) start [2025-03-24 19:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754339', 'tblTempUsageDetail_20' ) end [2025-03-24 19:38:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 19:38:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 19:38:24] Production.INFO: ==7799== Releasing lock... [2025-03-24 19:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 19:38:24] Production.INFO: 51 MB #Memory Used# [2025-03-24 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 16:39:05 [end_date_ymd] => 2025-03-24 19:39:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 16:39:05' and `end` < '2025-03-24 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-03-24 19:39:18] Production.INFO: count ==3084 [2025-03-24 19:39:19] Production.ERROR: pbx CDR StartTime 2025-03-24 16:39:05 - End Time 2025-03-24 19:39:05 [2025-03-24 19:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754344', 'tblTempUsageDetail_20' ) start [2025-03-24 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754344', 'tblTempUsageDetail_20' ) end [2025-03-24 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754344', 'tblTempVendorCDR_20' ) start [2025-03-24 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754344', 'tblTempVendorCDR_20' ) end [2025-03-24 19:39:19] Production.INFO: ProcessCDR(1,14754344,1,1,2) [2025-03-24 19:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754344', 'tblTempUsageDetail_20' ) start [2025-03-24 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754344', 'tblTempUsageDetail_20' ) end [2025-03-24 19:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 19:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 19:39:23] Production.INFO: ==7922== Releasing lock... [2025-03-24 19:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 19:39:23] Production.INFO: 51 MB #Memory Used# [2025-03-24 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 16:40:06 [end_date_ymd] => 2025-03-24 19:40:06 [RateCDR] => 1 ) [2025-03-24 19: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-03-24 16:40:06' and `end` < '2025-03-24 19: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-03-24 19:40:19] Production.INFO: count ==3071 [2025-03-24 19:40:20] Production.ERROR: pbx CDR StartTime 2025-03-24 16:40:06 - End Time 2025-03-24 19:40:06 [2025-03-24 19:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754350', 'tblTempUsageDetail_20' ) start [2025-03-24 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754350', 'tblTempUsageDetail_20' ) end [2025-03-24 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754350', 'tblTempVendorCDR_20' ) start [2025-03-24 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754350', 'tblTempVendorCDR_20' ) end [2025-03-24 19:40:20] Production.INFO: ProcessCDR(1,14754350,1,1,2) [2025-03-24 19:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754350', 'tblTempUsageDetail_20' ) start [2025-03-24 19:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754350', 'tblTempUsageDetail_20' ) end [2025-03-24 19:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 19:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 19:40:23] Production.INFO: ==8016== Releasing lock... [2025-03-24 19:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 19:40:23] Production.INFO: 51 MB #Memory Used# [2025-03-24 19:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 16:41:06 [end_date_ymd] => 2025-03-24 19:41:06 [RateCDR] => 1 ) [2025-03-24 19:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 16:41:06' and `end` < '2025-03-24 19:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 19:41:19] Production.INFO: count ==3020 [2025-03-24 19:41:20] Production.ERROR: pbx CDR StartTime 2025-03-24 16:41:06 - End Time 2025-03-24 19:41:06 [2025-03-24 19:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754355', 'tblTempUsageDetail_20' ) start [2025-03-24 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754355', 'tblTempUsageDetail_20' ) end [2025-03-24 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754355', 'tblTempVendorCDR_20' ) start [2025-03-24 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754355', 'tblTempVendorCDR_20' ) end [2025-03-24 19:41:20] Production.INFO: ProcessCDR(1,14754355,1,1,2) [2025-03-24 19:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754355', 'tblTempUsageDetail_20' ) start [2025-03-24 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754355', 'tblTempUsageDetail_20' ) end [2025-03-24 19:41:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 19:41:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 19:41:23] Production.INFO: ==8143== Releasing lock... [2025-03-24 19:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 19:41:23] Production.INFO: 50.5 MB #Memory Used# [2025-03-24 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 16:42:05 [end_date_ymd] => 2025-03-24 19:42:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 16:42:05' and `end` < '2025-03-24 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-03-24 19:42:18] Production.INFO: count ==3004 [2025-03-24 19:42:19] Production.ERROR: pbx CDR StartTime 2025-03-24 16:42:05 - End Time 2025-03-24 19:42:05 [2025-03-24 19:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754360', 'tblTempUsageDetail_20' ) start [2025-03-24 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754360', 'tblTempUsageDetail_20' ) end [2025-03-24 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754360', 'tblTempVendorCDR_20' ) start [2025-03-24 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754360', 'tblTempVendorCDR_20' ) end [2025-03-24 19:42:19] Production.INFO: ProcessCDR(1,14754360,1,1,2) [2025-03-24 19:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754360', 'tblTempUsageDetail_20' ) start [2025-03-24 19:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754360', 'tblTempUsageDetail_20' ) end [2025-03-24 19:42:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 19:42:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 19:42:24] Production.INFO: ==8232== Releasing lock... [2025-03-24 19:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 19:42:24] Production.INFO: 50.75 MB #Memory Used# [2025-03-24 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 16:43:05 [end_date_ymd] => 2025-03-24 19:43:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 16:43:05' and `end` < '2025-03-24 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-03-24 19:43:18] Production.INFO: count ==2980 [2025-03-24 19:43:19] Production.ERROR: pbx CDR StartTime 2025-03-24 16:43:05 - End Time 2025-03-24 19:43:05 [2025-03-24 19:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754364', 'tblTempUsageDetail_20' ) start [2025-03-24 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754364', 'tblTempUsageDetail_20' ) end [2025-03-24 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754364', 'tblTempVendorCDR_20' ) start [2025-03-24 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754364', 'tblTempVendorCDR_20' ) end [2025-03-24 19:43:19] Production.INFO: ProcessCDR(1,14754364,1,1,2) [2025-03-24 19:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754364', 'tblTempUsageDetail_20' ) start [2025-03-24 19:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754364', 'tblTempUsageDetail_20' ) end [2025-03-24 19:43:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 19:43:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 19:43:24] Production.INFO: ==8353== Releasing lock... [2025-03-24 19:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 19:43:24] Production.INFO: 50.25 MB #Memory Used# [2025-03-24 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 16:44:05 [end_date_ymd] => 2025-03-24 19:44:05 [RateCDR] => 1 ) [2025-03-24 19:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 16:44:05' and `end` < '2025-03-24 19:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 19:44:18] Production.INFO: count ==2957 [2025-03-24 19:44:19] Production.ERROR: pbx CDR StartTime 2025-03-24 16:44:05 - End Time 2025-03-24 19:44:05 [2025-03-24 19:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754370', 'tblTempUsageDetail_20' ) start [2025-03-24 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754370', 'tblTempUsageDetail_20' ) end [2025-03-24 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754370', 'tblTempVendorCDR_20' ) start [2025-03-24 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754370', 'tblTempVendorCDR_20' ) end [2025-03-24 19:44:19] Production.INFO: ProcessCDR(1,14754370,1,1,2) [2025-03-24 19:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754370', 'tblTempUsageDetail_20' ) start [2025-03-24 19:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754370', 'tblTempUsageDetail_20' ) end [2025-03-24 19:44:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 19:44:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 19:44:24] Production.INFO: ==8438== Releasing lock... [2025-03-24 19:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 19:44:24] Production.INFO: 49.75 MB #Memory Used# [2025-03-24 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 16:45:05 [end_date_ymd] => 2025-03-24 19:45:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 16:45:05' and `end` < '2025-03-24 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-03-24 19:45:18] Production.INFO: count ==2953 [2025-03-24 19:45:19] Production.ERROR: pbx CDR StartTime 2025-03-24 16:45:05 - End Time 2025-03-24 19:45:05 [2025-03-24 19:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754375', 'tblTempUsageDetail_20' ) start [2025-03-24 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754375', 'tblTempUsageDetail_20' ) end [2025-03-24 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754375', 'tblTempVendorCDR_20' ) start [2025-03-24 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754375', 'tblTempVendorCDR_20' ) end [2025-03-24 19:45:19] Production.INFO: ProcessCDR(1,14754375,1,1,2) [2025-03-24 19:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754375', 'tblTempUsageDetail_20' ) start [2025-03-24 19:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754375', 'tblTempUsageDetail_20' ) end [2025-03-24 19:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 19:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 19:45:22] Production.INFO: ==8557== Releasing lock... [2025-03-24 19:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 19:45:22] Production.INFO: 50 MB #Memory Used# [2025-03-24 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 16:46:05 [end_date_ymd] => 2025-03-24 19:46:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 16:46:05' and `end` < '2025-03-24 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-03-24 19:46:18] Production.INFO: count ==2935 [2025-03-24 19:46:19] Production.ERROR: pbx CDR StartTime 2025-03-24 16:46:05 - End Time 2025-03-24 19:46:05 [2025-03-24 19:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754380', 'tblTempUsageDetail_20' ) start [2025-03-24 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754380', 'tblTempUsageDetail_20' ) end [2025-03-24 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754380', 'tblTempVendorCDR_20' ) start [2025-03-24 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754380', 'tblTempVendorCDR_20' ) end [2025-03-24 19:46:19] Production.INFO: ProcessCDR(1,14754380,1,1,2) [2025-03-24 19:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754380', 'tblTempUsageDetail_20' ) start [2025-03-24 19:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754380', 'tblTempUsageDetail_20' ) end [2025-03-24 19:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 19:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 19:46:23] Production.INFO: ==8649== Releasing lock... [2025-03-24 19:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 19:46:23] Production.INFO: 50 MB #Memory Used# [2025-03-24 19:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 16:47:06 [end_date_ymd] => 2025-03-24 19:47:06 [RateCDR] => 1 ) [2025-03-24 19: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-03-24 16:47:06' and `end` < '2025-03-24 19: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-03-24 19:47:18] Production.INFO: count ==2923 [2025-03-24 19:47:19] Production.ERROR: pbx CDR StartTime 2025-03-24 16:47:06 - End Time 2025-03-24 19:47:06 [2025-03-24 19:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754385', 'tblTempUsageDetail_20' ) start [2025-03-24 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754385', 'tblTempUsageDetail_20' ) end [2025-03-24 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754385', 'tblTempVendorCDR_20' ) start [2025-03-24 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754385', 'tblTempVendorCDR_20' ) end [2025-03-24 19:47:19] Production.INFO: ProcessCDR(1,14754385,1,1,2) [2025-03-24 19:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754385', 'tblTempUsageDetail_20' ) start [2025-03-24 19:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754385', 'tblTempUsageDetail_20' ) end [2025-03-24 19:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 19:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 19:47:23] Production.INFO: ==8769== Releasing lock... [2025-03-24 19:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 19:47:23] Production.INFO: 49.75 MB #Memory Used# [2025-03-24 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 16:48:05 [end_date_ymd] => 2025-03-24 19:48:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 16:48:05' and `end` < '2025-03-24 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-03-24 19:48:18] Production.INFO: count ==2874 [2025-03-24 19:48:19] Production.ERROR: pbx CDR StartTime 2025-03-24 16:48:05 - End Time 2025-03-24 19:48:05 [2025-03-24 19:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754390', 'tblTempUsageDetail_20' ) start [2025-03-24 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754390', 'tblTempUsageDetail_20' ) end [2025-03-24 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754390', 'tblTempVendorCDR_20' ) start [2025-03-24 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754390', 'tblTempVendorCDR_20' ) end [2025-03-24 19:48:19] Production.INFO: ProcessCDR(1,14754390,1,1,2) [2025-03-24 19:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754390', 'tblTempUsageDetail_20' ) start [2025-03-24 19:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754390', 'tblTempUsageDetail_20' ) end [2025-03-24 19:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 19:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 19:48:23] Production.INFO: ==8861== Releasing lock... [2025-03-24 19:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 19:48:23] Production.INFO: 49.25 MB #Memory Used# [2025-03-24 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 16:49:05 [end_date_ymd] => 2025-03-24 19:49:05 [RateCDR] => 1 ) [2025-03-24 19:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 16:49:05' and `end` < '2025-03-24 19:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 19:49:18] Production.INFO: count ==2836 [2025-03-24 19:49:19] Production.ERROR: pbx CDR StartTime 2025-03-24 16:49:05 - End Time 2025-03-24 19:49:05 [2025-03-24 19:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754395', 'tblTempUsageDetail_20' ) start [2025-03-24 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754395', 'tblTempUsageDetail_20' ) end [2025-03-24 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754395', 'tblTempVendorCDR_20' ) start [2025-03-24 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754395', 'tblTempVendorCDR_20' ) end [2025-03-24 19:49:19] Production.INFO: ProcessCDR(1,14754395,1,1,2) [2025-03-24 19:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754395', 'tblTempUsageDetail_20' ) start [2025-03-24 19:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754395', 'tblTempUsageDetail_20' ) end [2025-03-24 19:49:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 19:49:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 19:49:24] Production.INFO: ==8979== Releasing lock... [2025-03-24 19:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 19:49:24] Production.INFO: 49.25 MB #Memory Used# [2025-03-24 19:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 16:50:07 [end_date_ymd] => 2025-03-24 19:50:07 [RateCDR] => 1 ) [2025-03-24 19:50: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-03-24 16:50:07' and `end` < '2025-03-24 19:50: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-03-24 19:50:20] Production.INFO: count ==2787 [2025-03-24 19:50:20] Production.ERROR: pbx CDR StartTime 2025-03-24 16:50:07 - End Time 2025-03-24 19:50:07 [2025-03-24 19:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754401', 'tblTempUsageDetail_20' ) start [2025-03-24 19:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754401', 'tblTempUsageDetail_20' ) end [2025-03-24 19:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754401', 'tblTempVendorCDR_20' ) start [2025-03-24 19:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754401', 'tblTempVendorCDR_20' ) end [2025-03-24 19:50:21] Production.INFO: ProcessCDR(1,14754401,1,1,2) [2025-03-24 19:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754401', 'tblTempUsageDetail_20' ) start [2025-03-24 19:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754401', 'tblTempUsageDetail_20' ) end [2025-03-24 19:50:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 19:50:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 19:50:25] Production.INFO: ==9081== Releasing lock... [2025-03-24 19:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 19:50:25] Production.INFO: 49 MB #Memory Used# [2025-03-24 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 16:51:05 [end_date_ymd] => 2025-03-24 19:51:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 16:51:05' and `end` < '2025-03-24 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-03-24 19:51:18] Production.INFO: count ==2688 [2025-03-24 19:51:19] Production.ERROR: pbx CDR StartTime 2025-03-24 16:51:05 - End Time 2025-03-24 19:51:05 [2025-03-24 19:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754406', 'tblTempUsageDetail_20' ) start [2025-03-24 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754406', 'tblTempUsageDetail_20' ) end [2025-03-24 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754406', 'tblTempVendorCDR_20' ) start [2025-03-24 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754406', 'tblTempVendorCDR_20' ) end [2025-03-24 19:51:19] Production.INFO: ProcessCDR(1,14754406,1,1,2) [2025-03-24 19:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754406', 'tblTempUsageDetail_20' ) start [2025-03-24 19:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754406', 'tblTempUsageDetail_20' ) end [2025-03-24 19:51:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 19:51:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 19:51:23] Production.INFO: ==9199== Releasing lock... [2025-03-24 19:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 19:51:23] Production.INFO: 48.25 MB #Memory Used# [2025-03-24 19:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 16:52:06 [end_date_ymd] => 2025-03-24 19:52:06 [RateCDR] => 1 ) [2025-03-24 19: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-03-24 16:52:06' and `end` < '2025-03-24 19: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-03-24 19:52:19] Production.INFO: count ==2672 [2025-03-24 19:52:20] Production.ERROR: pbx CDR StartTime 2025-03-24 16:52:06 - End Time 2025-03-24 19:52:06 [2025-03-24 19:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754411', 'tblTempUsageDetail_20' ) start [2025-03-24 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754411', 'tblTempUsageDetail_20' ) end [2025-03-24 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754411', 'tblTempVendorCDR_20' ) start [2025-03-24 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754411', 'tblTempVendorCDR_20' ) end [2025-03-24 19:52:20] Production.INFO: ProcessCDR(1,14754411,1,1,2) [2025-03-24 19:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754411', 'tblTempUsageDetail_20' ) start [2025-03-24 19:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754411', 'tblTempUsageDetail_20' ) end [2025-03-24 19:52:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 19:52:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 19:52:24] Production.INFO: ==9293== Releasing lock... [2025-03-24 19:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 19:52:24] Production.INFO: 48 MB #Memory Used# [2025-03-24 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 16:53:05 [end_date_ymd] => 2025-03-24 19:53:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 16:53:05' and `end` < '2025-03-24 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-03-24 19:53:18] Production.INFO: count ==2630 [2025-03-24 19:53:19] Production.ERROR: pbx CDR StartTime 2025-03-24 16:53:05 - End Time 2025-03-24 19:53:05 [2025-03-24 19:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754416', 'tblTempUsageDetail_20' ) start [2025-03-24 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754416', 'tblTempUsageDetail_20' ) end [2025-03-24 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754416', 'tblTempVendorCDR_20' ) start [2025-03-24 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754416', 'tblTempVendorCDR_20' ) end [2025-03-24 19:53:19] Production.INFO: ProcessCDR(1,14754416,1,1,2) [2025-03-24 19:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754416', 'tblTempUsageDetail_20' ) start [2025-03-24 19:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754416', 'tblTempUsageDetail_20' ) end [2025-03-24 19:53:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 19:53:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 19:53:24] Production.INFO: ==9441== Releasing lock... [2025-03-24 19:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 19:53:24] Production.INFO: 47.75 MB #Memory Used# [2025-03-24 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 16:54:05 [end_date_ymd] => 2025-03-24 19:54:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 16:54:05' and `end` < '2025-03-24 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-03-24 19:54:18] Production.INFO: count ==2597 [2025-03-24 19:54:19] Production.ERROR: pbx CDR StartTime 2025-03-24 16:54:05 - End Time 2025-03-24 19:54:05 [2025-03-24 19:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754421', 'tblTempUsageDetail_20' ) start [2025-03-24 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754421', 'tblTempUsageDetail_20' ) end [2025-03-24 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754421', 'tblTempVendorCDR_20' ) start [2025-03-24 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754421', 'tblTempVendorCDR_20' ) end [2025-03-24 19:54:19] Production.INFO: ProcessCDR(1,14754421,1,1,2) [2025-03-24 19:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754421', 'tblTempUsageDetail_20' ) start [2025-03-24 19:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754421', 'tblTempUsageDetail_20' ) end [2025-03-24 19:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 19:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 19:54:23] Production.INFO: ==9546== Releasing lock... [2025-03-24 19:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 19:54:23] Production.INFO: 47.5 MB #Memory Used# [2025-03-24 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 16:55:05 [end_date_ymd] => 2025-03-24 19:55:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 16:55:05' and `end` < '2025-03-24 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-03-24 19:55:18] Production.INFO: count ==2564 [2025-03-24 19:55:18] Production.ERROR: pbx CDR StartTime 2025-03-24 16:55:05 - End Time 2025-03-24 19:55:05 [2025-03-24 19:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754426', 'tblTempUsageDetail_20' ) start [2025-03-24 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754426', 'tblTempUsageDetail_20' ) end [2025-03-24 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754426', 'tblTempVendorCDR_20' ) start [2025-03-24 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754426', 'tblTempVendorCDR_20' ) end [2025-03-24 19:55:18] Production.INFO: ProcessCDR(1,14754426,1,1,2) [2025-03-24 19:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754426', 'tblTempUsageDetail_20' ) start [2025-03-24 19:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754426', 'tblTempUsageDetail_20' ) end [2025-03-24 19:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 19:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 19:55:23] Production.INFO: ==9647== Releasing lock... [2025-03-24 19:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 19:55:23] Production.INFO: 47.25 MB #Memory Used# [2025-03-24 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 16:56:05 [end_date_ymd] => 2025-03-24 19:56:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 16:56:05' and `end` < '2025-03-24 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-03-24 19:56:18] Production.INFO: count ==2526 [2025-03-24 19:56:18] Production.ERROR: pbx CDR StartTime 2025-03-24 16:56:05 - End Time 2025-03-24 19:56:05 [2025-03-24 19:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754431', 'tblTempUsageDetail_20' ) start [2025-03-24 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754431', 'tblTempUsageDetail_20' ) end [2025-03-24 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754431', 'tblTempVendorCDR_20' ) start [2025-03-24 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754431', 'tblTempVendorCDR_20' ) end [2025-03-24 19:56:18] Production.INFO: ProcessCDR(1,14754431,1,1,2) [2025-03-24 19:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754431', 'tblTempUsageDetail_20' ) start [2025-03-24 19:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754431', 'tblTempUsageDetail_20' ) end [2025-03-24 19:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 19:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 19:56:23] Production.INFO: ==9734== Releasing lock... [2025-03-24 19:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 19:56:23] Production.INFO: 47 MB #Memory Used# [2025-03-24 19:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 16:57:04 [end_date_ymd] => 2025-03-24 19:57:04 [RateCDR] => 1 ) [2025-03-24 19:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 16:57:04' and `end` < '2025-03-24 19:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 19:57:17] Production.INFO: count ==2506 [2025-03-24 19:57:18] Production.ERROR: pbx CDR StartTime 2025-03-24 16:57:04 - End Time 2025-03-24 19:57:04 [2025-03-24 19:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754436', 'tblTempUsageDetail_20' ) start [2025-03-24 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754436', 'tblTempUsageDetail_20' ) end [2025-03-24 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754436', 'tblTempVendorCDR_20' ) start [2025-03-24 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754436', 'tblTempVendorCDR_20' ) end [2025-03-24 19:57:18] Production.INFO: ProcessCDR(1,14754436,1,1,2) [2025-03-24 19:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754436', 'tblTempUsageDetail_20' ) start [2025-03-24 19:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754436', 'tblTempUsageDetail_20' ) end [2025-03-24 19:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 19:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 19:57:23] Production.INFO: ==9820== Releasing lock... [2025-03-24 19:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 19:57:23] Production.INFO: 46.75 MB #Memory Used# [2025-03-24 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 16:58:05 [end_date_ymd] => 2025-03-24 19:58:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 16:58:05' and `end` < '2025-03-24 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-03-24 19:58:18] Production.INFO: count ==2468 [2025-03-24 19:58:19] Production.ERROR: pbx CDR StartTime 2025-03-24 16:58:05 - End Time 2025-03-24 19:58:05 [2025-03-24 19:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754441', 'tblTempUsageDetail_20' ) start [2025-03-24 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754441', 'tblTempUsageDetail_20' ) end [2025-03-24 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754441', 'tblTempVendorCDR_20' ) start [2025-03-24 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754441', 'tblTempVendorCDR_20' ) end [2025-03-24 19:58:19] Production.INFO: ProcessCDR(1,14754441,1,1,2) [2025-03-24 19:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754441', 'tblTempUsageDetail_20' ) start [2025-03-24 19:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754441', 'tblTempUsageDetail_20' ) end [2025-03-24 19:58:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 19:58:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 19:58:24] Production.INFO: ==9911== Releasing lock... [2025-03-24 19:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 19:58:24] Production.INFO: 46.5 MB #Memory Used# [2025-03-24 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 16:59:05 [end_date_ymd] => 2025-03-24 19:59:05 [RateCDR] => 1 ) [2025-03-24 19:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 16:59:05' and `end` < '2025-03-24 19:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 19:59:18] Production.INFO: count ==2421 [2025-03-24 19:59:19] Production.ERROR: pbx CDR StartTime 2025-03-24 16:59:05 - End Time 2025-03-24 19:59:05 [2025-03-24 19:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754446', 'tblTempUsageDetail_20' ) start [2025-03-24 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754446', 'tblTempUsageDetail_20' ) end [2025-03-24 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754446', 'tblTempVendorCDR_20' ) start [2025-03-24 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754446', 'tblTempVendorCDR_20' ) end [2025-03-24 19:59:19] Production.INFO: ProcessCDR(1,14754446,1,1,2) [2025-03-24 19:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 19:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 19:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754446', 'tblTempUsageDetail_20' ) start [2025-03-24 19:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754446', 'tblTempUsageDetail_20' ) end [2025-03-24 19:59:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 19:59:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 19:59:24] Production.INFO: ==10004== Releasing lock... [2025-03-24 19:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 19:59:24] Production.INFO: 46.25 MB #Memory Used# [2025-03-24 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 17:00:06 [end_date_ymd] => 2025-03-24 20:00:06 [RateCDR] => 1 ) [2025-03-24 20: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-03-24 17:00:06' and `end` < '2025-03-24 20: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-03-24 20:00:19] Production.INFO: count ==2374 [2025-03-24 20:00:20] Production.ERROR: pbx CDR StartTime 2025-03-24 17:00:06 - End Time 2025-03-24 20:00:06 [2025-03-24 20:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754451', 'tblTempUsageDetail_20' ) start [2025-03-24 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754451', 'tblTempUsageDetail_20' ) end [2025-03-24 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754451', 'tblTempVendorCDR_20' ) start [2025-03-24 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754451', 'tblTempVendorCDR_20' ) end [2025-03-24 20:00:20] Production.INFO: ProcessCDR(1,14754451,1,1,2) [2025-03-24 20:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754451', 'tblTempUsageDetail_20' ) start [2025-03-24 20:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754451', 'tblTempUsageDetail_20' ) end [2025-03-24 20:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 20:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 20:00:24] Production.INFO: ==10093== Releasing lock... [2025-03-24 20:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 20:00:24] Production.INFO: 46 MB #Memory Used# [2025-03-24 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 17:01:05 [end_date_ymd] => 2025-03-24 20:01:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 17:01:05' and `end` < '2025-03-24 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-03-24 20:01:18] Production.INFO: count ==2285 [2025-03-24 20:01:18] Production.ERROR: pbx CDR StartTime 2025-03-24 17:01:05 - End Time 2025-03-24 20:01:05 [2025-03-24 20:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754457', 'tblTempUsageDetail_20' ) start [2025-03-24 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754457', 'tblTempUsageDetail_20' ) end [2025-03-24 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754457', 'tblTempVendorCDR_20' ) start [2025-03-24 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754457', 'tblTempVendorCDR_20' ) end [2025-03-24 20:01:19] Production.INFO: ProcessCDR(1,14754457,1,1,2) [2025-03-24 20:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754457', 'tblTempUsageDetail_20' ) start [2025-03-24 20:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754457', 'tblTempUsageDetail_20' ) end [2025-03-24 20:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 20:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 20:01:22] Production.INFO: ==10233== Releasing lock... [2025-03-24 20:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 20:01:22] Production.INFO: 45.25 MB #Memory Used# [2025-03-24 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 17:02:05 [end_date_ymd] => 2025-03-24 20:02:05 [RateCDR] => 1 ) [2025-03-24 20:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 17:02:05' and `end` < '2025-03-24 20: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-03-24 20:02:18] Production.INFO: count ==2243 [2025-03-24 20:02:19] Production.ERROR: pbx CDR StartTime 2025-03-24 17:02:05 - End Time 2025-03-24 20:02:05 [2025-03-24 20:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754462', 'tblTempUsageDetail_20' ) start [2025-03-24 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754462', 'tblTempUsageDetail_20' ) end [2025-03-24 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754462', 'tblTempVendorCDR_20' ) start [2025-03-24 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754462', 'tblTempVendorCDR_20' ) end [2025-03-24 20:02:19] Production.INFO: ProcessCDR(1,14754462,1,1,2) [2025-03-24 20:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754462', 'tblTempUsageDetail_20' ) start [2025-03-24 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754462', 'tblTempUsageDetail_20' ) end [2025-03-24 20:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 20:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 20:02:23] Production.INFO: ==10321== Releasing lock... [2025-03-24 20:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 20:02:23] Production.INFO: 45 MB #Memory Used# [2025-03-24 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 17:03:05 [end_date_ymd] => 2025-03-24 20:03:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 17:03:05' and `end` < '2025-03-24 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-03-24 20:03:18] Production.INFO: count ==2227 [2025-03-24 20:03:19] Production.ERROR: pbx CDR StartTime 2025-03-24 17:03:05 - End Time 2025-03-24 20:03:05 [2025-03-24 20:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754467', 'tblTempUsageDetail_20' ) start [2025-03-24 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754467', 'tblTempUsageDetail_20' ) end [2025-03-24 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754467', 'tblTempVendorCDR_20' ) start [2025-03-24 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754467', 'tblTempVendorCDR_20' ) end [2025-03-24 20:03:19] Production.INFO: ProcessCDR(1,14754467,1,1,2) [2025-03-24 20:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754467', 'tblTempUsageDetail_20' ) start [2025-03-24 20:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754467', 'tblTempUsageDetail_20' ) end [2025-03-24 20:03:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 20:03:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 20:03:25] Production.INFO: ==10413== Releasing lock... [2025-03-24 20:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 20:03:25] Production.INFO: 44.75 MB #Memory Used# [2025-03-24 20:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 17:04:06 [end_date_ymd] => 2025-03-24 20:04:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 17:04:06' and `end` < '2025-03-24 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-03-24 20:04:19] Production.INFO: count ==2224 [2025-03-24 20:04:20] Production.ERROR: pbx CDR StartTime 2025-03-24 17:04:06 - End Time 2025-03-24 20:04:06 [2025-03-24 20:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 20:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754472', 'tblTempUsageDetail_20' ) start [2025-03-24 20:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754472', 'tblTempUsageDetail_20' ) end [2025-03-24 20:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754472', 'tblTempVendorCDR_20' ) start [2025-03-24 20:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754472', 'tblTempVendorCDR_20' ) end [2025-03-24 20:04:20] Production.INFO: ProcessCDR(1,14754472,1,1,2) [2025-03-24 20:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754472', 'tblTempUsageDetail_20' ) start [2025-03-24 20:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754472', 'tblTempUsageDetail_20' ) end [2025-03-24 20:04:26] Production.ERROR: pbx prc_insertCDR start [2025-03-24 20:04:26] Production.ERROR: pbx prc_insertCDR end [2025-03-24 20:04:26] Production.INFO: ==10503== Releasing lock... [2025-03-24 20:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 20:04:26] Production.INFO: 44.75 MB #Memory Used# [2025-03-24 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 17:05:05 [end_date_ymd] => 2025-03-24 20:05:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 17:05:05' and `end` < '2025-03-24 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-03-24 20:05:18] Production.INFO: count ==2205 [2025-03-24 20:05:19] Production.ERROR: pbx CDR StartTime 2025-03-24 17:05:05 - End Time 2025-03-24 20:05:05 [2025-03-24 20:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754477', 'tblTempUsageDetail_20' ) start [2025-03-24 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754477', 'tblTempUsageDetail_20' ) end [2025-03-24 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754477', 'tblTempVendorCDR_20' ) start [2025-03-24 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754477', 'tblTempVendorCDR_20' ) end [2025-03-24 20:05:19] Production.INFO: ProcessCDR(1,14754477,1,1,2) [2025-03-24 20:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754477', 'tblTempUsageDetail_20' ) start [2025-03-24 20:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754477', 'tblTempUsageDetail_20' ) end [2025-03-24 20:05:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 20:05:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 20:05:25] Production.INFO: ==10589== Releasing lock... [2025-03-24 20:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 20:05:25] Production.INFO: 45 MB #Memory Used# [2025-03-24 20:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 17:06:06 [end_date_ymd] => 2025-03-24 20:06:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 17:06:06' and `end` < '2025-03-24 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-03-24 20:06:18] Production.INFO: count ==2186 [2025-03-24 20:06:20] Production.ERROR: pbx CDR StartTime 2025-03-24 17:06:06 - End Time 2025-03-24 20:06:06 [2025-03-24 20:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 20:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754482', 'tblTempUsageDetail_20' ) start [2025-03-24 20:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754482', 'tblTempUsageDetail_20' ) end [2025-03-24 20:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754482', 'tblTempVendorCDR_20' ) start [2025-03-24 20:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754482', 'tblTempVendorCDR_20' ) end [2025-03-24 20:06:20] Production.INFO: ProcessCDR(1,14754482,1,1,2) [2025-03-24 20:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754482', 'tblTempUsageDetail_20' ) start [2025-03-24 20:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754482', 'tblTempUsageDetail_20' ) end [2025-03-24 20:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 20:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 20:06:23] Production.INFO: ==10675== Releasing lock... [2025-03-24 20:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 20:06:23] Production.INFO: 44.5 MB #Memory Used# [2025-03-24 20:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 17:07:06 [end_date_ymd] => 2025-03-24 20:07:06 [RateCDR] => 1 ) [2025-03-24 20: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-03-24 17:07:06' and `end` < '2025-03-24 20: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-03-24 20:07:18] Production.INFO: count ==2150 [2025-03-24 20:07:19] Production.ERROR: pbx CDR StartTime 2025-03-24 17:07:06 - End Time 2025-03-24 20:07:06 [2025-03-24 20:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754487', 'tblTempUsageDetail_20' ) start [2025-03-24 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754487', 'tblTempUsageDetail_20' ) end [2025-03-24 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754487', 'tblTempVendorCDR_20' ) start [2025-03-24 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754487', 'tblTempVendorCDR_20' ) end [2025-03-24 20:07:19] Production.INFO: ProcessCDR(1,14754487,1,1,2) [2025-03-24 20:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754487', 'tblTempUsageDetail_20' ) start [2025-03-24 20:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754487', 'tblTempUsageDetail_20' ) end [2025-03-24 20:07:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 20:07:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 20:07:25] Production.INFO: ==10760== Releasing lock... [2025-03-24 20:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 20:07:25] Production.INFO: 44.5 MB #Memory Used# [2025-03-24 20:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 17:08:06 [end_date_ymd] => 2025-03-24 20:08:06 [RateCDR] => 1 ) [2025-03-24 20: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-03-24 17:08:06' and `end` < '2025-03-24 20: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-03-24 20:08:18] Production.INFO: count ==2141 [2025-03-24 20:08:19] Production.ERROR: pbx CDR StartTime 2025-03-24 17:08:06 - End Time 2025-03-24 20:08:06 [2025-03-24 20:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754492', 'tblTempUsageDetail_20' ) start [2025-03-24 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754492', 'tblTempUsageDetail_20' ) end [2025-03-24 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754492', 'tblTempVendorCDR_20' ) start [2025-03-24 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754492', 'tblTempVendorCDR_20' ) end [2025-03-24 20:08:19] Production.INFO: ProcessCDR(1,14754492,1,1,2) [2025-03-24 20:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754492', 'tblTempUsageDetail_20' ) start [2025-03-24 20:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754492', 'tblTempUsageDetail_20' ) end [2025-03-24 20:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 20:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 20:08:23] Production.INFO: ==10893== Releasing lock... [2025-03-24 20:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 20:08:23] Production.INFO: 44.25 MB #Memory Used# [2025-03-24 20:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 17:09:06 [end_date_ymd] => 2025-03-24 20:09:06 [RateCDR] => 1 ) [2025-03-24 20:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 17:09:06' and `end` < '2025-03-24 20:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 20:09:19] Production.INFO: count ==2130 [2025-03-24 20:09:19] Production.ERROR: pbx CDR StartTime 2025-03-24 17:09:06 - End Time 2025-03-24 20:09:06 [2025-03-24 20:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754497', 'tblTempUsageDetail_20' ) start [2025-03-24 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754497', 'tblTempUsageDetail_20' ) end [2025-03-24 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754497', 'tblTempVendorCDR_20' ) start [2025-03-24 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754497', 'tblTempVendorCDR_20' ) end [2025-03-24 20:09:19] Production.INFO: ProcessCDR(1,14754497,1,1,2) [2025-03-24 20:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754497', 'tblTempUsageDetail_20' ) start [2025-03-24 20:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754497', 'tblTempUsageDetail_20' ) end [2025-03-24 20:09:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 20:09:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 20:09:25] Production.INFO: ==11002== Releasing lock... [2025-03-24 20:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 20:09:25] Production.INFO: 44.25 MB #Memory Used# [2025-03-24 20:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 17:10:07 [end_date_ymd] => 2025-03-24 20:10:07 [RateCDR] => 1 ) [2025-03-24 20:10: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-03-24 17:10:07' and `end` < '2025-03-24 20:10: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-03-24 20:10:20] Production.INFO: count ==2117 [2025-03-24 20:10:21] Production.ERROR: pbx CDR StartTime 2025-03-24 17:10:07 - End Time 2025-03-24 20:10:07 [2025-03-24 20:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 20:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754503', 'tblTempUsageDetail_20' ) start [2025-03-24 20:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754503', 'tblTempUsageDetail_20' ) end [2025-03-24 20:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754503', 'tblTempVendorCDR_20' ) start [2025-03-24 20:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754503', 'tblTempVendorCDR_20' ) end [2025-03-24 20:10:21] Production.INFO: ProcessCDR(1,14754503,1,1,2) [2025-03-24 20:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754503', 'tblTempUsageDetail_20' ) start [2025-03-24 20:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754503', 'tblTempUsageDetail_20' ) end [2025-03-24 20:10:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 20:10:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 20:10:25] Production.INFO: ==11123== Releasing lock... [2025-03-24 20:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 20:10:25] Production.INFO: 44.5 MB #Memory Used# [2025-03-24 20:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 17:11:06 [end_date_ymd] => 2025-03-24 20:11:06 [RateCDR] => 1 ) [2025-03-24 20: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-03-24 17:11:06' and `end` < '2025-03-24 20: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-03-24 20:11:18] Production.INFO: count ==2107 [2025-03-24 20:11:19] Production.ERROR: pbx CDR StartTime 2025-03-24 17:11:06 - End Time 2025-03-24 20:11:06 [2025-03-24 20:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754508', 'tblTempUsageDetail_20' ) start [2025-03-24 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754508', 'tblTempUsageDetail_20' ) end [2025-03-24 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754508', 'tblTempVendorCDR_20' ) start [2025-03-24 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754508', 'tblTempVendorCDR_20' ) end [2025-03-24 20:11:19] Production.INFO: ProcessCDR(1,14754508,1,1,2) [2025-03-24 20:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754508', 'tblTempUsageDetail_20' ) start [2025-03-24 20:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754508', 'tblTempUsageDetail_20' ) end [2025-03-24 20:11:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 20:11:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 20:11:25] Production.INFO: ==11216== Releasing lock... [2025-03-24 20:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 20:11:25] Production.INFO: 44.25 MB #Memory Used# [2025-03-24 20:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 17:12:06 [end_date_ymd] => 2025-03-24 20:12:06 [RateCDR] => 1 ) [2025-03-24 20: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-03-24 17:12:06' and `end` < '2025-03-24 20: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-03-24 20:12:19] Production.INFO: count ==2101 [2025-03-24 20:12:19] Production.ERROR: pbx CDR StartTime 2025-03-24 17:12:06 - End Time 2025-03-24 20:12:06 [2025-03-24 20:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754513', 'tblTempUsageDetail_20' ) start [2025-03-24 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754513', 'tblTempUsageDetail_20' ) end [2025-03-24 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754513', 'tblTempVendorCDR_20' ) start [2025-03-24 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754513', 'tblTempVendorCDR_20' ) end [2025-03-24 20:12:20] Production.INFO: ProcessCDR(1,14754513,1,1,2) [2025-03-24 20:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754513', 'tblTempUsageDetail_20' ) start [2025-03-24 20:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754513', 'tblTempUsageDetail_20' ) end [2025-03-24 20:12:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 20:12:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 20:12:24] Production.INFO: ==11303== Releasing lock... [2025-03-24 20:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 20:12:24] Production.INFO: 43.75 MB #Memory Used# [2025-03-24 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 17:13:05 [end_date_ymd] => 2025-03-24 20:13:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 17:13:05' and `end` < '2025-03-24 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-03-24 20:13:18] Production.INFO: count ==2093 [2025-03-24 20:13:19] Production.ERROR: pbx CDR StartTime 2025-03-24 17:13:05 - End Time 2025-03-24 20:13:05 [2025-03-24 20:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754518', 'tblTempUsageDetail_20' ) start [2025-03-24 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754518', 'tblTempUsageDetail_20' ) end [2025-03-24 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754518', 'tblTempVendorCDR_20' ) start [2025-03-24 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754518', 'tblTempVendorCDR_20' ) end [2025-03-24 20:13:19] Production.INFO: ProcessCDR(1,14754518,1,1,2) [2025-03-24 20:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754518', 'tblTempUsageDetail_20' ) start [2025-03-24 20:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754518', 'tblTempUsageDetail_20' ) end [2025-03-24 20:13:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 20:13:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 20:13:24] Production.INFO: ==11389== Releasing lock... [2025-03-24 20:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 20:13:24] Production.INFO: 43.75 MB #Memory Used# [2025-03-24 20:14:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 17:14:07 [end_date_ymd] => 2025-03-24 20:14:07 [RateCDR] => 1 ) [2025-03-24 20:14: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-03-24 17:14:07' and `end` < '2025-03-24 20:14: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-03-24 20:14:19] Production.INFO: count ==2087 [2025-03-24 20:14:20] Production.ERROR: pbx CDR StartTime 2025-03-24 17:14:07 - End Time 2025-03-24 20:14:07 [2025-03-24 20:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 20:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754523', 'tblTempUsageDetail_20' ) start [2025-03-24 20:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754523', 'tblTempUsageDetail_20' ) end [2025-03-24 20:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754523', 'tblTempVendorCDR_20' ) start [2025-03-24 20:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754523', 'tblTempVendorCDR_20' ) end [2025-03-24 20:14:20] Production.INFO: ProcessCDR(1,14754523,1,1,2) [2025-03-24 20:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754523', 'tblTempUsageDetail_20' ) start [2025-03-24 20:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754523', 'tblTempUsageDetail_20' ) end [2025-03-24 20:14:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 20:14:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 20:14:25] Production.INFO: ==11475== Releasing lock... [2025-03-24 20:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 20:14:25] Production.INFO: 43.5 MB #Memory Used# [2025-03-24 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 17:15:05 [end_date_ymd] => 2025-03-24 20:15:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 17:15:05' and `end` < '2025-03-24 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-03-24 20:15:18] Production.INFO: count ==2086 [2025-03-24 20:15:19] Production.ERROR: pbx CDR StartTime 2025-03-24 17:15:05 - End Time 2025-03-24 20:15:05 [2025-03-24 20:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754528', 'tblTempUsageDetail_20' ) start [2025-03-24 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754528', 'tblTempUsageDetail_20' ) end [2025-03-24 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754528', 'tblTempVendorCDR_20' ) start [2025-03-24 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754528', 'tblTempVendorCDR_20' ) end [2025-03-24 20:15:19] Production.INFO: ProcessCDR(1,14754528,1,1,2) [2025-03-24 20:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754528', 'tblTempUsageDetail_20' ) start [2025-03-24 20:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754528', 'tblTempUsageDetail_20' ) end [2025-03-24 20:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 20:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 20:15:23] Production.INFO: ==11563== Releasing lock... [2025-03-24 20:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 20:15:23] Production.INFO: 43.5 MB #Memory Used# [2025-03-24 20:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 17:16:06 [end_date_ymd] => 2025-03-24 20:16:06 [RateCDR] => 1 ) [2025-03-24 20: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-03-24 17:16:06' and `end` < '2025-03-24 20: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-03-24 20:16:19] Production.INFO: count ==2063 [2025-03-24 20:16:20] Production.ERROR: pbx CDR StartTime 2025-03-24 17:16:06 - End Time 2025-03-24 20:16:06 [2025-03-24 20:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754533', 'tblTempUsageDetail_20' ) start [2025-03-24 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754533', 'tblTempUsageDetail_20' ) end [2025-03-24 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754533', 'tblTempVendorCDR_20' ) start [2025-03-24 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754533', 'tblTempVendorCDR_20' ) end [2025-03-24 20:16:20] Production.INFO: ProcessCDR(1,14754533,1,1,2) [2025-03-24 20:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754533', 'tblTempUsageDetail_20' ) start [2025-03-24 20:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754533', 'tblTempUsageDetail_20' ) end [2025-03-24 20:16:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 20:16:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 20:16:25] Production.INFO: ==11654== Releasing lock... [2025-03-24 20:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 20:16:25] Production.INFO: 43.25 MB #Memory Used# [2025-03-24 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 17:17:05 [end_date_ymd] => 2025-03-24 20:17:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 17:17:05' and `end` < '2025-03-24 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-03-24 20:17:18] Production.INFO: count ==2053 [2025-03-24 20:17:19] Production.ERROR: pbx CDR StartTime 2025-03-24 17:17:05 - End Time 2025-03-24 20:17:05 [2025-03-24 20:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754538', 'tblTempUsageDetail_20' ) start [2025-03-24 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754538', 'tblTempUsageDetail_20' ) end [2025-03-24 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754538', 'tblTempVendorCDR_20' ) start [2025-03-24 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754538', 'tblTempVendorCDR_20' ) end [2025-03-24 20:17:19] Production.INFO: ProcessCDR(1,14754538,1,1,2) [2025-03-24 20:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754538', 'tblTempUsageDetail_20' ) start [2025-03-24 20:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754538', 'tblTempUsageDetail_20' ) end [2025-03-24 20:17:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 20:17:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 20:17:23] Production.INFO: ==11739== Releasing lock... [2025-03-24 20:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 20:17:23] Production.INFO: 43.25 MB #Memory Used# [2025-03-24 20:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 17:18:06 [end_date_ymd] => 2025-03-24 20:18:06 [RateCDR] => 1 ) [2025-03-24 20: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-03-24 17:18:06' and `end` < '2025-03-24 20: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-03-24 20:18:19] Production.INFO: count ==2047 [2025-03-24 20:18:19] Production.ERROR: pbx CDR StartTime 2025-03-24 17:18:06 - End Time 2025-03-24 20:18:06 [2025-03-24 20:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754543', 'tblTempUsageDetail_20' ) start [2025-03-24 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754543', 'tblTempUsageDetail_20' ) end [2025-03-24 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754543', 'tblTempVendorCDR_20' ) start [2025-03-24 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754543', 'tblTempVendorCDR_20' ) end [2025-03-24 20:18:19] Production.INFO: ProcessCDR(1,14754543,1,1,2) [2025-03-24 20:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754543', 'tblTempUsageDetail_20' ) start [2025-03-24 20:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754543', 'tblTempUsageDetail_20' ) end [2025-03-24 20:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 20:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 20:18:23] Production.INFO: ==11836== Releasing lock... [2025-03-24 20:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 20:18:23] Production.INFO: 43.25 MB #Memory Used# [2025-03-24 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 17:19:05 [end_date_ymd] => 2025-03-24 20:19:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 17:19:05' and `end` < '2025-03-24 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-03-24 20:19:18] Production.INFO: count ==2043 [2025-03-24 20:19:18] Production.ERROR: pbx CDR StartTime 2025-03-24 17:19:05 - End Time 2025-03-24 20:19:05 [2025-03-24 20:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754548', 'tblTempUsageDetail_20' ) start [2025-03-24 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754548', 'tblTempUsageDetail_20' ) end [2025-03-24 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754548', 'tblTempVendorCDR_20' ) start [2025-03-24 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754548', 'tblTempVendorCDR_20' ) end [2025-03-24 20:19:18] Production.INFO: ProcessCDR(1,14754548,1,1,2) [2025-03-24 20:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754548', 'tblTempUsageDetail_20' ) start [2025-03-24 20:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754548', 'tblTempUsageDetail_20' ) end [2025-03-24 20:19:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 20:19:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 20:19:24] Production.INFO: ==11921== Releasing lock... [2025-03-24 20:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 20:19:24] Production.INFO: 43 MB #Memory Used# [2025-03-24 20:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 17:20:07 [end_date_ymd] => 2025-03-24 20:20:07 [RateCDR] => 1 ) [2025-03-24 20:20: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-03-24 17:20:07' and `end` < '2025-03-24 20:20: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-03-24 20:20:19] Production.INFO: count ==2042 [2025-03-24 20:20:20] Production.ERROR: pbx CDR StartTime 2025-03-24 17:20:07 - End Time 2025-03-24 20:20:07 [2025-03-24 20:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754553', 'tblTempUsageDetail_20' ) start [2025-03-24 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754553', 'tblTempUsageDetail_20' ) end [2025-03-24 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754553', 'tblTempVendorCDR_20' ) start [2025-03-24 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754553', 'tblTempVendorCDR_20' ) end [2025-03-24 20:20:20] Production.INFO: ProcessCDR(1,14754553,1,1,2) [2025-03-24 20:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754553', 'tblTempUsageDetail_20' ) start [2025-03-24 20:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754553', 'tblTempUsageDetail_20' ) end [2025-03-24 20:20:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 20:20:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 20:20:24] Production.INFO: ==12011== Releasing lock... [2025-03-24 20:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 20:20:24] Production.INFO: 43 MB #Memory Used# [2025-03-24 20:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 17:21:06 [end_date_ymd] => 2025-03-24 20:21:06 [RateCDR] => 1 ) [2025-03-24 20: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-03-24 17:21:06' and `end` < '2025-03-24 20: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-03-24 20:21:18] Production.INFO: count ==2007 [2025-03-24 20:21:19] Production.ERROR: pbx CDR StartTime 2025-03-24 17:21:06 - End Time 2025-03-24 20:21:06 [2025-03-24 20:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754559', 'tblTempUsageDetail_20' ) start [2025-03-24 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754559', 'tblTempUsageDetail_20' ) end [2025-03-24 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754559', 'tblTempVendorCDR_20' ) start [2025-03-24 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754559', 'tblTempVendorCDR_20' ) end [2025-03-24 20:21:19] Production.INFO: ProcessCDR(1,14754559,1,1,2) [2025-03-24 20:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754559', 'tblTempUsageDetail_20' ) start [2025-03-24 20:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754559', 'tblTempUsageDetail_20' ) end [2025-03-24 20:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 20:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 20:21:23] Production.INFO: ==12099== Releasing lock... [2025-03-24 20:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 20:21:23] Production.INFO: 42.75 MB #Memory Used# [2025-03-24 20:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 17:22:06 [end_date_ymd] => 2025-03-24 20:22:06 [RateCDR] => 1 ) [2025-03-24 20:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 17:22:06' and `end` < '2025-03-24 20:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 20:22:18] Production.INFO: count ==2012 [2025-03-24 20:22:19] Production.ERROR: pbx CDR StartTime 2025-03-24 17:22:06 - End Time 2025-03-24 20:22:06 [2025-03-24 20:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754564', 'tblTempUsageDetail_20' ) start [2025-03-24 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754564', 'tblTempUsageDetail_20' ) end [2025-03-24 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754564', 'tblTempVendorCDR_20' ) start [2025-03-24 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754564', 'tblTempVendorCDR_20' ) end [2025-03-24 20:22:19] Production.INFO: ProcessCDR(1,14754564,1,1,2) [2025-03-24 20:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754564', 'tblTempUsageDetail_20' ) start [2025-03-24 20:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754564', 'tblTempUsageDetail_20' ) end [2025-03-24 20:22:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 20:22:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 20:22:24] Production.INFO: ==12183== Releasing lock... [2025-03-24 20:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 20:22:24] Production.INFO: 43.25 MB #Memory Used# [2025-03-24 20:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 17:23:06 [end_date_ymd] => 2025-03-24 20:23:06 [RateCDR] => 1 ) [2025-03-24 20: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-03-24 17:23:06' and `end` < '2025-03-24 20: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-03-24 20:23:19] Production.INFO: count ==1997 [2025-03-24 20:23:19] Production.ERROR: pbx CDR StartTime 2025-03-24 17:23:06 - End Time 2025-03-24 20:23:06 [2025-03-24 20:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754569', 'tblTempUsageDetail_20' ) start [2025-03-24 20:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754569', 'tblTempUsageDetail_20' ) end [2025-03-24 20:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754569', 'tblTempVendorCDR_20' ) start [2025-03-24 20:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754569', 'tblTempVendorCDR_20' ) end [2025-03-24 20:23:20] Production.INFO: ProcessCDR(1,14754569,1,1,2) [2025-03-24 20:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754569', 'tblTempUsageDetail_20' ) start [2025-03-24 20:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754569', 'tblTempUsageDetail_20' ) end [2025-03-24 20:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 20:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 20:23:23] Production.INFO: ==12272== Releasing lock... [2025-03-24 20:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 20:23:23] Production.INFO: 42.75 MB #Memory Used# [2025-03-24 20:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 17:24:06 [end_date_ymd] => 2025-03-24 20:24:06 [RateCDR] => 1 ) [2025-03-24 20: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-03-24 17:24:06' and `end` < '2025-03-24 20: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-03-24 20:24:19] Production.INFO: count ==1995 [2025-03-24 20:24:19] Production.ERROR: pbx CDR StartTime 2025-03-24 17:24:06 - End Time 2025-03-24 20:24:06 [2025-03-24 20:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754574', 'tblTempUsageDetail_20' ) start [2025-03-24 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754574', 'tblTempUsageDetail_20' ) end [2025-03-24 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754574', 'tblTempVendorCDR_20' ) start [2025-03-24 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754574', 'tblTempVendorCDR_20' ) end [2025-03-24 20:24:19] Production.INFO: ProcessCDR(1,14754574,1,1,2) [2025-03-24 20:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754574', 'tblTempUsageDetail_20' ) start [2025-03-24 20:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754574', 'tblTempUsageDetail_20' ) end [2025-03-24 20:24:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 20:24:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 20:24:23] Production.INFO: ==12398== Releasing lock... [2025-03-24 20:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 20:24:23] Production.INFO: 42.75 MB #Memory Used# [2025-03-24 20:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 17:25:06 [end_date_ymd] => 2025-03-24 20:25:06 [RateCDR] => 1 ) [2025-03-24 20: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-03-24 17:25:06' and `end` < '2025-03-24 20: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-03-24 20:25:18] Production.INFO: count ==1994 [2025-03-24 20:25:19] Production.ERROR: pbx CDR StartTime 2025-03-24 17:25:06 - End Time 2025-03-24 20:25:06 [2025-03-24 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754579', 'tblTempUsageDetail_20' ) start [2025-03-24 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754579', 'tblTempUsageDetail_20' ) end [2025-03-24 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754579', 'tblTempVendorCDR_20' ) start [2025-03-24 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754579', 'tblTempVendorCDR_20' ) end [2025-03-24 20:25:19] Production.INFO: ProcessCDR(1,14754579,1,1,2) [2025-03-24 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754579', 'tblTempUsageDetail_20' ) start [2025-03-24 20:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754579', 'tblTempUsageDetail_20' ) end [2025-03-24 20:25:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 20:25:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 20:25:25] Production.INFO: ==12482== Releasing lock... [2025-03-24 20:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 20:25:25] Production.INFO: 43 MB #Memory Used# [2025-03-24 20:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 17:26:06 [end_date_ymd] => 2025-03-24 20:26:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 17:26:06' and `end` < '2025-03-24 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-03-24 20:26:18] Production.INFO: count ==1996 [2025-03-24 20:26:19] Production.ERROR: pbx CDR StartTime 2025-03-24 17:26:06 - End Time 2025-03-24 20:26:06 [2025-03-24 20:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754584', 'tblTempUsageDetail_20' ) start [2025-03-24 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754584', 'tblTempUsageDetail_20' ) end [2025-03-24 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754584', 'tblTempVendorCDR_20' ) start [2025-03-24 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754584', 'tblTempVendorCDR_20' ) end [2025-03-24 20:26:19] Production.INFO: ProcessCDR(1,14754584,1,1,2) [2025-03-24 20:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754584', 'tblTempUsageDetail_20' ) start [2025-03-24 20:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754584', 'tblTempUsageDetail_20' ) end [2025-03-24 20:26:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 20:26:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 20:26:25] Production.INFO: ==12575== Releasing lock... [2025-03-24 20:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 20:26:25] Production.INFO: 43 MB #Memory Used# [2025-03-24 20:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 17:27:06 [end_date_ymd] => 2025-03-24 20:27:06 [RateCDR] => 1 ) [2025-03-24 20: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-03-24 17:27:06' and `end` < '2025-03-24 20: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-03-24 20:27:19] Production.INFO: count ==1982 [2025-03-24 20:27:19] Production.ERROR: pbx CDR StartTime 2025-03-24 17:27:06 - End Time 2025-03-24 20:27:06 [2025-03-24 20:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754589', 'tblTempUsageDetail_20' ) start [2025-03-24 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754589', 'tblTempUsageDetail_20' ) end [2025-03-24 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754589', 'tblTempVendorCDR_20' ) start [2025-03-24 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754589', 'tblTempVendorCDR_20' ) end [2025-03-24 20:27:19] Production.INFO: ProcessCDR(1,14754589,1,1,2) [2025-03-24 20:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754589', 'tblTempUsageDetail_20' ) start [2025-03-24 20:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754589', 'tblTempUsageDetail_20' ) end [2025-03-24 20:27:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 20:27:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 20:27:25] Production.INFO: ==12661== Releasing lock... [2025-03-24 20:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 20:27:25] Production.INFO: 42.75 MB #Memory Used# [2025-03-24 20:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 17:28:06 [end_date_ymd] => 2025-03-24 20:28:06 [RateCDR] => 1 ) [2025-03-24 20: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-03-24 17:28:06' and `end` < '2025-03-24 20: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-03-24 20:28:19] Production.INFO: count ==1966 [2025-03-24 20:28:19] Production.ERROR: pbx CDR StartTime 2025-03-24 17:28:06 - End Time 2025-03-24 20:28:06 [2025-03-24 20:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754594', 'tblTempUsageDetail_20' ) start [2025-03-24 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754594', 'tblTempUsageDetail_20' ) end [2025-03-24 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754594', 'tblTempVendorCDR_20' ) start [2025-03-24 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754594', 'tblTempVendorCDR_20' ) end [2025-03-24 20:28:19] Production.INFO: ProcessCDR(1,14754594,1,1,2) [2025-03-24 20:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754594', 'tblTempUsageDetail_20' ) start [2025-03-24 20:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754594', 'tblTempUsageDetail_20' ) end [2025-03-24 20:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 20:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 20:28:23] Production.INFO: ==12748== Releasing lock... [2025-03-24 20:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 20:28:23] Production.INFO: 42.5 MB #Memory Used# [2025-03-24 20:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 17:29:06 [end_date_ymd] => 2025-03-24 20:29:06 [RateCDR] => 1 ) [2025-03-24 20:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 17:29:06' and `end` < '2025-03-24 20:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 20:29:19] Production.INFO: count ==1952 [2025-03-24 20:29:19] Production.ERROR: pbx CDR StartTime 2025-03-24 17:29:06 - End Time 2025-03-24 20:29:06 [2025-03-24 20:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754599', 'tblTempUsageDetail_20' ) start [2025-03-24 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754599', 'tblTempUsageDetail_20' ) end [2025-03-24 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754599', 'tblTempVendorCDR_20' ) start [2025-03-24 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754599', 'tblTempVendorCDR_20' ) end [2025-03-24 20:29:19] Production.INFO: ProcessCDR(1,14754599,1,1,2) [2025-03-24 20:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754599', 'tblTempUsageDetail_20' ) start [2025-03-24 20:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754599', 'tblTempUsageDetail_20' ) end [2025-03-24 20:29:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 20:29:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 20:29:25] Production.INFO: ==12833== Releasing lock... [2025-03-24 20:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 20:29:25] Production.INFO: 42.5 MB #Memory Used# [2025-03-24 20:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 17:30:07 [end_date_ymd] => 2025-03-24 20:30:07 [RateCDR] => 1 ) [2025-03-24 20: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-03-24 17:30:07' and `end` < '2025-03-24 20: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-03-24 20:30:19] Production.INFO: count ==1952 [2025-03-24 20:30:20] Production.ERROR: pbx CDR StartTime 2025-03-24 17:30:07 - End Time 2025-03-24 20:30:07 [2025-03-24 20:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754605', 'tblTempUsageDetail_20' ) start [2025-03-24 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754605', 'tblTempUsageDetail_20' ) end [2025-03-24 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754605', 'tblTempVendorCDR_20' ) start [2025-03-24 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754605', 'tblTempVendorCDR_20' ) end [2025-03-24 20:30:20] Production.INFO: ProcessCDR(1,14754605,1,1,2) [2025-03-24 20:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754605', 'tblTempUsageDetail_20' ) start [2025-03-24 20:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754605', 'tblTempUsageDetail_20' ) end [2025-03-24 20:30:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 20:30:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 20:30:25] Production.INFO: ==12928== Releasing lock... [2025-03-24 20:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 20:30:25] Production.INFO: 42.5 MB #Memory Used# [2025-03-24 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 17:31:05 [end_date_ymd] => 2025-03-24 20:31:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 17:31:05' and `end` < '2025-03-24 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-03-24 20:31:18] Production.INFO: count ==1911 [2025-03-24 20:31:19] Production.ERROR: pbx CDR StartTime 2025-03-24 17:31:05 - End Time 2025-03-24 20:31:05 [2025-03-24 20:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754610', 'tblTempUsageDetail_20' ) start [2025-03-24 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754610', 'tblTempUsageDetail_20' ) end [2025-03-24 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754610', 'tblTempVendorCDR_20' ) start [2025-03-24 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754610', 'tblTempVendorCDR_20' ) end [2025-03-24 20:31:19] Production.INFO: ProcessCDR(1,14754610,1,1,2) [2025-03-24 20:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754610', 'tblTempUsageDetail_20' ) start [2025-03-24 20:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754610', 'tblTempUsageDetail_20' ) end [2025-03-24 20:31:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 20:31:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 20:31:23] Production.INFO: ==13019== Releasing lock... [2025-03-24 20:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 20:31:23] Production.INFO: 42.25 MB #Memory Used# [2025-03-24 20:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 17:32:06 [end_date_ymd] => 2025-03-24 20:32:06 [RateCDR] => 1 ) [2025-03-24 20: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-03-24 17:32:06' and `end` < '2025-03-24 20: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-03-24 20:32:19] Production.INFO: count ==1918 [2025-03-24 20:32:19] Production.ERROR: pbx CDR StartTime 2025-03-24 17:32:06 - End Time 2025-03-24 20:32:06 [2025-03-24 20:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754615', 'tblTempUsageDetail_20' ) start [2025-03-24 20:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754615', 'tblTempUsageDetail_20' ) end [2025-03-24 20:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754615', 'tblTempVendorCDR_20' ) start [2025-03-24 20:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754615', 'tblTempVendorCDR_20' ) end [2025-03-24 20:32:20] Production.INFO: ProcessCDR(1,14754615,1,1,2) [2025-03-24 20:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754615', 'tblTempUsageDetail_20' ) start [2025-03-24 20:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754615', 'tblTempUsageDetail_20' ) end [2025-03-24 20:32:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 20:32:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 20:32:25] Production.INFO: ==13105== Releasing lock... [2025-03-24 20:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 20:32:25] Production.INFO: 42.25 MB #Memory Used# [2025-03-24 20:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 17:33:06 [end_date_ymd] => 2025-03-24 20:33:06 [RateCDR] => 1 ) [2025-03-24 20:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 17:33:06' and `end` < '2025-03-24 20:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 20:33:19] Production.INFO: count ==1920 [2025-03-24 20:33:19] Production.ERROR: pbx CDR StartTime 2025-03-24 17:33:06 - End Time 2025-03-24 20:33:06 [2025-03-24 20:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754620', 'tblTempUsageDetail_20' ) start [2025-03-24 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754620', 'tblTempUsageDetail_20' ) end [2025-03-24 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754620', 'tblTempVendorCDR_20' ) start [2025-03-24 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754620', 'tblTempVendorCDR_20' ) end [2025-03-24 20:33:19] Production.INFO: ProcessCDR(1,14754620,1,1,2) [2025-03-24 20:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754620', 'tblTempUsageDetail_20' ) start [2025-03-24 20:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754620', 'tblTempUsageDetail_20' ) end [2025-03-24 20:33:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 20:33:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 20:33:23] Production.INFO: ==13191== Releasing lock... [2025-03-24 20:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 20:33:23] Production.INFO: 42.25 MB #Memory Used# [2025-03-24 20:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 17:34:06 [end_date_ymd] => 2025-03-24 20:34:06 [RateCDR] => 1 ) [2025-03-24 20: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-03-24 17:34:06' and `end` < '2025-03-24 20: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-03-24 20:34:18] Production.INFO: count ==1918 [2025-03-24 20:34:19] Production.ERROR: pbx CDR StartTime 2025-03-24 17:34:06 - End Time 2025-03-24 20:34:06 [2025-03-24 20:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754625', 'tblTempUsageDetail_20' ) start [2025-03-24 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754625', 'tblTempUsageDetail_20' ) end [2025-03-24 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754625', 'tblTempVendorCDR_20' ) start [2025-03-24 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754625', 'tblTempVendorCDR_20' ) end [2025-03-24 20:34:19] Production.INFO: ProcessCDR(1,14754625,1,1,2) [2025-03-24 20:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754625', 'tblTempUsageDetail_20' ) start [2025-03-24 20:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754625', 'tblTempUsageDetail_20' ) end [2025-03-24 20:34:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 20:34:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 20:34:23] Production.INFO: ==13278== Releasing lock... [2025-03-24 20:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 20:34:23] Production.INFO: 42.5 MB #Memory Used# [2025-03-24 20:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 17:35:06 [end_date_ymd] => 2025-03-24 20:35:06 [RateCDR] => 1 ) [2025-03-24 20: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-03-24 17:35:06' and `end` < '2025-03-24 20: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-03-24 20:35:18] Production.INFO: count ==1916 [2025-03-24 20:35:19] Production.ERROR: pbx CDR StartTime 2025-03-24 17:35:06 - End Time 2025-03-24 20:35:06 [2025-03-24 20:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754630', 'tblTempUsageDetail_20' ) start [2025-03-24 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754630', 'tblTempUsageDetail_20' ) end [2025-03-24 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754630', 'tblTempVendorCDR_20' ) start [2025-03-24 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754630', 'tblTempVendorCDR_20' ) end [2025-03-24 20:35:19] Production.INFO: ProcessCDR(1,14754630,1,1,2) [2025-03-24 20:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754630', 'tblTempUsageDetail_20' ) start [2025-03-24 20:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754630', 'tblTempUsageDetail_20' ) end [2025-03-24 20:35:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 20:35:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 20:35:25] Production.INFO: ==13362== Releasing lock... [2025-03-24 20:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 20:35:25] Production.INFO: 42.25 MB #Memory Used# [2025-03-24 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 17:36:05 [end_date_ymd] => 2025-03-24 20:36:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 17:36:05' and `end` < '2025-03-24 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-03-24 20:36:18] Production.INFO: count ==1909 [2025-03-24 20:36:19] Production.ERROR: pbx CDR StartTime 2025-03-24 17:36:05 - End Time 2025-03-24 20:36:05 [2025-03-24 20:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754635', 'tblTempUsageDetail_20' ) start [2025-03-24 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754635', 'tblTempUsageDetail_20' ) end [2025-03-24 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754635', 'tblTempVendorCDR_20' ) start [2025-03-24 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754635', 'tblTempVendorCDR_20' ) end [2025-03-24 20:36:19] Production.INFO: ProcessCDR(1,14754635,1,1,2) [2025-03-24 20:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754635', 'tblTempUsageDetail_20' ) start [2025-03-24 20:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754635', 'tblTempUsageDetail_20' ) end [2025-03-24 20:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 20:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 20:36:23] Production.INFO: ==13447== Releasing lock... [2025-03-24 20:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 20:36:23] Production.INFO: 42 MB #Memory Used# [2025-03-24 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 17:37:05 [end_date_ymd] => 2025-03-24 20:37:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 17:37:05' and `end` < '2025-03-24 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-03-24 20:37:18] Production.INFO: count ==1902 [2025-03-24 20:37:19] Production.ERROR: pbx CDR StartTime 2025-03-24 17:37:05 - End Time 2025-03-24 20:37:05 [2025-03-24 20:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754640', 'tblTempUsageDetail_20' ) start [2025-03-24 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754640', 'tblTempUsageDetail_20' ) end [2025-03-24 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754640', 'tblTempVendorCDR_20' ) start [2025-03-24 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754640', 'tblTempVendorCDR_20' ) end [2025-03-24 20:37:19] Production.INFO: ProcessCDR(1,14754640,1,1,2) [2025-03-24 20:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754640', 'tblTempUsageDetail_20' ) start [2025-03-24 20:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754640', 'tblTempUsageDetail_20' ) end [2025-03-24 20:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 20:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 20:37:23] Production.INFO: ==13543== Releasing lock... [2025-03-24 20:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 20:37:23] Production.INFO: 42.25 MB #Memory Used# [2025-03-24 20:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 17:38:06 [end_date_ymd] => 2025-03-24 20:38:06 [RateCDR] => 1 ) [2025-03-24 20: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-03-24 17:38:06' and `end` < '2025-03-24 20: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-03-24 20:38:18] Production.INFO: count ==1892 [2025-03-24 20:38:19] Production.ERROR: pbx CDR StartTime 2025-03-24 17:38:06 - End Time 2025-03-24 20:38:06 [2025-03-24 20:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754645', 'tblTempUsageDetail_20' ) start [2025-03-24 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754645', 'tblTempUsageDetail_20' ) end [2025-03-24 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754645', 'tblTempVendorCDR_20' ) start [2025-03-24 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754645', 'tblTempVendorCDR_20' ) end [2025-03-24 20:38:19] Production.INFO: ProcessCDR(1,14754645,1,1,2) [2025-03-24 20:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754645', 'tblTempUsageDetail_20' ) start [2025-03-24 20:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754645', 'tblTempUsageDetail_20' ) end [2025-03-24 20:38:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 20:38:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 20:38:25] Production.INFO: ==13630== Releasing lock... [2025-03-24 20:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 20:38:25] Production.INFO: 42.25 MB #Memory Used# [2025-03-24 20:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 17:39:06 [end_date_ymd] => 2025-03-24 20:39:06 [RateCDR] => 1 ) [2025-03-24 20: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-03-24 17:39:06' and `end` < '2025-03-24 20: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-03-24 20:39:19] Production.INFO: count ==1878 [2025-03-24 20:39:19] Production.ERROR: pbx CDR StartTime 2025-03-24 17:39:06 - End Time 2025-03-24 20:39:06 [2025-03-24 20:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754650', 'tblTempUsageDetail_20' ) start [2025-03-24 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754650', 'tblTempUsageDetail_20' ) end [2025-03-24 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754650', 'tblTempVendorCDR_20' ) start [2025-03-24 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754650', 'tblTempVendorCDR_20' ) end [2025-03-24 20:39:19] Production.INFO: ProcessCDR(1,14754650,1,1,2) [2025-03-24 20:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754650', 'tblTempUsageDetail_20' ) start [2025-03-24 20:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754650', 'tblTempUsageDetail_20' ) end [2025-03-24 20:39:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 20:39:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 20:39:25] Production.INFO: ==13770== Releasing lock... [2025-03-24 20:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 20:39:25] Production.INFO: 42 MB #Memory Used# [2025-03-24 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 17:40:06 [end_date_ymd] => 2025-03-24 20:40:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 17:40:06' and `end` < '2025-03-24 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-03-24 20:40:18] Production.INFO: count ==1861 [2025-03-24 20:40:19] Production.ERROR: pbx CDR StartTime 2025-03-24 17:40:06 - End Time 2025-03-24 20:40:06 [2025-03-24 20:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754656', 'tblTempUsageDetail_20' ) start [2025-03-24 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754656', 'tblTempUsageDetail_20' ) end [2025-03-24 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754656', 'tblTempVendorCDR_20' ) start [2025-03-24 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754656', 'tblTempVendorCDR_20' ) end [2025-03-24 20:40:19] Production.INFO: ProcessCDR(1,14754656,1,1,2) [2025-03-24 20:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754656', 'tblTempUsageDetail_20' ) start [2025-03-24 20:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754656', 'tblTempUsageDetail_20' ) end [2025-03-24 20:40:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 20:40:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 20:40:25] Production.INFO: ==13871== Releasing lock... [2025-03-24 20:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 20:40:25] Production.INFO: 42 MB #Memory Used# [2025-03-24 20:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 17:41:06 [end_date_ymd] => 2025-03-24 20:41:06 [RateCDR] => 1 ) [2025-03-24 20:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 17:41:06' and `end` < '2025-03-24 20:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 20:41:18] Production.INFO: count ==1811 [2025-03-24 20:41:19] Production.ERROR: pbx CDR StartTime 2025-03-24 17:41:06 - End Time 2025-03-24 20:41:06 [2025-03-24 20:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754661', 'tblTempUsageDetail_20' ) start [2025-03-24 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754661', 'tblTempUsageDetail_20' ) end [2025-03-24 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754661', 'tblTempVendorCDR_20' ) start [2025-03-24 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754661', 'tblTempVendorCDR_20' ) end [2025-03-24 20:41:19] Production.INFO: ProcessCDR(1,14754661,1,1,2) [2025-03-24 20:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754661', 'tblTempUsageDetail_20' ) start [2025-03-24 20:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754661', 'tblTempUsageDetail_20' ) end [2025-03-24 20:41:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 20:41:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 20:41:24] Production.INFO: ==13973== Releasing lock... [2025-03-24 20:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 20:41:24] Production.INFO: 41.75 MB #Memory Used# [2025-03-24 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 17:42:05 [end_date_ymd] => 2025-03-24 20:42:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 17:42:05' and `end` < '2025-03-24 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-03-24 20:42:18] Production.INFO: count ==1813 [2025-03-24 20:42:19] Production.ERROR: pbx CDR StartTime 2025-03-24 17:42:05 - End Time 2025-03-24 20:42:05 [2025-03-24 20:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754666', 'tblTempUsageDetail_20' ) start [2025-03-24 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754666', 'tblTempUsageDetail_20' ) end [2025-03-24 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754666', 'tblTempVendorCDR_20' ) start [2025-03-24 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754666', 'tblTempVendorCDR_20' ) end [2025-03-24 20:42:19] Production.INFO: ProcessCDR(1,14754666,1,1,2) [2025-03-24 20:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754666', 'tblTempUsageDetail_20' ) start [2025-03-24 20:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754666', 'tblTempUsageDetail_20' ) end [2025-03-24 20:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 20:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 20:42:23] Production.INFO: ==14077== Releasing lock... [2025-03-24 20:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 20:42:23] Production.INFO: 41.75 MB #Memory Used# [2025-03-24 20:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 17:43:06 [end_date_ymd] => 2025-03-24 20:43:06 [RateCDR] => 1 ) [2025-03-24 20: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-03-24 17:43:06' and `end` < '2025-03-24 20: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-03-24 20:43:18] Production.INFO: count ==1813 [2025-03-24 20:43:19] Production.ERROR: pbx CDR StartTime 2025-03-24 17:43:06 - End Time 2025-03-24 20:43:06 [2025-03-24 20:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754671', 'tblTempUsageDetail_20' ) start [2025-03-24 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754671', 'tblTempUsageDetail_20' ) end [2025-03-24 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754671', 'tblTempVendorCDR_20' ) start [2025-03-24 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754671', 'tblTempVendorCDR_20' ) end [2025-03-24 20:43:19] Production.INFO: ProcessCDR(1,14754671,1,1,2) [2025-03-24 20:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754671', 'tblTempUsageDetail_20' ) start [2025-03-24 20:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754671', 'tblTempUsageDetail_20' ) end [2025-03-24 20:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 20:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 20:43:23] Production.INFO: ==14177== Releasing lock... [2025-03-24 20:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 20:43:23] Production.INFO: 41.75 MB #Memory Used# [2025-03-24 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 17:44:05 [end_date_ymd] => 2025-03-24 20:44:05 [RateCDR] => 1 ) [2025-03-24 20:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 17:44:05' and `end` < '2025-03-24 20:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 20:44:18] Production.INFO: count ==1810 [2025-03-24 20:44:18] Production.ERROR: pbx CDR StartTime 2025-03-24 17:44:05 - End Time 2025-03-24 20:44:05 [2025-03-24 20:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754676', 'tblTempUsageDetail_20' ) start [2025-03-24 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754676', 'tblTempUsageDetail_20' ) end [2025-03-24 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754676', 'tblTempVendorCDR_20' ) start [2025-03-24 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754676', 'tblTempVendorCDR_20' ) end [2025-03-24 20:44:18] Production.INFO: ProcessCDR(1,14754676,1,1,2) [2025-03-24 20:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754676', 'tblTempUsageDetail_20' ) start [2025-03-24 20:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754676', 'tblTempUsageDetail_20' ) end [2025-03-24 20:44:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 20:44:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 20:44:24] Production.INFO: ==14273== Releasing lock... [2025-03-24 20:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 20:44:24] Production.INFO: 41.75 MB #Memory Used# [2025-03-24 20:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 17:45:06 [end_date_ymd] => 2025-03-24 20:45:06 [RateCDR] => 1 ) [2025-03-24 20: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-03-24 17:45:06' and `end` < '2025-03-24 20: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-03-24 20:45:18] Production.INFO: count ==1802 [2025-03-24 20:45:19] Production.ERROR: pbx CDR StartTime 2025-03-24 17:45:06 - End Time 2025-03-24 20:45:06 [2025-03-24 20:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754681', 'tblTempUsageDetail_20' ) start [2025-03-24 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754681', 'tblTempUsageDetail_20' ) end [2025-03-24 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754681', 'tblTempVendorCDR_20' ) start [2025-03-24 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754681', 'tblTempVendorCDR_20' ) end [2025-03-24 20:45:19] Production.INFO: ProcessCDR(1,14754681,1,1,2) [2025-03-24 20:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754681', 'tblTempUsageDetail_20' ) start [2025-03-24 20:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754681', 'tblTempUsageDetail_20' ) end [2025-03-24 20:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 20:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 20:45:23] Production.INFO: ==14370== Releasing lock... [2025-03-24 20:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 20:45:23] Production.INFO: 41.5 MB #Memory Used# [2025-03-24 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 17:46:05 [end_date_ymd] => 2025-03-24 20:46:05 [RateCDR] => 1 ) [2025-03-24 20:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 17:46:05' and `end` < '2025-03-24 20:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 20:46:18] Production.INFO: count ==1801 [2025-03-24 20:46:19] Production.ERROR: pbx CDR StartTime 2025-03-24 17:46:05 - End Time 2025-03-24 20:46:05 [2025-03-24 20:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754686', 'tblTempUsageDetail_20' ) start [2025-03-24 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754686', 'tblTempUsageDetail_20' ) end [2025-03-24 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754686', 'tblTempVendorCDR_20' ) start [2025-03-24 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754686', 'tblTempVendorCDR_20' ) end [2025-03-24 20:46:19] Production.INFO: ProcessCDR(1,14754686,1,1,2) [2025-03-24 20:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754686', 'tblTempUsageDetail_20' ) start [2025-03-24 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754686', 'tblTempUsageDetail_20' ) end [2025-03-24 20:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 20:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 20:46:23] Production.INFO: ==14467== Releasing lock... [2025-03-24 20:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 20:46:23] Production.INFO: 41.25 MB #Memory Used# [2025-03-24 20:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 17:47:06 [end_date_ymd] => 2025-03-24 20:47:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 17:47:06' and `end` < '2025-03-24 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-03-24 20:47:18] Production.INFO: count ==1796 [2025-03-24 20:47:19] Production.ERROR: pbx CDR StartTime 2025-03-24 17:47:06 - End Time 2025-03-24 20:47:06 [2025-03-24 20:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754691', 'tblTempUsageDetail_20' ) start [2025-03-24 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754691', 'tblTempUsageDetail_20' ) end [2025-03-24 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754691', 'tblTempVendorCDR_20' ) start [2025-03-24 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754691', 'tblTempVendorCDR_20' ) end [2025-03-24 20:47:19] Production.INFO: ProcessCDR(1,14754691,1,1,2) [2025-03-24 20:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754691', 'tblTempUsageDetail_20' ) start [2025-03-24 20:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754691', 'tblTempUsageDetail_20' ) end [2025-03-24 20:47:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 20:47:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 20:47:25] Production.INFO: ==14564== Releasing lock... [2025-03-24 20:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 20:47:25] Production.INFO: 41.5 MB #Memory Used# [2025-03-24 20:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 17:48:06 [end_date_ymd] => 2025-03-24 20:48:06 [RateCDR] => 1 ) [2025-03-24 20: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-03-24 17:48:06' and `end` < '2025-03-24 20: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-03-24 20:48:18] Production.INFO: count ==1794 [2025-03-24 20:48:19] Production.ERROR: pbx CDR StartTime 2025-03-24 17:48:06 - End Time 2025-03-24 20:48:06 [2025-03-24 20:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754696', 'tblTempUsageDetail_20' ) start [2025-03-24 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754696', 'tblTempUsageDetail_20' ) end [2025-03-24 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754696', 'tblTempVendorCDR_20' ) start [2025-03-24 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754696', 'tblTempVendorCDR_20' ) end [2025-03-24 20:48:19] Production.INFO: ProcessCDR(1,14754696,1,1,2) [2025-03-24 20:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754696', 'tblTempUsageDetail_20' ) start [2025-03-24 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754696', 'tblTempUsageDetail_20' ) end [2025-03-24 20:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 20:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 20:48:22] Production.INFO: ==14666== Releasing lock... [2025-03-24 20:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 20:48:22] Production.INFO: 41.75 MB #Memory Used# [2025-03-24 20:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 17:49:06 [end_date_ymd] => 2025-03-24 20:49:06 [RateCDR] => 1 ) [2025-03-24 20: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-03-24 17:49:06' and `end` < '2025-03-24 20: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-03-24 20:49:19] Production.INFO: count ==1790 [2025-03-24 20:49:19] Production.ERROR: pbx CDR StartTime 2025-03-24 17:49:06 - End Time 2025-03-24 20:49:06 [2025-03-24 20:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754701', 'tblTempUsageDetail_20' ) start [2025-03-24 20:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754701', 'tblTempUsageDetail_20' ) end [2025-03-24 20:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754701', 'tblTempVendorCDR_20' ) start [2025-03-24 20:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754701', 'tblTempVendorCDR_20' ) end [2025-03-24 20:49:20] Production.INFO: ProcessCDR(1,14754701,1,1,2) [2025-03-24 20:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754701', 'tblTempUsageDetail_20' ) start [2025-03-24 20:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754701', 'tblTempUsageDetail_20' ) end [2025-03-24 20:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 20:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 20:49:23] Production.INFO: ==14767== Releasing lock... [2025-03-24 20:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 20:49:23] Production.INFO: 41.5 MB #Memory Used# [2025-03-24 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 17:50:06 [end_date_ymd] => 2025-03-24 20:50:06 [RateCDR] => 1 ) [2025-03-24 20:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 17:50:06' and `end` < '2025-03-24 20:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 20:50:19] Production.INFO: count ==1789 [2025-03-24 20:50:19] Production.ERROR: pbx CDR StartTime 2025-03-24 17:50:06 - End Time 2025-03-24 20:50:06 [2025-03-24 20:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754707', 'tblTempUsageDetail_20' ) start [2025-03-24 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754707', 'tblTempUsageDetail_20' ) end [2025-03-24 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754707', 'tblTempVendorCDR_20' ) start [2025-03-24 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754707', 'tblTempVendorCDR_20' ) end [2025-03-24 20:50:19] Production.INFO: ProcessCDR(1,14754707,1,1,2) [2025-03-24 20:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754707', 'tblTempUsageDetail_20' ) start [2025-03-24 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754707', 'tblTempUsageDetail_20' ) end [2025-03-24 20:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 20:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 20:50:23] Production.INFO: ==14869== Releasing lock... [2025-03-24 20:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 20:50:23] Production.INFO: 41.75 MB #Memory Used# [2025-03-24 20:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 17:51:06 [end_date_ymd] => 2025-03-24 20:51:06 [RateCDR] => 1 ) [2025-03-24 20: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-03-24 17:51:06' and `end` < '2025-03-24 20: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-03-24 20:51:19] Production.INFO: count ==1736 [2025-03-24 20:51:19] Production.ERROR: pbx CDR StartTime 2025-03-24 17:51:06 - End Time 2025-03-24 20:51:06 [2025-03-24 20:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754712', 'tblTempUsageDetail_20' ) start [2025-03-24 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754712', 'tblTempUsageDetail_20' ) end [2025-03-24 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754712', 'tblTempVendorCDR_20' ) start [2025-03-24 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754712', 'tblTempVendorCDR_20' ) end [2025-03-24 20:51:19] Production.INFO: ProcessCDR(1,14754712,1,1,2) [2025-03-24 20:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754712', 'tblTempUsageDetail_20' ) start [2025-03-24 20:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754712', 'tblTempUsageDetail_20' ) end [2025-03-24 20:51:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 20:51:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 20:51:24] Production.INFO: ==14967== Releasing lock... [2025-03-24 20:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 20:51:24] Production.INFO: 41 MB #Memory Used# [2025-03-24 20:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 17:52:06 [end_date_ymd] => 2025-03-24 20:52:06 [RateCDR] => 1 ) [2025-03-24 20: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-03-24 17:52:06' and `end` < '2025-03-24 20: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-03-24 20:52:18] Production.INFO: count ==1723 [2025-03-24 20:52:19] Production.ERROR: pbx CDR StartTime 2025-03-24 17:52:06 - End Time 2025-03-24 20:52:06 [2025-03-24 20:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754717', 'tblTempUsageDetail_20' ) start [2025-03-24 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754717', 'tblTempUsageDetail_20' ) end [2025-03-24 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754717', 'tblTempVendorCDR_20' ) start [2025-03-24 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754717', 'tblTempVendorCDR_20' ) end [2025-03-24 20:52:19] Production.INFO: ProcessCDR(1,14754717,1,1,2) [2025-03-24 20:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754717', 'tblTempUsageDetail_20' ) start [2025-03-24 20:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754717', 'tblTempUsageDetail_20' ) end [2025-03-24 20:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 20:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 20:52:23] Production.INFO: ==15062== Releasing lock... [2025-03-24 20:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 20:52:23] Production.INFO: 41.25 MB #Memory Used# [2025-03-24 20:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 17:53:06 [end_date_ymd] => 2025-03-24 20:53:06 [RateCDR] => 1 ) [2025-03-24 20: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-03-24 17:53:06' and `end` < '2025-03-24 20: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-03-24 20:53:19] Production.INFO: count ==1709 [2025-03-24 20:53:19] Production.ERROR: pbx CDR StartTime 2025-03-24 17:53:06 - End Time 2025-03-24 20:53:06 [2025-03-24 20:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754722', 'tblTempUsageDetail_20' ) start [2025-03-24 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754722', 'tblTempUsageDetail_20' ) end [2025-03-24 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754722', 'tblTempVendorCDR_20' ) start [2025-03-24 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754722', 'tblTempVendorCDR_20' ) end [2025-03-24 20:53:19] Production.INFO: ProcessCDR(1,14754722,1,1,2) [2025-03-24 20:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754722', 'tblTempUsageDetail_20' ) start [2025-03-24 20:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754722', 'tblTempUsageDetail_20' ) end [2025-03-24 20:53:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 20:53:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 20:53:25] Production.INFO: ==15162== Releasing lock... [2025-03-24 20:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 20:53:25] Production.INFO: 40.5 MB #Memory Used# [2025-03-24 20:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 17:54:06 [end_date_ymd] => 2025-03-24 20:54:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 17:54:06' and `end` < '2025-03-24 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-03-24 20:54:18] Production.INFO: count ==1695 [2025-03-24 20:54:19] Production.ERROR: pbx CDR StartTime 2025-03-24 17:54:06 - End Time 2025-03-24 20:54:06 [2025-03-24 20:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754727', 'tblTempUsageDetail_20' ) start [2025-03-24 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754727', 'tblTempUsageDetail_20' ) end [2025-03-24 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754727', 'tblTempVendorCDR_20' ) start [2025-03-24 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754727', 'tblTempVendorCDR_20' ) end [2025-03-24 20:54:19] Production.INFO: ProcessCDR(1,14754727,1,1,2) [2025-03-24 20:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754727', 'tblTempUsageDetail_20' ) start [2025-03-24 20:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754727', 'tblTempUsageDetail_20' ) end [2025-03-24 20:54:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 20:54:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 20:54:24] Production.INFO: ==15257== Releasing lock... [2025-03-24 20:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 20:54:24] Production.INFO: 40.75 MB #Memory Used# [2025-03-24 20:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 17:55:06 [end_date_ymd] => 2025-03-24 20:55:06 [RateCDR] => 1 ) [2025-03-24 20: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-03-24 17:55:06' and `end` < '2025-03-24 20: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-03-24 20:55:19] Production.INFO: count ==1677 [2025-03-24 20:55:19] Production.ERROR: pbx CDR StartTime 2025-03-24 17:55:06 - End Time 2025-03-24 20:55:06 [2025-03-24 20:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754732', 'tblTempUsageDetail_20' ) start [2025-03-24 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754732', 'tblTempUsageDetail_20' ) end [2025-03-24 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754732', 'tblTempVendorCDR_20' ) start [2025-03-24 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754732', 'tblTempVendorCDR_20' ) end [2025-03-24 20:55:19] Production.INFO: ProcessCDR(1,14754732,1,1,2) [2025-03-24 20:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754732', 'tblTempUsageDetail_20' ) start [2025-03-24 20:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754732', 'tblTempUsageDetail_20' ) end [2025-03-24 20:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 20:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 20:55:23] Production.INFO: ==15397== Releasing lock... [2025-03-24 20:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 20:55:23] Production.INFO: 40.75 MB #Memory Used# [2025-03-24 20:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 17:56:06 [end_date_ymd] => 2025-03-24 20:56:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 17:56:06' and `end` < '2025-03-24 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-03-24 20:56:19] Production.INFO: count ==1674 [2025-03-24 20:56:19] Production.ERROR: pbx CDR StartTime 2025-03-24 17:56:06 - End Time 2025-03-24 20:56:06 [2025-03-24 20:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754737', 'tblTempUsageDetail_20' ) start [2025-03-24 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754737', 'tblTempUsageDetail_20' ) end [2025-03-24 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754737', 'tblTempVendorCDR_20' ) start [2025-03-24 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754737', 'tblTempVendorCDR_20' ) end [2025-03-24 20:56:19] Production.INFO: ProcessCDR(1,14754737,1,1,2) [2025-03-24 20:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754737', 'tblTempUsageDetail_20' ) start [2025-03-24 20:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754737', 'tblTempUsageDetail_20' ) end [2025-03-24 20:56:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 20:56:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 20:56:25] Production.INFO: ==15505== Releasing lock... [2025-03-24 20:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 20:56:25] Production.INFO: 40.5 MB #Memory Used# [2025-03-24 20:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 17:57:06 [end_date_ymd] => 2025-03-24 20:57:06 [RateCDR] => 1 ) [2025-03-24 20: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-03-24 17:57:06' and `end` < '2025-03-24 20: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-03-24 20:57:18] Production.INFO: count ==1671 [2025-03-24 20:57:19] Production.ERROR: pbx CDR StartTime 2025-03-24 17:57:06 - End Time 2025-03-24 20:57:06 [2025-03-24 20:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754742', 'tblTempUsageDetail_20' ) start [2025-03-24 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754742', 'tblTempUsageDetail_20' ) end [2025-03-24 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754742', 'tblTempVendorCDR_20' ) start [2025-03-24 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754742', 'tblTempVendorCDR_20' ) end [2025-03-24 20:57:19] Production.INFO: ProcessCDR(1,14754742,1,1,2) [2025-03-24 20:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754742', 'tblTempUsageDetail_20' ) start [2025-03-24 20:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754742', 'tblTempUsageDetail_20' ) end [2025-03-24 20:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 20:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 20:57:23] Production.INFO: ==15600== Releasing lock... [2025-03-24 20:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 20:57:23] Production.INFO: 40.5 MB #Memory Used# [2025-03-24 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 17:58:05 [end_date_ymd] => 2025-03-24 20:58:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 17:58:05' and `end` < '2025-03-24 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-03-24 20:58:18] Production.INFO: count ==1667 [2025-03-24 20:58:18] Production.ERROR: pbx CDR StartTime 2025-03-24 17:58:05 - End Time 2025-03-24 20:58:05 [2025-03-24 20:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754747', 'tblTempUsageDetail_20' ) start [2025-03-24 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754747', 'tblTempUsageDetail_20' ) end [2025-03-24 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754747', 'tblTempVendorCDR_20' ) start [2025-03-24 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754747', 'tblTempVendorCDR_20' ) end [2025-03-24 20:58:18] Production.INFO: ProcessCDR(1,14754747,1,1,2) [2025-03-24 20:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754747', 'tblTempUsageDetail_20' ) start [2025-03-24 20:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754747', 'tblTempUsageDetail_20' ) end [2025-03-24 20:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 20:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 20:58:23] Production.INFO: ==15696== Releasing lock... [2025-03-24 20:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 20:58:23] Production.INFO: 40.5 MB #Memory Used# [2025-03-24 20:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 17:59:06 [end_date_ymd] => 2025-03-24 20:59:06 [RateCDR] => 1 ) [2025-03-24 20:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 17:59:06' and `end` < '2025-03-24 20:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 20:59:18] Production.INFO: count ==1667 [2025-03-24 20:59:19] Production.ERROR: pbx CDR StartTime 2025-03-24 17:59:06 - End Time 2025-03-24 20:59:06 [2025-03-24 20:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754752', 'tblTempUsageDetail_20' ) start [2025-03-24 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754752', 'tblTempUsageDetail_20' ) end [2025-03-24 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754752', 'tblTempVendorCDR_20' ) start [2025-03-24 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754752', 'tblTempVendorCDR_20' ) end [2025-03-24 20:59:19] Production.INFO: ProcessCDR(1,14754752,1,1,2) [2025-03-24 20:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 20:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754752', 'tblTempUsageDetail_20' ) start [2025-03-24 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754752', 'tblTempUsageDetail_20' ) end [2025-03-24 20:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 20:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 20:59:22] Production.INFO: ==15790== Releasing lock... [2025-03-24 20:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 20:59:22] Production.INFO: 40.75 MB #Memory Used# [2025-03-24 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 18:00:06 [end_date_ymd] => 2025-03-24 21:00:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 18:00:06' and `end` < '2025-03-24 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-03-24 21:00:19] Production.INFO: count ==1664 [2025-03-24 21:00:19] Production.ERROR: pbx CDR StartTime 2025-03-24 18:00:06 - End Time 2025-03-24 21:00:06 [2025-03-24 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754758', 'tblTempUsageDetail_20' ) start [2025-03-24 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754758', 'tblTempUsageDetail_20' ) end [2025-03-24 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754758', 'tblTempVendorCDR_20' ) start [2025-03-24 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754758', 'tblTempVendorCDR_20' ) end [2025-03-24 21:00:19] Production.INFO: ProcessCDR(1,14754758,1,1,2) [2025-03-24 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754758', 'tblTempUsageDetail_20' ) start [2025-03-24 21:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754758', 'tblTempUsageDetail_20' ) end [2025-03-24 21:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 21:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 21:00:24] Production.INFO: ==15894== Releasing lock... [2025-03-24 21:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 21:00:24] Production.INFO: 40.5 MB #Memory Used# [2025-03-24 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 18:01:05 [end_date_ymd] => 2025-03-24 21:01:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 18:01:05' and `end` < '2025-03-24 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-03-24 21:01:18] Production.INFO: count ==1599 [2025-03-24 21:01:18] Production.ERROR: pbx CDR StartTime 2025-03-24 18:01:05 - End Time 2025-03-24 21:01:05 [2025-03-24 21:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754763', 'tblTempUsageDetail_20' ) start [2025-03-24 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754763', 'tblTempUsageDetail_20' ) end [2025-03-24 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754763', 'tblTempVendorCDR_20' ) start [2025-03-24 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754763', 'tblTempVendorCDR_20' ) end [2025-03-24 21:01:19] Production.INFO: ProcessCDR(1,14754763,1,1,2) [2025-03-24 21:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754763', 'tblTempUsageDetail_20' ) start [2025-03-24 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754763', 'tblTempUsageDetail_20' ) end [2025-03-24 21:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 21:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 21:01:22] Production.INFO: ==16006== Releasing lock... [2025-03-24 21:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 21:01:22] Production.INFO: 40 MB #Memory Used# [2025-03-24 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 18:02:05 [end_date_ymd] => 2025-03-24 21:02:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 18:02:05' and `end` < '2025-03-24 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-03-24 21:02:17] Production.INFO: count ==1596 [2025-03-24 21:02:18] Production.ERROR: pbx CDR StartTime 2025-03-24 18:02:05 - End Time 2025-03-24 21:02:05 [2025-03-24 21:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754768', 'tblTempUsageDetail_20' ) start [2025-03-24 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754768', 'tblTempUsageDetail_20' ) end [2025-03-24 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754768', 'tblTempVendorCDR_20' ) start [2025-03-24 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754768', 'tblTempVendorCDR_20' ) end [2025-03-24 21:02:18] Production.INFO: ProcessCDR(1,14754768,1,1,2) [2025-03-24 21:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754768', 'tblTempUsageDetail_20' ) start [2025-03-24 21:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754768', 'tblTempUsageDetail_20' ) end [2025-03-24 21:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 21:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 21:02:21] Production.INFO: ==16106== Releasing lock... [2025-03-24 21:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 21:02:21] Production.INFO: 40 MB #Memory Used# [2025-03-24 21:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 18:03:06 [end_date_ymd] => 2025-03-24 21:03:06 [RateCDR] => 1 ) [2025-03-24 21:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 18:03:06' and `end` < '2025-03-24 21:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 21:03:18] Production.INFO: count ==1590 [2025-03-24 21:03:19] Production.ERROR: pbx CDR StartTime 2025-03-24 18:03:06 - End Time 2025-03-24 21:03:06 [2025-03-24 21:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754773', 'tblTempUsageDetail_20' ) start [2025-03-24 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754773', 'tblTempUsageDetail_20' ) end [2025-03-24 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754773', 'tblTempVendorCDR_20' ) start [2025-03-24 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754773', 'tblTempVendorCDR_20' ) end [2025-03-24 21:03:19] Production.INFO: ProcessCDR(1,14754773,1,1,2) [2025-03-24 21:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754773', 'tblTempUsageDetail_20' ) start [2025-03-24 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754773', 'tblTempUsageDetail_20' ) end [2025-03-24 21:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 21:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 21:03:22] Production.INFO: ==16208== Releasing lock... [2025-03-24 21:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 21:03:22] Production.INFO: 40 MB #Memory Used# [2025-03-24 21:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 18:04:06 [end_date_ymd] => 2025-03-24 21:04:06 [RateCDR] => 1 ) [2025-03-24 21: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-03-24 18:04:06' and `end` < '2025-03-24 21: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-03-24 21:04:18] Production.INFO: count ==1590 [2025-03-24 21:04:19] Production.ERROR: pbx CDR StartTime 2025-03-24 18:04:06 - End Time 2025-03-24 21:04:06 [2025-03-24 21:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754778', 'tblTempUsageDetail_20' ) start [2025-03-24 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754778', 'tblTempUsageDetail_20' ) end [2025-03-24 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754778', 'tblTempVendorCDR_20' ) start [2025-03-24 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754778', 'tblTempVendorCDR_20' ) end [2025-03-24 21:04:19] Production.INFO: ProcessCDR(1,14754778,1,1,2) [2025-03-24 21:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754778', 'tblTempUsageDetail_20' ) start [2025-03-24 21:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754778', 'tblTempUsageDetail_20' ) end [2025-03-24 21:04:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 21:04:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 21:04:24] Production.INFO: ==16303== Releasing lock... [2025-03-24 21:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 21:04:24] Production.INFO: 40 MB #Memory Used# [2025-03-24 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 18:05:05 [end_date_ymd] => 2025-03-24 21:05:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 18:05:05' and `end` < '2025-03-24 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-03-24 21:05:18] Production.INFO: count ==1576 [2025-03-24 21:05:18] Production.ERROR: pbx CDR StartTime 2025-03-24 18:05:05 - End Time 2025-03-24 21:05:05 [2025-03-24 21:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754783', 'tblTempUsageDetail_20' ) start [2025-03-24 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754783', 'tblTempUsageDetail_20' ) end [2025-03-24 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754783', 'tblTempVendorCDR_20' ) start [2025-03-24 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754783', 'tblTempVendorCDR_20' ) end [2025-03-24 21:05:18] Production.INFO: ProcessCDR(1,14754783,1,1,2) [2025-03-24 21:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754783', 'tblTempUsageDetail_20' ) start [2025-03-24 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754783', 'tblTempUsageDetail_20' ) end [2025-03-24 21:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 21:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 21:05:22] Production.INFO: ==16400== Releasing lock... [2025-03-24 21:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 21:05:22] Production.INFO: 40.25 MB #Memory Used# [2025-03-24 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 18:06:05 [end_date_ymd] => 2025-03-24 21:06:05 [RateCDR] => 1 ) [2025-03-24 21:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 18:06:05' and `end` < '2025-03-24 21:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 21:06:17] Production.INFO: count ==1564 [2025-03-24 21:06:18] Production.ERROR: pbx CDR StartTime 2025-03-24 18:06:05 - End Time 2025-03-24 21:06:05 [2025-03-24 21:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754788', 'tblTempUsageDetail_20' ) start [2025-03-24 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754788', 'tblTempUsageDetail_20' ) end [2025-03-24 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754788', 'tblTempVendorCDR_20' ) start [2025-03-24 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754788', 'tblTempVendorCDR_20' ) end [2025-03-24 21:06:18] Production.INFO: ProcessCDR(1,14754788,1,1,2) [2025-03-24 21:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754788', 'tblTempUsageDetail_20' ) start [2025-03-24 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754788', 'tblTempUsageDetail_20' ) end [2025-03-24 21:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 21:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 21:06:23] Production.INFO: ==16509== Releasing lock... [2025-03-24 21:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 21:06:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 18:07:05 [end_date_ymd] => 2025-03-24 21:07:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 18:07:05' and `end` < '2025-03-24 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-03-24 21:07:17] Production.INFO: count ==1555 [2025-03-24 21:07:18] Production.ERROR: pbx CDR StartTime 2025-03-24 18:07:05 - End Time 2025-03-24 21:07:05 [2025-03-24 21:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754793', 'tblTempUsageDetail_20' ) start [2025-03-24 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754793', 'tblTempUsageDetail_20' ) end [2025-03-24 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754793', 'tblTempVendorCDR_20' ) start [2025-03-24 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754793', 'tblTempVendorCDR_20' ) end [2025-03-24 21:07:18] Production.INFO: ProcessCDR(1,14754793,1,1,2) [2025-03-24 21:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754793', 'tblTempUsageDetail_20' ) start [2025-03-24 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754793', 'tblTempUsageDetail_20' ) end [2025-03-24 21:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 21:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 21:07:21] Production.INFO: ==16604== Releasing lock... [2025-03-24 21:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 21:07:21] Production.INFO: 40 MB #Memory Used# [2025-03-24 21:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 18:08:06 [end_date_ymd] => 2025-03-24 21:08:06 [RateCDR] => 1 ) [2025-03-24 21:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 18:08:06' and `end` < '2025-03-24 21:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 21:08:18] Production.INFO: count ==1548 [2025-03-24 21:08:19] Production.ERROR: pbx CDR StartTime 2025-03-24 18:08:06 - End Time 2025-03-24 21:08:06 [2025-03-24 21:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754798', 'tblTempUsageDetail_20' ) start [2025-03-24 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754798', 'tblTempUsageDetail_20' ) end [2025-03-24 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754798', 'tblTempVendorCDR_20' ) start [2025-03-24 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754798', 'tblTempVendorCDR_20' ) end [2025-03-24 21:08:19] Production.INFO: ProcessCDR(1,14754798,1,1,2) [2025-03-24 21:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754798', 'tblTempUsageDetail_20' ) start [2025-03-24 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754798', 'tblTempUsageDetail_20' ) end [2025-03-24 21:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 21:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 21:08:22] Production.INFO: ==16708== Releasing lock... [2025-03-24 21:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 21:08:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 18:09:05 [end_date_ymd] => 2025-03-24 21:09:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 18:09:05' and `end` < '2025-03-24 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-03-24 21:09:18] Production.INFO: count ==1546 [2025-03-24 21:09:18] Production.ERROR: pbx CDR StartTime 2025-03-24 18:09:05 - End Time 2025-03-24 21:09:05 [2025-03-24 21:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754803', 'tblTempUsageDetail_20' ) start [2025-03-24 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754803', 'tblTempUsageDetail_20' ) end [2025-03-24 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754803', 'tblTempVendorCDR_20' ) start [2025-03-24 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754803', 'tblTempVendorCDR_20' ) end [2025-03-24 21:09:18] Production.INFO: ProcessCDR(1,14754803,1,1,2) [2025-03-24 21:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754803', 'tblTempUsageDetail_20' ) start [2025-03-24 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754803', 'tblTempUsageDetail_20' ) end [2025-03-24 21:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 21:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 21:09:22] Production.INFO: ==16811== Releasing lock... [2025-03-24 21:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 21:09:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-24 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 18:10:06 [end_date_ymd] => 2025-03-24 21:10:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 18:10:06' and `end` < '2025-03-24 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-03-24 21:10:19] Production.INFO: count ==1541 [2025-03-24 21:10:19] Production.ERROR: pbx CDR StartTime 2025-03-24 18:10:06 - End Time 2025-03-24 21:10:06 [2025-03-24 21:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754809', 'tblTempUsageDetail_20' ) start [2025-03-24 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754809', 'tblTempUsageDetail_20' ) end [2025-03-24 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754809', 'tblTempVendorCDR_20' ) start [2025-03-24 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754809', 'tblTempVendorCDR_20' ) end [2025-03-24 21:10:19] Production.INFO: ProcessCDR(1,14754809,1,1,2) [2025-03-24 21:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754809', 'tblTempUsageDetail_20' ) start [2025-03-24 21:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754809', 'tblTempUsageDetail_20' ) end [2025-03-24 21:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 21:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 21:10:22] Production.INFO: ==16950== Releasing lock... [2025-03-24 21:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 21:10:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 18:11:05 [end_date_ymd] => 2025-03-24 21:11:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 18:11:05' and `end` < '2025-03-24 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-03-24 21:11:18] Production.INFO: count ==1503 [2025-03-24 21:11:18] Production.ERROR: pbx CDR StartTime 2025-03-24 18:11:05 - End Time 2025-03-24 21:11:05 [2025-03-24 21:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754814', 'tblTempUsageDetail_20' ) start [2025-03-24 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754814', 'tblTempUsageDetail_20' ) end [2025-03-24 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754814', 'tblTempVendorCDR_20' ) start [2025-03-24 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754814', 'tblTempVendorCDR_20' ) end [2025-03-24 21:11:18] Production.INFO: ProcessCDR(1,14754814,1,1,2) [2025-03-24 21:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754814', 'tblTempUsageDetail_20' ) start [2025-03-24 21:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754814', 'tblTempUsageDetail_20' ) end [2025-03-24 21:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 21:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 21:11:22] Production.INFO: ==17051== Releasing lock... [2025-03-24 21:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 21:11:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-24 21:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 18:12:06 [end_date_ymd] => 2025-03-24 21:12:06 [RateCDR] => 1 ) [2025-03-24 21: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-03-24 18:12:06' and `end` < '2025-03-24 21: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-03-24 21:12:18] Production.INFO: count ==1502 [2025-03-24 21:12:19] Production.ERROR: pbx CDR StartTime 2025-03-24 18:12:06 - End Time 2025-03-24 21:12:06 [2025-03-24 21:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754819', 'tblTempUsageDetail_20' ) start [2025-03-24 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754819', 'tblTempUsageDetail_20' ) end [2025-03-24 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754819', 'tblTempVendorCDR_20' ) start [2025-03-24 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754819', 'tblTempVendorCDR_20' ) end [2025-03-24 21:12:19] Production.INFO: ProcessCDR(1,14754819,1,1,2) [2025-03-24 21:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754819', 'tblTempUsageDetail_20' ) start [2025-03-24 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754819', 'tblTempUsageDetail_20' ) end [2025-03-24 21:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 21:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 21:12:22] Production.INFO: ==17151== Releasing lock... [2025-03-24 21:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 21:12:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 18:13:05 [end_date_ymd] => 2025-03-24 21:13:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 18:13:05' and `end` < '2025-03-24 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-03-24 21:13:17] Production.INFO: count ==1500 [2025-03-24 21:13:18] Production.ERROR: pbx CDR StartTime 2025-03-24 18:13:05 - End Time 2025-03-24 21:13:05 [2025-03-24 21:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754824', 'tblTempUsageDetail_20' ) start [2025-03-24 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754824', 'tblTempUsageDetail_20' ) end [2025-03-24 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754824', 'tblTempVendorCDR_20' ) start [2025-03-24 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754824', 'tblTempVendorCDR_20' ) end [2025-03-24 21:13:18] Production.INFO: ProcessCDR(1,14754824,1,1,2) [2025-03-24 21:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754824', 'tblTempUsageDetail_20' ) start [2025-03-24 21:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754824', 'tblTempUsageDetail_20' ) end [2025-03-24 21:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 21:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 21:13:23] Production.INFO: ==17250== Releasing lock... [2025-03-24 21:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 21:13:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-24 21:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 18:14:06 [end_date_ymd] => 2025-03-24 21:14:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 18:14:06' and `end` < '2025-03-24 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-03-24 21:14:18] Production.INFO: count ==1500 [2025-03-24 21:14:19] Production.ERROR: pbx CDR StartTime 2025-03-24 18:14:06 - End Time 2025-03-24 21:14:06 [2025-03-24 21:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754829', 'tblTempUsageDetail_20' ) start [2025-03-24 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754829', 'tblTempUsageDetail_20' ) end [2025-03-24 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754829', 'tblTempVendorCDR_20' ) start [2025-03-24 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754829', 'tblTempVendorCDR_20' ) end [2025-03-24 21:14:19] Production.INFO: ProcessCDR(1,14754829,1,1,2) [2025-03-24 21:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754829', 'tblTempUsageDetail_20' ) start [2025-03-24 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754829', 'tblTempUsageDetail_20' ) end [2025-03-24 21:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 21:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 21:14:22] Production.INFO: ==17351== Releasing lock... [2025-03-24 21:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 21:14:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 18:15:05 [end_date_ymd] => 2025-03-24 21:15:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 18:15:05' and `end` < '2025-03-24 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-03-24 21:15:18] Production.INFO: count ==1490 [2025-03-24 21:15:18] Production.ERROR: pbx CDR StartTime 2025-03-24 18:15:05 - End Time 2025-03-24 21:15:05 [2025-03-24 21:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754834', 'tblTempUsageDetail_20' ) start [2025-03-24 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754834', 'tblTempUsageDetail_20' ) end [2025-03-24 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754834', 'tblTempVendorCDR_20' ) start [2025-03-24 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754834', 'tblTempVendorCDR_20' ) end [2025-03-24 21:15:18] Production.INFO: ProcessCDR(1,14754834,1,1,2) [2025-03-24 21:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754834', 'tblTempUsageDetail_20' ) start [2025-03-24 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754834', 'tblTempUsageDetail_20' ) end [2025-03-24 21:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 21:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 21:15:22] Production.INFO: ==17448== Releasing lock... [2025-03-24 21:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 21:15:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-24 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 18:16:05 [end_date_ymd] => 2025-03-24 21:16:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 18:16:05' and `end` < '2025-03-24 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-03-24 21:16:18] Production.INFO: count ==1497 [2025-03-24 21:16:18] Production.ERROR: pbx CDR StartTime 2025-03-24 18:16:05 - End Time 2025-03-24 21:16:05 [2025-03-24 21:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754839', 'tblTempUsageDetail_20' ) start [2025-03-24 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754839', 'tblTempUsageDetail_20' ) end [2025-03-24 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754839', 'tblTempVendorCDR_20' ) start [2025-03-24 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754839', 'tblTempVendorCDR_20' ) end [2025-03-24 21:16:18] Production.INFO: ProcessCDR(1,14754839,1,1,2) [2025-03-24 21:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754839', 'tblTempUsageDetail_20' ) start [2025-03-24 21:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754839', 'tblTempUsageDetail_20' ) end [2025-03-24 21:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 21:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 21:16:21] Production.INFO: ==17555== Releasing lock... [2025-03-24 21:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 21:16:21] Production.INFO: 39.25 MB #Memory Used# [2025-03-24 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 18:17:05 [end_date_ymd] => 2025-03-24 21:17:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 18:17:05' and `end` < '2025-03-24 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-03-24 21:17:17] Production.INFO: count ==1502 [2025-03-24 21:17:18] Production.ERROR: pbx CDR StartTime 2025-03-24 18:17:05 - End Time 2025-03-24 21:17:05 [2025-03-24 21:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754844', 'tblTempUsageDetail_20' ) start [2025-03-24 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754844', 'tblTempUsageDetail_20' ) end [2025-03-24 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754844', 'tblTempVendorCDR_20' ) start [2025-03-24 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754844', 'tblTempVendorCDR_20' ) end [2025-03-24 21:17:18] Production.INFO: ProcessCDR(1,14754844,1,1,2) [2025-03-24 21:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754844', 'tblTempUsageDetail_20' ) start [2025-03-24 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754844', 'tblTempUsageDetail_20' ) end [2025-03-24 21:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 21:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 21:17:21] Production.INFO: ==17646== Releasing lock... [2025-03-24 21:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 21:17:21] Production.INFO: 39.25 MB #Memory Used# [2025-03-24 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 18:18:05 [end_date_ymd] => 2025-03-24 21:18:05 [RateCDR] => 1 ) [2025-03-24 21:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 18:18:05' and `end` < '2025-03-24 21:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 21:18:18] Production.INFO: count ==1506 [2025-03-24 21:18:18] Production.ERROR: pbx CDR StartTime 2025-03-24 18:18:05 - End Time 2025-03-24 21:18:05 [2025-03-24 21:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754849', 'tblTempUsageDetail_20' ) start [2025-03-24 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754849', 'tblTempUsageDetail_20' ) end [2025-03-24 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754849', 'tblTempVendorCDR_20' ) start [2025-03-24 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754849', 'tblTempVendorCDR_20' ) end [2025-03-24 21:18:18] Production.INFO: ProcessCDR(1,14754849,1,1,2) [2025-03-24 21:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754849', 'tblTempUsageDetail_20' ) start [2025-03-24 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754849', 'tblTempUsageDetail_20' ) end [2025-03-24 21:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 21:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 21:18:22] Production.INFO: ==17757== Releasing lock... [2025-03-24 21:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 21:18:22] Production.INFO: 39 MB #Memory Used# [2025-03-24 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 18:19:05 [end_date_ymd] => 2025-03-24 21:19:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 18:19:05' and `end` < '2025-03-24 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-03-24 21:19:18] Production.INFO: count ==1515 [2025-03-24 21:19:18] Production.ERROR: pbx CDR StartTime 2025-03-24 18:19:05 - End Time 2025-03-24 21:19:05 [2025-03-24 21:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754854', 'tblTempUsageDetail_20' ) start [2025-03-24 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754854', 'tblTempUsageDetail_20' ) end [2025-03-24 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754854', 'tblTempVendorCDR_20' ) start [2025-03-24 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754854', 'tblTempVendorCDR_20' ) end [2025-03-24 21:19:18] Production.INFO: ProcessCDR(1,14754854,1,1,2) [2025-03-24 21:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754854', 'tblTempUsageDetail_20' ) start [2025-03-24 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754854', 'tblTempUsageDetail_20' ) end [2025-03-24 21:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 21:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 21:19:22] Production.INFO: ==17858== Releasing lock... [2025-03-24 21:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 21:19:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-24 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 18:20:06 [end_date_ymd] => 2025-03-24 21:20:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 18:20:06' and `end` < '2025-03-24 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-03-24 21:20:18] Production.INFO: count ==1516 [2025-03-24 21:20:19] Production.ERROR: pbx CDR StartTime 2025-03-24 18:20:06 - End Time 2025-03-24 21:20:06 [2025-03-24 21:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754860', 'tblTempUsageDetail_20' ) start [2025-03-24 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754860', 'tblTempUsageDetail_20' ) end [2025-03-24 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754860', 'tblTempVendorCDR_20' ) start [2025-03-24 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754860', 'tblTempVendorCDR_20' ) end [2025-03-24 21:20:19] Production.INFO: ProcessCDR(1,14754860,1,1,2) [2025-03-24 21:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754860', 'tblTempUsageDetail_20' ) start [2025-03-24 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754860', 'tblTempUsageDetail_20' ) end [2025-03-24 21:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 21:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 21:20:22] Production.INFO: ==17953== Releasing lock... [2025-03-24 21:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 21:20:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-24 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 18:21:05 [end_date_ymd] => 2025-03-24 21:21:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 18:21:05' and `end` < '2025-03-24 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-03-24 21:21:18] Production.INFO: count ==1441 [2025-03-24 21:21:18] Production.ERROR: pbx CDR StartTime 2025-03-24 18:21:05 - End Time 2025-03-24 21:21:05 [2025-03-24 21:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754865', 'tblTempUsageDetail_20' ) start [2025-03-24 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754865', 'tblTempUsageDetail_20' ) end [2025-03-24 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754865', 'tblTempVendorCDR_20' ) start [2025-03-24 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754865', 'tblTempVendorCDR_20' ) end [2025-03-24 21:21:18] Production.INFO: ProcessCDR(1,14754865,1,1,2) [2025-03-24 21:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754865', 'tblTempUsageDetail_20' ) start [2025-03-24 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754865', 'tblTempUsageDetail_20' ) end [2025-03-24 21:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 21:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 21:21:22] Production.INFO: ==18057== Releasing lock... [2025-03-24 21:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 21:21:22] Production.INFO: 39 MB #Memory Used# [2025-03-24 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 18:22:05 [end_date_ymd] => 2025-03-24 21:22:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 18:22:05' and `end` < '2025-03-24 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-03-24 21:22:18] Production.INFO: count ==1440 [2025-03-24 21:22:18] Production.ERROR: pbx CDR StartTime 2025-03-24 18:22:05 - End Time 2025-03-24 21:22:05 [2025-03-24 21:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754870', 'tblTempUsageDetail_20' ) start [2025-03-24 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754870', 'tblTempUsageDetail_20' ) end [2025-03-24 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754870', 'tblTempVendorCDR_20' ) start [2025-03-24 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754870', 'tblTempVendorCDR_20' ) end [2025-03-24 21:22:18] Production.INFO: ProcessCDR(1,14754870,1,1,2) [2025-03-24 21:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754870', 'tblTempUsageDetail_20' ) start [2025-03-24 21:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754870', 'tblTempUsageDetail_20' ) end [2025-03-24 21:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 21:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 21:22:21] Production.INFO: ==18164== Releasing lock... [2025-03-24 21:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 21:22:21] Production.INFO: 39 MB #Memory Used# [2025-03-24 21:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 18:23:06 [end_date_ymd] => 2025-03-24 21:23:06 [RateCDR] => 1 ) [2025-03-24 21: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-03-24 18:23:06' and `end` < '2025-03-24 21: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-03-24 21:23:18] Production.INFO: count ==1437 [2025-03-24 21:23:18] Production.ERROR: pbx CDR StartTime 2025-03-24 18:23:06 - End Time 2025-03-24 21:23:06 [2025-03-24 21:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754875', 'tblTempUsageDetail_20' ) start [2025-03-24 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754875', 'tblTempUsageDetail_20' ) end [2025-03-24 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754875', 'tblTempVendorCDR_20' ) start [2025-03-24 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754875', 'tblTempVendorCDR_20' ) end [2025-03-24 21:23:19] Production.INFO: ProcessCDR(1,14754875,1,1,2) [2025-03-24 21:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754875', 'tblTempUsageDetail_20' ) start [2025-03-24 21:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754875', 'tblTempUsageDetail_20' ) end [2025-03-24 21:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 21:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 21:23:22] Production.INFO: ==18267== Releasing lock... [2025-03-24 21:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 21:23:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-24 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 18:24:05 [end_date_ymd] => 2025-03-24 21:24:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 18:24:05' and `end` < '2025-03-24 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-03-24 21:24:18] Production.INFO: count ==1413 [2025-03-24 21:24:18] Production.ERROR: pbx CDR StartTime 2025-03-24 18:24:05 - End Time 2025-03-24 21:24:05 [2025-03-24 21:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754880', 'tblTempUsageDetail_20' ) start [2025-03-24 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754880', 'tblTempUsageDetail_20' ) end [2025-03-24 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754880', 'tblTempVendorCDR_20' ) start [2025-03-24 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754880', 'tblTempVendorCDR_20' ) end [2025-03-24 21:24:18] Production.INFO: ProcessCDR(1,14754880,1,1,2) [2025-03-24 21:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754880', 'tblTempUsageDetail_20' ) start [2025-03-24 21:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754880', 'tblTempUsageDetail_20' ) end [2025-03-24 21:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 21:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 21:24:21] Production.INFO: ==18367== Releasing lock... [2025-03-24 21:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 21:24:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-24 21:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 18:25:06 [end_date_ymd] => 2025-03-24 21:25:06 [RateCDR] => 1 ) [2025-03-24 21: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-03-24 18:25:06' and `end` < '2025-03-24 21: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-03-24 21:25:18] Production.INFO: count ==1409 [2025-03-24 21:25:18] Production.ERROR: pbx CDR StartTime 2025-03-24 18:25:06 - End Time 2025-03-24 21:25:06 [2025-03-24 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754885', 'tblTempUsageDetail_20' ) start [2025-03-24 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754885', 'tblTempUsageDetail_20' ) end [2025-03-24 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754885', 'tblTempVendorCDR_20' ) start [2025-03-24 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754885', 'tblTempVendorCDR_20' ) end [2025-03-24 21:25:18] Production.INFO: ProcessCDR(1,14754885,1,1,2) [2025-03-24 21:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754885', 'tblTempUsageDetail_20' ) start [2025-03-24 21:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754885', 'tblTempUsageDetail_20' ) end [2025-03-24 21:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 21:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 21:25:22] Production.INFO: ==18464== Releasing lock... [2025-03-24 21:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 21:25:22] Production.INFO: 39 MB #Memory Used# [2025-03-24 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 18:26:05 [end_date_ymd] => 2025-03-24 21:26:05 [RateCDR] => 1 ) [2025-03-24 21:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 18:26:05' and `end` < '2025-03-24 21:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 21:26:18] Production.INFO: count ==1409 [2025-03-24 21:26:18] Production.ERROR: pbx CDR StartTime 2025-03-24 18:26:05 - End Time 2025-03-24 21:26:05 [2025-03-24 21:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754890', 'tblTempUsageDetail_20' ) start [2025-03-24 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754890', 'tblTempUsageDetail_20' ) end [2025-03-24 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754890', 'tblTempVendorCDR_20' ) start [2025-03-24 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754890', 'tblTempVendorCDR_20' ) end [2025-03-24 21:26:18] Production.INFO: ProcessCDR(1,14754890,1,1,2) [2025-03-24 21:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754890', 'tblTempUsageDetail_20' ) start [2025-03-24 21:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754890', 'tblTempUsageDetail_20' ) end [2025-03-24 21:26:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 21:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 21:26:23] Production.INFO: ==18600== Releasing lock... [2025-03-24 21:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 21:26:23] Production.INFO: 38.5 MB #Memory Used# [2025-03-24 21:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 18:27:06 [end_date_ymd] => 2025-03-24 21:27:06 [RateCDR] => 1 ) [2025-03-24 21: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-03-24 18:27:06' and `end` < '2025-03-24 21: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-03-24 21:27:18] Production.INFO: count ==1414 [2025-03-24 21:27:19] Production.ERROR: pbx CDR StartTime 2025-03-24 18:27:06 - End Time 2025-03-24 21:27:06 [2025-03-24 21:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754895', 'tblTempUsageDetail_20' ) start [2025-03-24 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754895', 'tblTempUsageDetail_20' ) end [2025-03-24 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754895', 'tblTempVendorCDR_20' ) start [2025-03-24 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754895', 'tblTempVendorCDR_20' ) end [2025-03-24 21:27:19] Production.INFO: ProcessCDR(1,14754895,1,1,2) [2025-03-24 21:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754895', 'tblTempUsageDetail_20' ) start [2025-03-24 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754895', 'tblTempUsageDetail_20' ) end [2025-03-24 21:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 21:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 21:27:22] Production.INFO: ==18700== Releasing lock... [2025-03-24 21:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 21:27:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-24 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 18:28:04 [end_date_ymd] => 2025-03-24 21:28:04 [RateCDR] => 1 ) [2025-03-24 21:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 18:28:04' and `end` < '2025-03-24 21:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 21:28:17] Production.INFO: count ==1410 [2025-03-24 21:28:17] Production.ERROR: pbx CDR StartTime 2025-03-24 18:28:04 - End Time 2025-03-24 21:28:04 [2025-03-24 21:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 21:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754900', 'tblTempUsageDetail_20' ) start [2025-03-24 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754900', 'tblTempUsageDetail_20' ) end [2025-03-24 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754900', 'tblTempVendorCDR_20' ) start [2025-03-24 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754900', 'tblTempVendorCDR_20' ) end [2025-03-24 21:28:18] Production.INFO: ProcessCDR(1,14754900,1,1,2) [2025-03-24 21:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754900', 'tblTempUsageDetail_20' ) start [2025-03-24 21:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754900', 'tblTempUsageDetail_20' ) end [2025-03-24 21:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 21:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 21:28:21] Production.INFO: ==18797== Releasing lock... [2025-03-24 21:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 21:28:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-24 21:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 18:29:06 [end_date_ymd] => 2025-03-24 21:29:06 [RateCDR] => 1 ) [2025-03-24 21: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-03-24 18:29:06' and `end` < '2025-03-24 21: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-03-24 21:29:18] Production.INFO: count ==1414 [2025-03-24 21:29:19] Production.ERROR: pbx CDR StartTime 2025-03-24 18:29:06 - End Time 2025-03-24 21:29:06 [2025-03-24 21:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754905', 'tblTempUsageDetail_20' ) start [2025-03-24 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754905', 'tblTempUsageDetail_20' ) end [2025-03-24 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754905', 'tblTempVendorCDR_20' ) start [2025-03-24 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754905', 'tblTempVendorCDR_20' ) end [2025-03-24 21:29:19] Production.INFO: ProcessCDR(1,14754905,1,1,2) [2025-03-24 21:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754905', 'tblTempUsageDetail_20' ) start [2025-03-24 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754905', 'tblTempUsageDetail_20' ) end [2025-03-24 21:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 21:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 21:29:22] Production.INFO: ==18892== Releasing lock... [2025-03-24 21:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 21:29:22] Production.INFO: 39 MB #Memory Used# [2025-03-24 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 18:30:06 [end_date_ymd] => 2025-03-24 21:30:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 18:30:06' and `end` < '2025-03-24 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-03-24 21:30:18] Production.INFO: count ==1411 [2025-03-24 21:30:19] Production.ERROR: pbx CDR StartTime 2025-03-24 18:30:06 - End Time 2025-03-24 21:30:06 [2025-03-24 21:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754910', 'tblTempUsageDetail_20' ) start [2025-03-24 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754910', 'tblTempUsageDetail_20' ) end [2025-03-24 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754910', 'tblTempVendorCDR_20' ) start [2025-03-24 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754910', 'tblTempVendorCDR_20' ) end [2025-03-24 21:30:19] Production.INFO: ProcessCDR(1,14754910,1,1,2) [2025-03-24 21:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754910', 'tblTempUsageDetail_20' ) start [2025-03-24 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754910', 'tblTempUsageDetail_20' ) end [2025-03-24 21:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 21:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 21:30:22] Production.INFO: ==18988== Releasing lock... [2025-03-24 21:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 21:30:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-24 21:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 18:31:06 [end_date_ymd] => 2025-03-24 21:31:06 [RateCDR] => 1 ) [2025-03-24 21: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-03-24 18:31:06' and `end` < '2025-03-24 21: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-03-24 21:31:18] Production.INFO: count ==1353 [2025-03-24 21:31:18] Production.ERROR: pbx CDR StartTime 2025-03-24 18:31:06 - End Time 2025-03-24 21:31:06 [2025-03-24 21:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754916', 'tblTempUsageDetail_20' ) start [2025-03-24 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754916', 'tblTempUsageDetail_20' ) end [2025-03-24 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754916', 'tblTempVendorCDR_20' ) start [2025-03-24 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754916', 'tblTempVendorCDR_20' ) end [2025-03-24 21:31:18] Production.INFO: ProcessCDR(1,14754916,1,1,2) [2025-03-24 21:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754916', 'tblTempUsageDetail_20' ) start [2025-03-24 21:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754916', 'tblTempUsageDetail_20' ) end [2025-03-24 21:31:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 21:31:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 21:31:24] Production.INFO: ==19087== Releasing lock... [2025-03-24 21:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 21:31:24] Production.INFO: 38 MB #Memory Used# [2025-03-24 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 18:32:05 [end_date_ymd] => 2025-03-24 21:32:05 [RateCDR] => 1 ) [2025-03-24 21:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 18:32:05' and `end` < '2025-03-24 21:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 21:32:18] Production.INFO: count ==1356 [2025-03-24 21:32:18] Production.ERROR: pbx CDR StartTime 2025-03-24 18:32:05 - End Time 2025-03-24 21:32:05 [2025-03-24 21:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754921', 'tblTempUsageDetail_20' ) start [2025-03-24 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754921', 'tblTempUsageDetail_20' ) end [2025-03-24 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754921', 'tblTempVendorCDR_20' ) start [2025-03-24 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754921', 'tblTempVendorCDR_20' ) end [2025-03-24 21:32:18] Production.INFO: ProcessCDR(1,14754921,1,1,2) [2025-03-24 21:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754921', 'tblTempUsageDetail_20' ) start [2025-03-24 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754921', 'tblTempUsageDetail_20' ) end [2025-03-24 21:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 21:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 21:32:22] Production.INFO: ==19186== Releasing lock... [2025-03-24 21:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 21:32:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-24 21:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 18:33:06 [end_date_ymd] => 2025-03-24 21:33:06 [RateCDR] => 1 ) [2025-03-24 21:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 18:33:06' and `end` < '2025-03-24 21:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 21:33:18] Production.INFO: count ==1354 [2025-03-24 21:33:19] Production.ERROR: pbx CDR StartTime 2025-03-24 18:33:06 - End Time 2025-03-24 21:33:06 [2025-03-24 21:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754926', 'tblTempUsageDetail_20' ) start [2025-03-24 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754926', 'tblTempUsageDetail_20' ) end [2025-03-24 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754926', 'tblTempVendorCDR_20' ) start [2025-03-24 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754926', 'tblTempVendorCDR_20' ) end [2025-03-24 21:33:19] Production.INFO: ProcessCDR(1,14754926,1,1,2) [2025-03-24 21:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754926', 'tblTempUsageDetail_20' ) start [2025-03-24 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754926', 'tblTempUsageDetail_20' ) end [2025-03-24 21:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 21:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 21:33:22] Production.INFO: ==19287== Releasing lock... [2025-03-24 21:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 21:33:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-24 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 18:34:05 [end_date_ymd] => 2025-03-24 21:34:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 18:34:05' and `end` < '2025-03-24 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-03-24 21:34:18] Production.INFO: count ==1354 [2025-03-24 21:34:18] Production.ERROR: pbx CDR StartTime 2025-03-24 18:34:05 - End Time 2025-03-24 21:34:05 [2025-03-24 21:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754931', 'tblTempUsageDetail_20' ) start [2025-03-24 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754931', 'tblTempUsageDetail_20' ) end [2025-03-24 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754931', 'tblTempVendorCDR_20' ) start [2025-03-24 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754931', 'tblTempVendorCDR_20' ) end [2025-03-24 21:34:18] Production.INFO: ProcessCDR(1,14754931,1,1,2) [2025-03-24 21:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754931', 'tblTempUsageDetail_20' ) start [2025-03-24 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754931', 'tblTempUsageDetail_20' ) end [2025-03-24 21:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 21:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 21:34:22] Production.INFO: ==19386== Releasing lock... [2025-03-24 21:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 21:34:22] Production.INFO: 38 MB #Memory Used# [2025-03-24 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 18:35:05 [end_date_ymd] => 2025-03-24 21:35:05 [RateCDR] => 1 ) [2025-03-24 21:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 18:35:05' and `end` < '2025-03-24 21:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 21:35:18] Production.INFO: count ==1350 [2025-03-24 21:35:18] Production.ERROR: pbx CDR StartTime 2025-03-24 18:35:05 - End Time 2025-03-24 21:35:05 [2025-03-24 21:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754936', 'tblTempUsageDetail_20' ) start [2025-03-24 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754936', 'tblTempUsageDetail_20' ) end [2025-03-24 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754936', 'tblTempVendorCDR_20' ) start [2025-03-24 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754936', 'tblTempVendorCDR_20' ) end [2025-03-24 21:35:18] Production.INFO: ProcessCDR(1,14754936,1,1,2) [2025-03-24 21:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754936', 'tblTempUsageDetail_20' ) start [2025-03-24 21:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754936', 'tblTempUsageDetail_20' ) end [2025-03-24 21:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 21:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 21:35:22] Production.INFO: ==19497== Releasing lock... [2025-03-24 21:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 21:35:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-24 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 18:36:05 [end_date_ymd] => 2025-03-24 21:36:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 18:36:05' and `end` < '2025-03-24 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-03-24 21:36:17] Production.INFO: count ==1347 [2025-03-24 21:36:18] Production.ERROR: pbx CDR StartTime 2025-03-24 18:36:05 - End Time 2025-03-24 21:36:05 [2025-03-24 21:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754941', 'tblTempUsageDetail_20' ) start [2025-03-24 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754941', 'tblTempUsageDetail_20' ) end [2025-03-24 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754941', 'tblTempVendorCDR_20' ) start [2025-03-24 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754941', 'tblTempVendorCDR_20' ) end [2025-03-24 21:36:18] Production.INFO: ProcessCDR(1,14754941,1,1,2) [2025-03-24 21:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754941', 'tblTempUsageDetail_20' ) start [2025-03-24 21:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754941', 'tblTempUsageDetail_20' ) end [2025-03-24 21:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 21:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 21:36:21] Production.INFO: ==19593== Releasing lock... [2025-03-24 21:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 21:36:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-24 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 18:37:05 [end_date_ymd] => 2025-03-24 21:37:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 18:37:05' and `end` < '2025-03-24 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-03-24 21:37:18] Production.INFO: count ==1341 [2025-03-24 21:37:18] Production.ERROR: pbx CDR StartTime 2025-03-24 18:37:05 - End Time 2025-03-24 21:37:05 [2025-03-24 21:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754946', 'tblTempUsageDetail_20' ) start [2025-03-24 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754946', 'tblTempUsageDetail_20' ) end [2025-03-24 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754946', 'tblTempVendorCDR_20' ) start [2025-03-24 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754946', 'tblTempVendorCDR_20' ) end [2025-03-24 21:37:18] Production.INFO: ProcessCDR(1,14754946,1,1,2) [2025-03-24 21:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754946', 'tblTempUsageDetail_20' ) start [2025-03-24 21:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754946', 'tblTempUsageDetail_20' ) end [2025-03-24 21:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 21:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 21:37:23] Production.INFO: ==19694== Releasing lock... [2025-03-24 21:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 21:37:23] Production.INFO: 38 MB #Memory Used# [2025-03-24 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 18:38:05 [end_date_ymd] => 2025-03-24 21:38:05 [RateCDR] => 1 ) [2025-03-24 21:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 18:38:05' and `end` < '2025-03-24 21:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 21:38:18] Production.INFO: count ==1342 [2025-03-24 21:38:18] Production.ERROR: pbx CDR StartTime 2025-03-24 18:38:05 - End Time 2025-03-24 21:38:05 [2025-03-24 21:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754951', 'tblTempUsageDetail_20' ) start [2025-03-24 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754951', 'tblTempUsageDetail_20' ) end [2025-03-24 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754951', 'tblTempVendorCDR_20' ) start [2025-03-24 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754951', 'tblTempVendorCDR_20' ) end [2025-03-24 21:38:18] Production.INFO: ProcessCDR(1,14754951,1,1,2) [2025-03-24 21:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754951', 'tblTempUsageDetail_20' ) start [2025-03-24 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754951', 'tblTempUsageDetail_20' ) end [2025-03-24 21:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 21:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 21:38:22] Production.INFO: ==19797== Releasing lock... [2025-03-24 21:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 21:38:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-24 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 18:39:05 [end_date_ymd] => 2025-03-24 21:39:05 [RateCDR] => 1 ) [2025-03-24 21:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 18:39:05' and `end` < '2025-03-24 21:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 21:39:18] Production.INFO: count ==1341 [2025-03-24 21:39:18] Production.ERROR: pbx CDR StartTime 2025-03-24 18:39:05 - End Time 2025-03-24 21:39:05 [2025-03-24 21:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754956', 'tblTempUsageDetail_20' ) start [2025-03-24 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754956', 'tblTempUsageDetail_20' ) end [2025-03-24 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754956', 'tblTempVendorCDR_20' ) start [2025-03-24 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754956', 'tblTempVendorCDR_20' ) end [2025-03-24 21:39:18] Production.INFO: ProcessCDR(1,14754956,1,1,2) [2025-03-24 21:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754956', 'tblTempUsageDetail_20' ) start [2025-03-24 21:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754956', 'tblTempUsageDetail_20' ) end [2025-03-24 21:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 21:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 21:39:23] Production.INFO: ==19895== Releasing lock... [2025-03-24 21:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 21:39:23] Production.INFO: 38.5 MB #Memory Used# [2025-03-24 21:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 18:40:07 [end_date_ymd] => 2025-03-24 21:40:07 [RateCDR] => 1 ) [2025-03-24 21: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-03-24 18:40:07' and `end` < '2025-03-24 21: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-03-24 21:40:19] Production.INFO: count ==1346 [2025-03-24 21:40:20] Production.ERROR: pbx CDR StartTime 2025-03-24 18:40:07 - End Time 2025-03-24 21:40:07 [2025-03-24 21:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754962', 'tblTempUsageDetail_20' ) start [2025-03-24 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754962', 'tblTempUsageDetail_20' ) end [2025-03-24 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754962', 'tblTempVendorCDR_20' ) start [2025-03-24 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754962', 'tblTempVendorCDR_20' ) end [2025-03-24 21:40:20] Production.INFO: ProcessCDR(1,14754962,1,1,2) [2025-03-24 21:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754962', 'tblTempUsageDetail_20' ) start [2025-03-24 21:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754962', 'tblTempUsageDetail_20' ) end [2025-03-24 21:40:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 21:40:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 21:40:24] Production.INFO: ==19993== Releasing lock... [2025-03-24 21:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 21:40:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-24 21:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 18:41:06 [end_date_ymd] => 2025-03-24 21:41:06 [RateCDR] => 1 ) [2025-03-24 21:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 18:41:06' and `end` < '2025-03-24 21:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 21:41:18] Production.INFO: count ==1304 [2025-03-24 21:41:18] Production.ERROR: pbx CDR StartTime 2025-03-24 18:41:06 - End Time 2025-03-24 21:41:06 [2025-03-24 21:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754967', 'tblTempUsageDetail_20' ) start [2025-03-24 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754967', 'tblTempUsageDetail_20' ) end [2025-03-24 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754967', 'tblTempVendorCDR_20' ) start [2025-03-24 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754967', 'tblTempVendorCDR_20' ) end [2025-03-24 21:41:19] Production.INFO: ProcessCDR(1,14754967,1,1,2) [2025-03-24 21:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754967', 'tblTempUsageDetail_20' ) start [2025-03-24 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754967', 'tblTempUsageDetail_20' ) end [2025-03-24 21:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 21:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 21:41:22] Production.INFO: ==20134== Releasing lock... [2025-03-24 21:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 21:41:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-24 21:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 18:42:06 [end_date_ymd] => 2025-03-24 21:42:06 [RateCDR] => 1 ) [2025-03-24 21:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 18:42:06' and `end` < '2025-03-24 21:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 21:42:18] Production.INFO: count ==1312 [2025-03-24 21:42:19] Production.ERROR: pbx CDR StartTime 2025-03-24 18:42:06 - End Time 2025-03-24 21:42:06 [2025-03-24 21:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754972', 'tblTempUsageDetail_20' ) start [2025-03-24 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754972', 'tblTempUsageDetail_20' ) end [2025-03-24 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754972', 'tblTempVendorCDR_20' ) start [2025-03-24 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754972', 'tblTempVendorCDR_20' ) end [2025-03-24 21:42:19] Production.INFO: ProcessCDR(1,14754972,1,1,2) [2025-03-24 21:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754972', 'tblTempUsageDetail_20' ) start [2025-03-24 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754972', 'tblTempUsageDetail_20' ) end [2025-03-24 21:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 21:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 21:42:22] Production.INFO: ==20233== Releasing lock... [2025-03-24 21:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 21:42:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-24 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 18:43:05 [end_date_ymd] => 2025-03-24 21:43:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 18:43:05' and `end` < '2025-03-24 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-03-24 21:43:17] Production.INFO: count ==1289 [2025-03-24 21:43:18] Production.ERROR: pbx CDR StartTime 2025-03-24 18:43:05 - End Time 2025-03-24 21:43:05 [2025-03-24 21:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754977', 'tblTempUsageDetail_20' ) start [2025-03-24 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754977', 'tblTempUsageDetail_20' ) end [2025-03-24 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754977', 'tblTempVendorCDR_20' ) start [2025-03-24 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754977', 'tblTempVendorCDR_20' ) end [2025-03-24 21:43:18] Production.INFO: ProcessCDR(1,14754977,1,1,2) [2025-03-24 21:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754977', 'tblTempUsageDetail_20' ) start [2025-03-24 21:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754977', 'tblTempUsageDetail_20' ) end [2025-03-24 21:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 21:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 21:43:21] Production.INFO: ==20330== Releasing lock... [2025-03-24 21:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 21:43:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-24 21:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 18:44:06 [end_date_ymd] => 2025-03-24 21:44:06 [RateCDR] => 1 ) [2025-03-24 21: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-03-24 18:44:06' and `end` < '2025-03-24 21: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-03-24 21:44:18] Production.INFO: count ==1289 [2025-03-24 21:44:19] Production.ERROR: pbx CDR StartTime 2025-03-24 18:44:06 - End Time 2025-03-24 21:44:06 [2025-03-24 21:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754982', 'tblTempUsageDetail_20' ) start [2025-03-24 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754982', 'tblTempUsageDetail_20' ) end [2025-03-24 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754982', 'tblTempVendorCDR_20' ) start [2025-03-24 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754982', 'tblTempVendorCDR_20' ) end [2025-03-24 21:44:19] Production.INFO: ProcessCDR(1,14754982,1,1,2) [2025-03-24 21:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754982', 'tblTempUsageDetail_20' ) start [2025-03-24 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754982', 'tblTempUsageDetail_20' ) end [2025-03-24 21:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 21:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 21:44:22] Production.INFO: ==20430== Releasing lock... [2025-03-24 21:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 21:44:22] Production.INFO: 38 MB #Memory Used# [2025-03-24 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 18:45:05 [end_date_ymd] => 2025-03-24 21:45:05 [RateCDR] => 1 ) [2025-03-24 21:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 18:45:05' and `end` < '2025-03-24 21:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 21:45:18] Production.INFO: count ==1285 [2025-03-24 21:45:18] Production.ERROR: pbx CDR StartTime 2025-03-24 18:45:05 - End Time 2025-03-24 21:45:05 [2025-03-24 21:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754987', 'tblTempUsageDetail_20' ) start [2025-03-24 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754987', 'tblTempUsageDetail_20' ) end [2025-03-24 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754987', 'tblTempVendorCDR_20' ) start [2025-03-24 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754987', 'tblTempVendorCDR_20' ) end [2025-03-24 21:45:18] Production.INFO: ProcessCDR(1,14754987,1,1,2) [2025-03-24 21:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754987', 'tblTempUsageDetail_20' ) start [2025-03-24 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754987', 'tblTempUsageDetail_20' ) end [2025-03-24 21:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 21:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 21:45:21] Production.INFO: ==20542== Releasing lock... [2025-03-24 21:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 21:45:21] Production.INFO: 38 MB #Memory Used# [2025-03-24 21:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 18:46:06 [end_date_ymd] => 2025-03-24 21:46:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 18:46:06' and `end` < '2025-03-24 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-03-24 21:46:18] Production.INFO: count ==1274 [2025-03-24 21:46:19] Production.ERROR: pbx CDR StartTime 2025-03-24 18:46:06 - End Time 2025-03-24 21:46:06 [2025-03-24 21:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754992', 'tblTempUsageDetail_20' ) start [2025-03-24 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754992', 'tblTempUsageDetail_20' ) end [2025-03-24 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754992', 'tblTempVendorCDR_20' ) start [2025-03-24 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754992', 'tblTempVendorCDR_20' ) end [2025-03-24 21:46:19] Production.INFO: ProcessCDR(1,14754992,1,1,2) [2025-03-24 21:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754992', 'tblTempUsageDetail_20' ) start [2025-03-24 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754992', 'tblTempUsageDetail_20' ) end [2025-03-24 21:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 21:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 21:46:22] Production.INFO: ==20642== Releasing lock... [2025-03-24 21:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 21:46:22] Production.INFO: 38 MB #Memory Used# [2025-03-24 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 18:47:05 [end_date_ymd] => 2025-03-24 21:47:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 18:47:05' and `end` < '2025-03-24 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-03-24 21:47:17] Production.INFO: count ==1274 [2025-03-24 21:47:18] Production.ERROR: pbx CDR StartTime 2025-03-24 18:47:05 - End Time 2025-03-24 21:47:05 [2025-03-24 21:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754997', 'tblTempUsageDetail_20' ) start [2025-03-24 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14754997', 'tblTempUsageDetail_20' ) end [2025-03-24 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754997', 'tblTempVendorCDR_20' ) start [2025-03-24 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14754997', 'tblTempVendorCDR_20' ) end [2025-03-24 21:47:18] Production.INFO: ProcessCDR(1,14754997,1,1,2) [2025-03-24 21:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14754997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14754997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14754997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14754997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754997', 'tblTempUsageDetail_20' ) start [2025-03-24 21:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14754997', 'tblTempUsageDetail_20' ) end [2025-03-24 21:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 21:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 21:47:21] Production.INFO: ==20744== Releasing lock... [2025-03-24 21:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 21:47:21] Production.INFO: 38 MB #Memory Used# [2025-03-24 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 18:48:05 [end_date_ymd] => 2025-03-24 21:48:05 [RateCDR] => 1 ) [2025-03-24 21:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 18:48:05' and `end` < '2025-03-24 21:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 21:48:18] Production.INFO: count ==1272 [2025-03-24 21:48:18] Production.ERROR: pbx CDR StartTime 2025-03-24 18:48:05 - End Time 2025-03-24 21:48:05 [2025-03-24 21:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755002', 'tblTempUsageDetail_20' ) start [2025-03-24 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755002', 'tblTempUsageDetail_20' ) end [2025-03-24 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755002', 'tblTempVendorCDR_20' ) start [2025-03-24 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755002', 'tblTempVendorCDR_20' ) end [2025-03-24 21:48:18] Production.INFO: ProcessCDR(1,14755002,1,1,2) [2025-03-24 21:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755002', 'tblTempUsageDetail_20' ) start [2025-03-24 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755002', 'tblTempUsageDetail_20' ) end [2025-03-24 21:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 21:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 21:48:22] Production.INFO: ==20844== Releasing lock... [2025-03-24 21:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 21:48:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-24 21:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 18:49:04 [end_date_ymd] => 2025-03-24 21:49:04 [RateCDR] => 1 ) [2025-03-24 21:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 18:49:04' and `end` < '2025-03-24 21:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 21:49:17] Production.INFO: count ==1268 [2025-03-24 21:49:17] Production.ERROR: pbx CDR StartTime 2025-03-24 18:49:04 - End Time 2025-03-24 21:49:04 [2025-03-24 21:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755005', 'tblTempUsageDetail_20' ) start [2025-03-24 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755005', 'tblTempUsageDetail_20' ) end [2025-03-24 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755005', 'tblTempVendorCDR_20' ) start [2025-03-24 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755005', 'tblTempVendorCDR_20' ) end [2025-03-24 21:49:17] Production.INFO: ProcessCDR(1,14755005,1,1,2) [2025-03-24 21:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755005', 'tblTempUsageDetail_20' ) start [2025-03-24 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755005', 'tblTempUsageDetail_20' ) end [2025-03-24 21:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 21:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 21:49:21] Production.INFO: ==20945== Releasing lock... [2025-03-24 21:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 21:49:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-24 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 18:50:06 [end_date_ymd] => 2025-03-24 21:50:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 18:50:06' and `end` < '2025-03-24 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-03-24 21:50:19] Production.INFO: count ==1272 [2025-03-24 21:50:19] Production.ERROR: pbx CDR StartTime 2025-03-24 18:50:06 - End Time 2025-03-24 21:50:06 [2025-03-24 21:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755012', 'tblTempUsageDetail_20' ) start [2025-03-24 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755012', 'tblTempUsageDetail_20' ) end [2025-03-24 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755012', 'tblTempVendorCDR_20' ) start [2025-03-24 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755012', 'tblTempVendorCDR_20' ) end [2025-03-24 21:50:19] Production.INFO: ProcessCDR(1,14755012,1,1,2) [2025-03-24 21:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755012', 'tblTempUsageDetail_20' ) start [2025-03-24 21:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755012', 'tblTempUsageDetail_20' ) end [2025-03-24 21:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 21:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 21:50:23] Production.INFO: ==21048== Releasing lock... [2025-03-24 21:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 21:50:23] Production.INFO: 37.75 MB #Memory Used# [2025-03-24 21:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 18:51:06 [end_date_ymd] => 2025-03-24 21:51:06 [RateCDR] => 1 ) [2025-03-24 21: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-03-24 18:51:06' and `end` < '2025-03-24 21: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-03-24 21:51:18] Production.INFO: count ==1275 [2025-03-24 21:51:19] Production.ERROR: pbx CDR StartTime 2025-03-24 18:51:06 - End Time 2025-03-24 21:51:06 [2025-03-24 21:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755018', 'tblTempUsageDetail_20' ) start [2025-03-24 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755018', 'tblTempUsageDetail_20' ) end [2025-03-24 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755018', 'tblTempVendorCDR_20' ) start [2025-03-24 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755018', 'tblTempVendorCDR_20' ) end [2025-03-24 21:51:19] Production.INFO: ProcessCDR(1,14755018,1,1,2) [2025-03-24 21:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755018', 'tblTempUsageDetail_20' ) start [2025-03-24 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755018', 'tblTempUsageDetail_20' ) end [2025-03-24 21:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 21:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 21:51:22] Production.INFO: ==21157== Releasing lock... [2025-03-24 21:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 21:51:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-24 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 18:52:05 [end_date_ymd] => 2025-03-24 21:52:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 18:52:05' and `end` < '2025-03-24 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-03-24 21:52:18] Production.INFO: count ==1273 [2025-03-24 21:52:18] Production.ERROR: pbx CDR StartTime 2025-03-24 18:52:05 - End Time 2025-03-24 21:52:05 [2025-03-24 21:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755023', 'tblTempUsageDetail_20' ) start [2025-03-24 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755023', 'tblTempUsageDetail_20' ) end [2025-03-24 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755023', 'tblTempVendorCDR_20' ) start [2025-03-24 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755023', 'tblTempVendorCDR_20' ) end [2025-03-24 21:52:18] Production.INFO: ProcessCDR(1,14755023,1,1,2) [2025-03-24 21:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755023', 'tblTempUsageDetail_20' ) start [2025-03-24 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755023', 'tblTempUsageDetail_20' ) end [2025-03-24 21:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 21:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 21:52:22] Production.INFO: ==21268== Releasing lock... [2025-03-24 21:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 21:52:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-24 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 18:53:05 [end_date_ymd] => 2025-03-24 21:53:05 [RateCDR] => 1 ) [2025-03-24 21:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 18:53:05' and `end` < '2025-03-24 21:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 21:53:18] Production.INFO: count ==1272 [2025-03-24 21:53:18] Production.ERROR: pbx CDR StartTime 2025-03-24 18:53:05 - End Time 2025-03-24 21:53:05 [2025-03-24 21:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755028', 'tblTempUsageDetail_20' ) start [2025-03-24 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755028', 'tblTempUsageDetail_20' ) end [2025-03-24 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755028', 'tblTempVendorCDR_20' ) start [2025-03-24 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755028', 'tblTempVendorCDR_20' ) end [2025-03-24 21:53:18] Production.INFO: ProcessCDR(1,14755028,1,1,2) [2025-03-24 21:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755028', 'tblTempUsageDetail_20' ) start [2025-03-24 21:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755028', 'tblTempUsageDetail_20' ) end [2025-03-24 21:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 21:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 21:53:22] Production.INFO: ==21368== Releasing lock... [2025-03-24 21:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 21:53:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-24 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 18:54:05 [end_date_ymd] => 2025-03-24 21:54:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 18:54:05' and `end` < '2025-03-24 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-03-24 21:54:18] Production.INFO: count ==1271 [2025-03-24 21:54:18] Production.ERROR: pbx CDR StartTime 2025-03-24 18:54:05 - End Time 2025-03-24 21:54:05 [2025-03-24 21:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755033', 'tblTempUsageDetail_20' ) start [2025-03-24 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755033', 'tblTempUsageDetail_20' ) end [2025-03-24 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755033', 'tblTempVendorCDR_20' ) start [2025-03-24 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755033', 'tblTempVendorCDR_20' ) end [2025-03-24 21:54:18] Production.INFO: ProcessCDR(1,14755033,1,1,2) [2025-03-24 21:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755033', 'tblTempUsageDetail_20' ) start [2025-03-24 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755033', 'tblTempUsageDetail_20' ) end [2025-03-24 21:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 21:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 21:54:21] Production.INFO: ==21469== Releasing lock... [2025-03-24 21:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 21:54:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-24 21:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 18:55:06 [end_date_ymd] => 2025-03-24 21:55:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 18:55:06' and `end` < '2025-03-24 21: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-03-24 21:55:18] Production.INFO: count ==1269 [2025-03-24 21:55:18] Production.ERROR: pbx CDR StartTime 2025-03-24 18:55:06 - End Time 2025-03-24 21:55:06 [2025-03-24 21:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755038', 'tblTempUsageDetail_20' ) start [2025-03-24 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755038', 'tblTempUsageDetail_20' ) end [2025-03-24 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755038', 'tblTempVendorCDR_20' ) start [2025-03-24 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755038', 'tblTempVendorCDR_20' ) end [2025-03-24 21:55:19] Production.INFO: ProcessCDR(1,14755038,1,1,2) [2025-03-24 21:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755038', 'tblTempUsageDetail_20' ) start [2025-03-24 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755038', 'tblTempUsageDetail_20' ) end [2025-03-24 21:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 21:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 21:55:22] Production.INFO: ==21574== Releasing lock... [2025-03-24 21:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 21:55:22] Production.INFO: 38 MB #Memory Used# [2025-03-24 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 18:56:05 [end_date_ymd] => 2025-03-24 21:56:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 18:56:05' and `end` < '2025-03-24 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-03-24 21:56:18] Production.INFO: count ==1267 [2025-03-24 21:56:18] Production.ERROR: pbx CDR StartTime 2025-03-24 18:56:05 - End Time 2025-03-24 21:56:05 [2025-03-24 21:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755043', 'tblTempUsageDetail_20' ) start [2025-03-24 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755043', 'tblTempUsageDetail_20' ) end [2025-03-24 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755043', 'tblTempVendorCDR_20' ) start [2025-03-24 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755043', 'tblTempVendorCDR_20' ) end [2025-03-24 21:56:18] Production.INFO: ProcessCDR(1,14755043,1,1,2) [2025-03-24 21:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755043', 'tblTempUsageDetail_20' ) start [2025-03-24 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755043', 'tblTempUsageDetail_20' ) end [2025-03-24 21:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 21:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 21:56:22] Production.INFO: ==21672== Releasing lock... [2025-03-24 21:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 21:56:22] Production.INFO: 38 MB #Memory Used# [2025-03-24 21:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 18:57:06 [end_date_ymd] => 2025-03-24 21:57:06 [RateCDR] => 1 ) [2025-03-24 21: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-03-24 18:57:06' and `end` < '2025-03-24 21: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-03-24 21:57:19] Production.INFO: count ==1266 [2025-03-24 21:57:19] Production.ERROR: pbx CDR StartTime 2025-03-24 18:57:06 - End Time 2025-03-24 21:57:06 [2025-03-24 21:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755048', 'tblTempUsageDetail_20' ) start [2025-03-24 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755048', 'tblTempUsageDetail_20' ) end [2025-03-24 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755048', 'tblTempVendorCDR_20' ) start [2025-03-24 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755048', 'tblTempVendorCDR_20' ) end [2025-03-24 21:57:19] Production.INFO: ProcessCDR(1,14755048,1,1,2) [2025-03-24 21:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755048', 'tblTempUsageDetail_20' ) start [2025-03-24 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755048', 'tblTempUsageDetail_20' ) end [2025-03-24 21:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 21:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 21:57:22] Production.INFO: ==21815== Releasing lock... [2025-03-24 21:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 21:57:22] Production.INFO: 38 MB #Memory Used# [2025-03-24 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 18:58:05 [end_date_ymd] => 2025-03-24 21:58:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 18:58:05' and `end` < '2025-03-24 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-03-24 21:58:18] Production.INFO: count ==1263 [2025-03-24 21:58:18] Production.ERROR: pbx CDR StartTime 2025-03-24 18:58:05 - End Time 2025-03-24 21:58:05 [2025-03-24 21:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755053', 'tblTempUsageDetail_20' ) start [2025-03-24 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755053', 'tblTempUsageDetail_20' ) end [2025-03-24 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755053', 'tblTempVendorCDR_20' ) start [2025-03-24 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755053', 'tblTempVendorCDR_20' ) end [2025-03-24 21:58:18] Production.INFO: ProcessCDR(1,14755053,1,1,2) [2025-03-24 21:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755053', 'tblTempUsageDetail_20' ) start [2025-03-24 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755053', 'tblTempUsageDetail_20' ) end [2025-03-24 21:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 21:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 21:58:22] Production.INFO: ==21936== Releasing lock... [2025-03-24 21:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 21:58:22] Production.INFO: 38 MB #Memory Used# [2025-03-24 21:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 18:59:06 [end_date_ymd] => 2025-03-24 21:59:06 [RateCDR] => 1 ) [2025-03-24 21: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-03-24 18:59:06' and `end` < '2025-03-24 21: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-03-24 21:59:18] Production.INFO: count ==1260 [2025-03-24 21:59:19] Production.ERROR: pbx CDR StartTime 2025-03-24 18:59:06 - End Time 2025-03-24 21:59:06 [2025-03-24 21:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755058', 'tblTempUsageDetail_20' ) start [2025-03-24 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755058', 'tblTempUsageDetail_20' ) end [2025-03-24 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755058', 'tblTempVendorCDR_20' ) start [2025-03-24 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755058', 'tblTempVendorCDR_20' ) end [2025-03-24 21:59:19] Production.INFO: ProcessCDR(1,14755058,1,1,2) [2025-03-24 21:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 21:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755058', 'tblTempUsageDetail_20' ) start [2025-03-24 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755058', 'tblTempUsageDetail_20' ) end [2025-03-24 21:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 21:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 21:59:22] Production.INFO: ==22042== Releasing lock... [2025-03-24 21:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 21:59:22] Production.INFO: 38 MB #Memory Used# [2025-03-24 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 19:00:06 [end_date_ymd] => 2025-03-24 22:00:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 19:00:06' and `end` < '2025-03-24 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-03-24 22:00:18] Production.INFO: count ==1255 [2025-03-24 22:00:19] Production.ERROR: pbx CDR StartTime 2025-03-24 19:00:06 - End Time 2025-03-24 22:00:06 [2025-03-24 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755064', 'tblTempUsageDetail_20' ) start [2025-03-24 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755064', 'tblTempUsageDetail_20' ) end [2025-03-24 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755064', 'tblTempVendorCDR_20' ) start [2025-03-24 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755064', 'tblTempVendorCDR_20' ) end [2025-03-24 22:00:19] Production.INFO: ProcessCDR(1,14755064,1,1,2) [2025-03-24 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755064', 'tblTempUsageDetail_20' ) start [2025-03-24 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755064', 'tblTempUsageDetail_20' ) end [2025-03-24 22:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 22:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 22:00:23] Production.INFO: ==22144== Releasing lock... [2025-03-24 22:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 22:00:23] Production.INFO: 37.75 MB #Memory Used# [2025-03-24 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 19:01:05 [end_date_ymd] => 2025-03-24 22:01:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 19:01:05' and `end` < '2025-03-24 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-03-24 22:01:18] Production.INFO: count ==1231 [2025-03-24 22:01:18] Production.ERROR: pbx CDR StartTime 2025-03-24 19:01:05 - End Time 2025-03-24 22:01:05 [2025-03-24 22:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755069', 'tblTempUsageDetail_20' ) start [2025-03-24 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755069', 'tblTempUsageDetail_20' ) end [2025-03-24 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755069', 'tblTempVendorCDR_20' ) start [2025-03-24 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755069', 'tblTempVendorCDR_20' ) end [2025-03-24 22:01:18] Production.INFO: ProcessCDR(1,14755069,1,1,2) [2025-03-24 22:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755069', 'tblTempUsageDetail_20' ) start [2025-03-24 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755069', 'tblTempUsageDetail_20' ) end [2025-03-24 22:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 22:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 22:01:22] Production.INFO: ==22261== Releasing lock... [2025-03-24 22:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 22:01:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-24 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 19:02:05 [end_date_ymd] => 2025-03-24 22:02:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 19:02:05' and `end` < '2025-03-24 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-03-24 22:02:18] Production.INFO: count ==1234 [2025-03-24 22:02:18] Production.ERROR: pbx CDR StartTime 2025-03-24 19:02:05 - End Time 2025-03-24 22:02:05 [2025-03-24 22:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755074', 'tblTempUsageDetail_20' ) start [2025-03-24 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755074', 'tblTempUsageDetail_20' ) end [2025-03-24 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755074', 'tblTempVendorCDR_20' ) start [2025-03-24 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755074', 'tblTempVendorCDR_20' ) end [2025-03-24 22:02:18] Production.INFO: ProcessCDR(1,14755074,1,1,2) [2025-03-24 22:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755074', 'tblTempUsageDetail_20' ) start [2025-03-24 22:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755074', 'tblTempUsageDetail_20' ) end [2025-03-24 22:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 22:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 22:02:22] Production.INFO: ==22359== Releasing lock... [2025-03-24 22:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 22:02:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-24 22:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 19:03:06 [end_date_ymd] => 2025-03-24 22:03:06 [RateCDR] => 1 ) [2025-03-24 22:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 19:03:06' and `end` < '2025-03-24 22:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 22:03:18] Production.INFO: count ==1232 [2025-03-24 22:03:19] Production.ERROR: pbx CDR StartTime 2025-03-24 19:03:06 - End Time 2025-03-24 22:03:06 [2025-03-24 22:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755079', 'tblTempUsageDetail_20' ) start [2025-03-24 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755079', 'tblTempUsageDetail_20' ) end [2025-03-24 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755079', 'tblTempVendorCDR_20' ) start [2025-03-24 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755079', 'tblTempVendorCDR_20' ) end [2025-03-24 22:03:19] Production.INFO: ProcessCDR(1,14755079,1,1,2) [2025-03-24 22:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755079', 'tblTempUsageDetail_20' ) start [2025-03-24 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755079', 'tblTempUsageDetail_20' ) end [2025-03-24 22:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 22:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 22:03:22] Production.INFO: ==22469== Releasing lock... [2025-03-24 22:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 22:03:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-24 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 19:04:05 [end_date_ymd] => 2025-03-24 22:04:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 19:04:05' and `end` < '2025-03-24 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-03-24 22:04:18] Production.INFO: count ==1236 [2025-03-24 22:04:18] Production.ERROR: pbx CDR StartTime 2025-03-24 19:04:05 - End Time 2025-03-24 22:04:05 [2025-03-24 22:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755084', 'tblTempUsageDetail_20' ) start [2025-03-24 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755084', 'tblTempUsageDetail_20' ) end [2025-03-24 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755084', 'tblTempVendorCDR_20' ) start [2025-03-24 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755084', 'tblTempVendorCDR_20' ) end [2025-03-24 22:04:18] Production.INFO: ProcessCDR(1,14755084,1,1,2) [2025-03-24 22:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755084', 'tblTempUsageDetail_20' ) start [2025-03-24 22:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755084', 'tblTempUsageDetail_20' ) end [2025-03-24 22:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 22:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 22:04:23] Production.INFO: ==22569== Releasing lock... [2025-03-24 22:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 22:04:23] Production.INFO: 37.75 MB #Memory Used# [2025-03-24 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 19:05:05 [end_date_ymd] => 2025-03-24 22:05:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 19:05:05' and `end` < '2025-03-24 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-03-24 22:05:18] Production.INFO: count ==1236 [2025-03-24 22:05:18] Production.ERROR: pbx CDR StartTime 2025-03-24 19:05:05 - End Time 2025-03-24 22:05:05 [2025-03-24 22:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755089', 'tblTempUsageDetail_20' ) start [2025-03-24 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755089', 'tblTempUsageDetail_20' ) end [2025-03-24 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755089', 'tblTempVendorCDR_20' ) start [2025-03-24 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755089', 'tblTempVendorCDR_20' ) end [2025-03-24 22:05:18] Production.INFO: ProcessCDR(1,14755089,1,1,2) [2025-03-24 22:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755089', 'tblTempUsageDetail_20' ) start [2025-03-24 22:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755089', 'tblTempUsageDetail_20' ) end [2025-03-24 22:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 22:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 22:05:23] Production.INFO: ==22687== Releasing lock... [2025-03-24 22:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 22:05:23] Production.INFO: 38 MB #Memory Used# [2025-03-24 22:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 19:06:06 [end_date_ymd] => 2025-03-24 22:06:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 19:06:06' and `end` < '2025-03-24 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-03-24 22:06:18] Production.INFO: count ==1220 [2025-03-24 22:06:18] Production.ERROR: pbx CDR StartTime 2025-03-24 19:06:06 - End Time 2025-03-24 22:06:06 [2025-03-24 22:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755094', 'tblTempUsageDetail_20' ) start [2025-03-24 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755094', 'tblTempUsageDetail_20' ) end [2025-03-24 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755094', 'tblTempVendorCDR_20' ) start [2025-03-24 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755094', 'tblTempVendorCDR_20' ) end [2025-03-24 22:06:18] Production.INFO: ProcessCDR(1,14755094,1,1,2) [2025-03-24 22:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755094', 'tblTempUsageDetail_20' ) start [2025-03-24 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755094', 'tblTempUsageDetail_20' ) end [2025-03-24 22:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 22:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 22:06:22] Production.INFO: ==22785== Releasing lock... [2025-03-24 22:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 22:06:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-24 22:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 19:07:06 [end_date_ymd] => 2025-03-24 22:07:06 [RateCDR] => 1 ) [2025-03-24 22: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-03-24 19:07:06' and `end` < '2025-03-24 22: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-03-24 22:07:18] Production.INFO: count ==1225 [2025-03-24 22:07:19] Production.ERROR: pbx CDR StartTime 2025-03-24 19:07:06 - End Time 2025-03-24 22:07:06 [2025-03-24 22:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755099', 'tblTempUsageDetail_20' ) start [2025-03-24 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755099', 'tblTempUsageDetail_20' ) end [2025-03-24 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755099', 'tblTempVendorCDR_20' ) start [2025-03-24 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755099', 'tblTempVendorCDR_20' ) end [2025-03-24 22:07:19] Production.INFO: ProcessCDR(1,14755099,1,1,2) [2025-03-24 22:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755099', 'tblTempUsageDetail_20' ) start [2025-03-24 22:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755099', 'tblTempUsageDetail_20' ) end [2025-03-24 22:07:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 22:07:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 22:07:24] Production.INFO: ==22880== Releasing lock... [2025-03-24 22:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 22:07:24] Production.INFO: 37.5 MB #Memory Used# [2025-03-24 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 19:08:05 [end_date_ymd] => 2025-03-24 22:08:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 19:08:05' and `end` < '2025-03-24 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-03-24 22:08:18] Production.INFO: count ==1217 [2025-03-24 22:08:18] Production.ERROR: pbx CDR StartTime 2025-03-24 19:08:05 - End Time 2025-03-24 22:08:05 [2025-03-24 22:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755104', 'tblTempUsageDetail_20' ) start [2025-03-24 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755104', 'tblTempUsageDetail_20' ) end [2025-03-24 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755104', 'tblTempVendorCDR_20' ) start [2025-03-24 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755104', 'tblTempVendorCDR_20' ) end [2025-03-24 22:08:18] Production.INFO: ProcessCDR(1,14755104,1,1,2) [2025-03-24 22:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755104', 'tblTempUsageDetail_20' ) start [2025-03-24 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755104', 'tblTempUsageDetail_20' ) end [2025-03-24 22:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 22:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 22:08:21] Production.INFO: ==22964== Releasing lock... [2025-03-24 22:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 22:08:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-24 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 19:09:05 [end_date_ymd] => 2025-03-24 22:09:05 [RateCDR] => 1 ) [2025-03-24 22:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 19:09:05' and `end` < '2025-03-24 22:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 22:09:18] Production.INFO: count ==1213 [2025-03-24 22:09:18] Production.ERROR: pbx CDR StartTime 2025-03-24 19:09:05 - End Time 2025-03-24 22:09:05 [2025-03-24 22:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755109', 'tblTempUsageDetail_20' ) start [2025-03-24 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755109', 'tblTempUsageDetail_20' ) end [2025-03-24 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755109', 'tblTempVendorCDR_20' ) start [2025-03-24 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755109', 'tblTempVendorCDR_20' ) end [2025-03-24 22:09:18] Production.INFO: ProcessCDR(1,14755109,1,1,2) [2025-03-24 22:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755109', 'tblTempUsageDetail_20' ) start [2025-03-24 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755109', 'tblTempUsageDetail_20' ) end [2025-03-24 22:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 22:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 22:09:22] Production.INFO: ==23054== Releasing lock... [2025-03-24 22:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 22:09:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-24 22:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 19:10:05 [end_date_ymd] => 2025-03-24 22:10:05 [RateCDR] => 1 ) [2025-03-24 22:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 19:10:05' and `end` < '2025-03-24 22:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 22:10:18] Production.INFO: count ==1213 [2025-03-24 22:10:18] Production.ERROR: pbx CDR StartTime 2025-03-24 19:10:05 - End Time 2025-03-24 22:10:05 [2025-03-24 22:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755115', 'tblTempUsageDetail_20' ) start [2025-03-24 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755115', 'tblTempUsageDetail_20' ) end [2025-03-24 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755115', 'tblTempVendorCDR_20' ) start [2025-03-24 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755115', 'tblTempVendorCDR_20' ) end [2025-03-24 22:10:18] Production.INFO: ProcessCDR(1,14755115,1,1,2) [2025-03-24 22:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755115', 'tblTempUsageDetail_20' ) start [2025-03-24 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755115', 'tblTempUsageDetail_20' ) end [2025-03-24 22:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 22:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 22:10:22] Production.INFO: ==23144== Releasing lock... [2025-03-24 22:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 22:10:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-24 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 19:11:05 [end_date_ymd] => 2025-03-24 22:11:05 [RateCDR] => 1 ) [2025-03-24 22:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 19:11:05' and `end` < '2025-03-24 22:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 22:11:18] Production.INFO: count ==1160 [2025-03-24 22:11:18] Production.ERROR: pbx CDR StartTime 2025-03-24 19:11:05 - End Time 2025-03-24 22:11:05 [2025-03-24 22:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755120', 'tblTempUsageDetail_20' ) start [2025-03-24 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755120', 'tblTempUsageDetail_20' ) end [2025-03-24 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755120', 'tblTempVendorCDR_20' ) start [2025-03-24 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755120', 'tblTempVendorCDR_20' ) end [2025-03-24 22:11:18] Production.INFO: ProcessCDR(1,14755120,1,1,2) [2025-03-24 22:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755120', 'tblTempUsageDetail_20' ) start [2025-03-24 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755120', 'tblTempUsageDetail_20' ) end [2025-03-24 22:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 22:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 22:11:21] Production.INFO: ==23242== Releasing lock... [2025-03-24 22:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 22:11:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-24 22:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 19:12:06 [end_date_ymd] => 2025-03-24 22:12:06 [RateCDR] => 1 ) [2025-03-24 22: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-03-24 19:12:06' and `end` < '2025-03-24 22: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-03-24 22:12:18] Production.INFO: count ==1162 [2025-03-24 22:12:18] Production.ERROR: pbx CDR StartTime 2025-03-24 19:12:06 - End Time 2025-03-24 22:12:06 [2025-03-24 22:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755125', 'tblTempUsageDetail_20' ) start [2025-03-24 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755125', 'tblTempUsageDetail_20' ) end [2025-03-24 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755125', 'tblTempVendorCDR_20' ) start [2025-03-24 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755125', 'tblTempVendorCDR_20' ) end [2025-03-24 22:12:18] Production.INFO: ProcessCDR(1,14755125,1,1,2) [2025-03-24 22:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755125', 'tblTempUsageDetail_20' ) start [2025-03-24 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755125', 'tblTempUsageDetail_20' ) end [2025-03-24 22:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 22:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 22:12:22] Production.INFO: ==23376== Releasing lock... [2025-03-24 22:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 22:12:22] Production.INFO: 37 MB #Memory Used# [2025-03-24 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 19:13:05 [end_date_ymd] => 2025-03-24 22:13:05 [RateCDR] => 1 ) [2025-03-24 22:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 19:13:05' and `end` < '2025-03-24 22:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 22:13:17] Production.INFO: count ==1169 [2025-03-24 22:13:18] Production.ERROR: pbx CDR StartTime 2025-03-24 19:13:05 - End Time 2025-03-24 22:13:05 [2025-03-24 22:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755130', 'tblTempUsageDetail_20' ) start [2025-03-24 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755130', 'tblTempUsageDetail_20' ) end [2025-03-24 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755130', 'tblTempVendorCDR_20' ) start [2025-03-24 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755130', 'tblTempVendorCDR_20' ) end [2025-03-24 22:13:18] Production.INFO: ProcessCDR(1,14755130,1,1,2) [2025-03-24 22:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755130', 'tblTempUsageDetail_20' ) start [2025-03-24 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755130', 'tblTempUsageDetail_20' ) end [2025-03-24 22:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 22:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 22:13:21] Production.INFO: ==23465== Releasing lock... [2025-03-24 22:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 22:13:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-24 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 19:14:05 [end_date_ymd] => 2025-03-24 22:14:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 19:14:05' and `end` < '2025-03-24 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-03-24 22:14:18] Production.INFO: count ==1171 [2025-03-24 22:14:18] Production.ERROR: pbx CDR StartTime 2025-03-24 19:14:05 - End Time 2025-03-24 22:14:05 [2025-03-24 22:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755135', 'tblTempUsageDetail_20' ) start [2025-03-24 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755135', 'tblTempUsageDetail_20' ) end [2025-03-24 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755135', 'tblTempVendorCDR_20' ) start [2025-03-24 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755135', 'tblTempVendorCDR_20' ) end [2025-03-24 22:14:18] Production.INFO: ProcessCDR(1,14755135,1,1,2) [2025-03-24 22:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755135', 'tblTempUsageDetail_20' ) start [2025-03-24 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755135', 'tblTempUsageDetail_20' ) end [2025-03-24 22:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 22:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 22:14:22] Production.INFO: ==23561== Releasing lock... [2025-03-24 22:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 22:14:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-24 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 19:15:05 [end_date_ymd] => 2025-03-24 22:15:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 19:15:05' and `end` < '2025-03-24 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-03-24 22:15:18] Production.INFO: count ==1166 [2025-03-24 22:15:18] Production.ERROR: pbx CDR StartTime 2025-03-24 19:15:05 - End Time 2025-03-24 22:15:05 [2025-03-24 22:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755140', 'tblTempUsageDetail_20' ) start [2025-03-24 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755140', 'tblTempUsageDetail_20' ) end [2025-03-24 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755140', 'tblTempVendorCDR_20' ) start [2025-03-24 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755140', 'tblTempVendorCDR_20' ) end [2025-03-24 22:15:18] Production.INFO: ProcessCDR(1,14755140,1,1,2) [2025-03-24 22:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755140', 'tblTempUsageDetail_20' ) start [2025-03-24 22:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755140', 'tblTempUsageDetail_20' ) end [2025-03-24 22:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 22:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 22:15:22] Production.INFO: ==23649== Releasing lock... [2025-03-24 22:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 22:15:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-24 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 19:16:05 [end_date_ymd] => 2025-03-24 22:16:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 19:16:05' and `end` < '2025-03-24 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-03-24 22:16:18] Production.INFO: count ==1165 [2025-03-24 22:16:18] Production.ERROR: pbx CDR StartTime 2025-03-24 19:16:05 - End Time 2025-03-24 22:16:05 [2025-03-24 22:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755145', 'tblTempUsageDetail_20' ) start [2025-03-24 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755145', 'tblTempUsageDetail_20' ) end [2025-03-24 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755145', 'tblTempVendorCDR_20' ) start [2025-03-24 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755145', 'tblTempVendorCDR_20' ) end [2025-03-24 22:16:18] Production.INFO: ProcessCDR(1,14755145,1,1,2) [2025-03-24 22:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755145', 'tblTempUsageDetail_20' ) start [2025-03-24 22:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755145', 'tblTempUsageDetail_20' ) end [2025-03-24 22:16:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 22:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 22:16:23] Production.INFO: ==23739== Releasing lock... [2025-03-24 22:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 22:16:23] Production.INFO: 37 MB #Memory Used# [2025-03-24 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 19:17:05 [end_date_ymd] => 2025-03-24 22:17:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 19:17:05' and `end` < '2025-03-24 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-03-24 22:17:18] Production.INFO: count ==1160 [2025-03-24 22:17:18] Production.ERROR: pbx CDR StartTime 2025-03-24 19:17:05 - End Time 2025-03-24 22:17:05 [2025-03-24 22:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755150', 'tblTempUsageDetail_20' ) start [2025-03-24 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755150', 'tblTempUsageDetail_20' ) end [2025-03-24 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755150', 'tblTempVendorCDR_20' ) start [2025-03-24 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755150', 'tblTempVendorCDR_20' ) end [2025-03-24 22:17:18] Production.INFO: ProcessCDR(1,14755150,1,1,2) [2025-03-24 22:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755150', 'tblTempUsageDetail_20' ) start [2025-03-24 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755150', 'tblTempUsageDetail_20' ) end [2025-03-24 22:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 22:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 22:17:21] Production.INFO: ==23823== Releasing lock... [2025-03-24 22:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 22:17:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-24 22:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 19:18:06 [end_date_ymd] => 2025-03-24 22:18:06 [RateCDR] => 1 ) [2025-03-24 22: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-03-24 19:18:06' and `end` < '2025-03-24 22: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-03-24 22:18:18] Production.INFO: count ==1155 [2025-03-24 22:18:18] Production.ERROR: pbx CDR StartTime 2025-03-24 19:18:06 - End Time 2025-03-24 22:18:06 [2025-03-24 22:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755155', 'tblTempUsageDetail_20' ) start [2025-03-24 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755155', 'tblTempUsageDetail_20' ) end [2025-03-24 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755155', 'tblTempVendorCDR_20' ) start [2025-03-24 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755155', 'tblTempVendorCDR_20' ) end [2025-03-24 22:18:18] Production.INFO: ProcessCDR(1,14755155,1,1,2) [2025-03-24 22:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755155', 'tblTempUsageDetail_20' ) start [2025-03-24 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755155', 'tblTempUsageDetail_20' ) end [2025-03-24 22:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 22:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 22:18:22] Production.INFO: ==23910== Releasing lock... [2025-03-24 22:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 22:18:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-24 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 19:19:05 [end_date_ymd] => 2025-03-24 22:19:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 19:19:05' and `end` < '2025-03-24 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-03-24 22:19:17] Production.INFO: count ==1155 [2025-03-24 22:19:18] Production.ERROR: pbx CDR StartTime 2025-03-24 19:19:05 - End Time 2025-03-24 22:19:05 [2025-03-24 22:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755160', 'tblTempUsageDetail_20' ) start [2025-03-24 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755160', 'tblTempUsageDetail_20' ) end [2025-03-24 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755160', 'tblTempVendorCDR_20' ) start [2025-03-24 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755160', 'tblTempVendorCDR_20' ) end [2025-03-24 22:19:18] Production.INFO: ProcessCDR(1,14755160,1,1,2) [2025-03-24 22:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755160', 'tblTempUsageDetail_20' ) start [2025-03-24 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755160', 'tblTempUsageDetail_20' ) end [2025-03-24 22:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 22:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 22:19:21] Production.INFO: ==23999== Releasing lock... [2025-03-24 22:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 22:19:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-24 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 19:20:06 [end_date_ymd] => 2025-03-24 22:20:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 19:20:06' and `end` < '2025-03-24 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-03-24 22:20:19] Production.INFO: count ==1153 [2025-03-24 22:20:19] Production.ERROR: pbx CDR StartTime 2025-03-24 19:20:06 - End Time 2025-03-24 22:20:06 [2025-03-24 22:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755166', 'tblTempUsageDetail_20' ) start [2025-03-24 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755166', 'tblTempUsageDetail_20' ) end [2025-03-24 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755166', 'tblTempVendorCDR_20' ) start [2025-03-24 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755166', 'tblTempVendorCDR_20' ) end [2025-03-24 22:20:19] Production.INFO: ProcessCDR(1,14755166,1,1,2) [2025-03-24 22:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755166', 'tblTempUsageDetail_20' ) start [2025-03-24 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755166', 'tblTempUsageDetail_20' ) end [2025-03-24 22:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 22:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 22:20:22] Production.INFO: ==24083== Releasing lock... [2025-03-24 22:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 22:20:22] Production.INFO: 37 MB #Memory Used# [2025-03-24 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 19:21:05 [end_date_ymd] => 2025-03-24 22:21:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 19:21:05' and `end` < '2025-03-24 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-03-24 22:21:17] Production.INFO: count ==1115 [2025-03-24 22:21:17] Production.ERROR: pbx CDR StartTime 2025-03-24 19:21:05 - End Time 2025-03-24 22:21:05 [2025-03-24 22:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755171', 'tblTempUsageDetail_20' ) start [2025-03-24 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755171', 'tblTempUsageDetail_20' ) end [2025-03-24 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755171', 'tblTempVendorCDR_20' ) start [2025-03-24 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755171', 'tblTempVendorCDR_20' ) end [2025-03-24 22:21:17] Production.INFO: ProcessCDR(1,14755171,1,1,2) [2025-03-24 22:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755171', 'tblTempUsageDetail_20' ) start [2025-03-24 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755171', 'tblTempUsageDetail_20' ) end [2025-03-24 22:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 22:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 22:21:21] Production.INFO: ==24171== Releasing lock... [2025-03-24 22:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 22:21:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-24 22:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 19:22:06 [end_date_ymd] => 2025-03-24 22:22:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 19:22:06' and `end` < '2025-03-24 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-03-24 22:22:18] Production.INFO: count ==1113 [2025-03-24 22:22:18] Production.ERROR: pbx CDR StartTime 2025-03-24 19:22:06 - End Time 2025-03-24 22:22:06 [2025-03-24 22:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755176', 'tblTempUsageDetail_20' ) start [2025-03-24 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755176', 'tblTempUsageDetail_20' ) end [2025-03-24 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755176', 'tblTempVendorCDR_20' ) start [2025-03-24 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755176', 'tblTempVendorCDR_20' ) end [2025-03-24 22:22:18] Production.INFO: ProcessCDR(1,14755176,1,1,2) [2025-03-24 22:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755176', 'tblTempUsageDetail_20' ) start [2025-03-24 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755176', 'tblTempUsageDetail_20' ) end [2025-03-24 22:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 22:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 22:22:22] Production.INFO: ==24258== Releasing lock... [2025-03-24 22:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 22:22:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-24 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 19:23:05 [end_date_ymd] => 2025-03-24 22:23:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 19:23:05' and `end` < '2025-03-24 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-03-24 22:23:18] Production.INFO: count ==1113 [2025-03-24 22:23:18] Production.ERROR: pbx CDR StartTime 2025-03-24 19:23:05 - End Time 2025-03-24 22:23:05 [2025-03-24 22:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755181', 'tblTempUsageDetail_20' ) start [2025-03-24 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755181', 'tblTempUsageDetail_20' ) end [2025-03-24 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755181', 'tblTempVendorCDR_20' ) start [2025-03-24 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755181', 'tblTempVendorCDR_20' ) end [2025-03-24 22:23:18] Production.INFO: ProcessCDR(1,14755181,1,1,2) [2025-03-24 22:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755181', 'tblTempUsageDetail_20' ) start [2025-03-24 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755181', 'tblTempUsageDetail_20' ) end [2025-03-24 22:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 22:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 22:23:22] Production.INFO: ==24346== Releasing lock... [2025-03-24 22:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 22:23:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-24 22:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 19:24:06 [end_date_ymd] => 2025-03-24 22:24:06 [RateCDR] => 1 ) [2025-03-24 22: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-03-24 19:24:06' and `end` < '2025-03-24 22: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-03-24 22:24:18] Production.INFO: count ==1116 [2025-03-24 22:24:19] Production.ERROR: pbx CDR StartTime 2025-03-24 19:24:06 - End Time 2025-03-24 22:24:06 [2025-03-24 22:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755186', 'tblTempUsageDetail_20' ) start [2025-03-24 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755186', 'tblTempUsageDetail_20' ) end [2025-03-24 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755186', 'tblTempVendorCDR_20' ) start [2025-03-24 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755186', 'tblTempVendorCDR_20' ) end [2025-03-24 22:24:19] Production.INFO: ProcessCDR(1,14755186,1,1,2) [2025-03-24 22:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755186', 'tblTempUsageDetail_20' ) start [2025-03-24 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755186', 'tblTempUsageDetail_20' ) end [2025-03-24 22:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 22:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 22:24:22] Production.INFO: ==24431== Releasing lock... [2025-03-24 22:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 22:24:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-24 22:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 19:25:04 [end_date_ymd] => 2025-03-24 22:25:04 [RateCDR] => 1 ) [2025-03-24 22:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 19:25:04' and `end` < '2025-03-24 22:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 22:25:17] Production.INFO: count ==1108 [2025-03-24 22:25:17] Production.ERROR: pbx CDR StartTime 2025-03-24 19:25:04 - End Time 2025-03-24 22:25:04 [2025-03-24 22:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755190', 'tblTempUsageDetail_20' ) start [2025-03-24 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755190', 'tblTempUsageDetail_20' ) end [2025-03-24 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755190', 'tblTempVendorCDR_20' ) start [2025-03-24 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755190', 'tblTempVendorCDR_20' ) end [2025-03-24 22:25:17] Production.INFO: ProcessCDR(1,14755190,1,1,2) [2025-03-24 22:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755190', 'tblTempUsageDetail_20' ) start [2025-03-24 22:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755190', 'tblTempUsageDetail_20' ) end [2025-03-24 22:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-24 22:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-24 22:25:20] Production.INFO: ==24520== Releasing lock... [2025-03-24 22:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 22:25:20] Production.INFO: 36.75 MB #Memory Used# [2025-03-24 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 19:26:05 [end_date_ymd] => 2025-03-24 22:26:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 19:26:05' and `end` < '2025-03-24 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-03-24 22:26:18] Production.INFO: count ==1105 [2025-03-24 22:26:18] Production.ERROR: pbx CDR StartTime 2025-03-24 19:26:05 - End Time 2025-03-24 22:26:05 [2025-03-24 22:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755196', 'tblTempUsageDetail_20' ) start [2025-03-24 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755196', 'tblTempUsageDetail_20' ) end [2025-03-24 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755196', 'tblTempVendorCDR_20' ) start [2025-03-24 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755196', 'tblTempVendorCDR_20' ) end [2025-03-24 22:26:18] Production.INFO: ProcessCDR(1,14755196,1,1,2) [2025-03-24 22:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755196', 'tblTempUsageDetail_20' ) start [2025-03-24 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755196', 'tblTempUsageDetail_20' ) end [2025-03-24 22:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 22:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 22:26:22] Production.INFO: ==24611== Releasing lock... [2025-03-24 22:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 22:26:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-24 22:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 19:27:05 [end_date_ymd] => 2025-03-24 22:27:05 [RateCDR] => 1 ) [2025-03-24 22:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 19:27:05' and `end` < '2025-03-24 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-03-24 22:27:18] Production.INFO: count ==1100 [2025-03-24 22:27:18] Production.ERROR: pbx CDR StartTime 2025-03-24 19:27:05 - End Time 2025-03-24 22:27:05 [2025-03-24 22:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755201', 'tblTempUsageDetail_20' ) start [2025-03-24 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755201', 'tblTempUsageDetail_20' ) end [2025-03-24 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755201', 'tblTempVendorCDR_20' ) start [2025-03-24 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755201', 'tblTempVendorCDR_20' ) end [2025-03-24 22:27:18] Production.INFO: ProcessCDR(1,14755201,1,1,2) [2025-03-24 22:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755201', 'tblTempUsageDetail_20' ) start [2025-03-24 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755201', 'tblTempUsageDetail_20' ) end [2025-03-24 22:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 22:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 22:27:22] Production.INFO: ==24701== Releasing lock... [2025-03-24 22:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 22:27:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-24 22:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 19:28:06 [end_date_ymd] => 2025-03-24 22:28:06 [RateCDR] => 1 ) [2025-03-24 22: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-03-24 19:28:06' and `end` < '2025-03-24 22: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-03-24 22:28:18] Production.INFO: count ==1097 [2025-03-24 22:28:18] Production.ERROR: pbx CDR StartTime 2025-03-24 19:28:06 - End Time 2025-03-24 22:28:06 [2025-03-24 22:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755206', 'tblTempUsageDetail_20' ) start [2025-03-24 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755206', 'tblTempUsageDetail_20' ) end [2025-03-24 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755206', 'tblTempVendorCDR_20' ) start [2025-03-24 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755206', 'tblTempVendorCDR_20' ) end [2025-03-24 22:28:18] Production.INFO: ProcessCDR(1,14755206,1,1,2) [2025-03-24 22:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755206', 'tblTempUsageDetail_20' ) start [2025-03-24 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755206', 'tblTempUsageDetail_20' ) end [2025-03-24 22:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 22:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 22:28:22] Production.INFO: ==24829== Releasing lock... [2025-03-24 22:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 22:28:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-24 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 19:29:05 [end_date_ymd] => 2025-03-24 22:29:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 19:29:05' and `end` < '2025-03-24 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-03-24 22:29:18] Production.INFO: count ==1093 [2025-03-24 22:29:18] Production.ERROR: pbx CDR StartTime 2025-03-24 19:29:05 - End Time 2025-03-24 22:29:05 [2025-03-24 22:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755211', 'tblTempUsageDetail_20' ) start [2025-03-24 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755211', 'tblTempUsageDetail_20' ) end [2025-03-24 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755211', 'tblTempVendorCDR_20' ) start [2025-03-24 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755211', 'tblTempVendorCDR_20' ) end [2025-03-24 22:29:18] Production.INFO: ProcessCDR(1,14755211,1,1,2) [2025-03-24 22:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755211', 'tblTempUsageDetail_20' ) start [2025-03-24 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755211', 'tblTempUsageDetail_20' ) end [2025-03-24 22:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 22:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 22:29:22] Production.INFO: ==24916== Releasing lock... [2025-03-24 22:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 22:29:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-24 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 19:30:06 [end_date_ymd] => 2025-03-24 22:30:06 [RateCDR] => 1 ) [2025-03-24 22:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 19:30:06' and `end` < '2025-03-24 22:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 22:30:19] Production.INFO: count ==1087 [2025-03-24 22:30:19] Production.ERROR: pbx CDR StartTime 2025-03-24 19:30:06 - End Time 2025-03-24 22:30:06 [2025-03-24 22:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755217', 'tblTempUsageDetail_20' ) start [2025-03-24 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755217', 'tblTempUsageDetail_20' ) end [2025-03-24 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755217', 'tblTempVendorCDR_20' ) start [2025-03-24 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755217', 'tblTempVendorCDR_20' ) end [2025-03-24 22:30:19] Production.INFO: ProcessCDR(1,14755217,1,1,2) [2025-03-24 22:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755217', 'tblTempUsageDetail_20' ) start [2025-03-24 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755217', 'tblTempUsageDetail_20' ) end [2025-03-24 22:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 22:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 22:30:22] Production.INFO: ==25004== Releasing lock... [2025-03-24 22:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 22:30:22] Production.INFO: 37 MB #Memory Used# [2025-03-24 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 19:31:05 [end_date_ymd] => 2025-03-24 22:31:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 19:31:05' and `end` < '2025-03-24 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-03-24 22:31:18] Production.INFO: count ==1047 [2025-03-24 22:31:18] Production.ERROR: pbx CDR StartTime 2025-03-24 19:31:05 - End Time 2025-03-24 22:31:05 [2025-03-24 22:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755222', 'tblTempUsageDetail_20' ) start [2025-03-24 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755222', 'tblTempUsageDetail_20' ) end [2025-03-24 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755222', 'tblTempVendorCDR_20' ) start [2025-03-24 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755222', 'tblTempVendorCDR_20' ) end [2025-03-24 22:31:18] Production.INFO: ProcessCDR(1,14755222,1,1,2) [2025-03-24 22:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755222', 'tblTempUsageDetail_20' ) start [2025-03-24 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755222', 'tblTempUsageDetail_20' ) end [2025-03-24 22:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 22:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 22:31:21] Production.INFO: ==25093== Releasing lock... [2025-03-24 22:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 22:31:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-24 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 19:32:05 [end_date_ymd] => 2025-03-24 22:32:05 [RateCDR] => 1 ) [2025-03-24 22:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 19:32:05' and `end` < '2025-03-24 22:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 22:32:17] Production.INFO: count ==1044 [2025-03-24 22:32:18] Production.ERROR: pbx CDR StartTime 2025-03-24 19:32:05 - End Time 2025-03-24 22:32:05 [2025-03-24 22:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755227', 'tblTempUsageDetail_20' ) start [2025-03-24 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755227', 'tblTempUsageDetail_20' ) end [2025-03-24 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755227', 'tblTempVendorCDR_20' ) start [2025-03-24 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755227', 'tblTempVendorCDR_20' ) end [2025-03-24 22:32:18] Production.INFO: ProcessCDR(1,14755227,1,1,2) [2025-03-24 22:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755227', 'tblTempUsageDetail_20' ) start [2025-03-24 22:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755227', 'tblTempUsageDetail_20' ) end [2025-03-24 22:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 22:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 22:32:23] Production.INFO: ==25181== Releasing lock... [2025-03-24 22:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 22:32:23] Production.INFO: 36.5 MB #Memory Used# [2025-03-24 22:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 19:33:06 [end_date_ymd] => 2025-03-24 22:33:06 [RateCDR] => 1 ) [2025-03-24 22:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 19:33:06' and `end` < '2025-03-24 22:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 22:33:18] Production.INFO: count ==1042 [2025-03-24 22:33:19] Production.ERROR: pbx CDR StartTime 2025-03-24 19:33:06 - End Time 2025-03-24 22:33:06 [2025-03-24 22:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755232', 'tblTempUsageDetail_20' ) start [2025-03-24 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755232', 'tblTempUsageDetail_20' ) end [2025-03-24 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755232', 'tblTempVendorCDR_20' ) start [2025-03-24 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755232', 'tblTempVendorCDR_20' ) end [2025-03-24 22:33:19] Production.INFO: ProcessCDR(1,14755232,1,1,2) [2025-03-24 22:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755232', 'tblTempUsageDetail_20' ) start [2025-03-24 22:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755232', 'tblTempUsageDetail_20' ) end [2025-03-24 22:33:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 22:33:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 22:33:24] Production.INFO: ==25273== Releasing lock... [2025-03-24 22:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 22:33:24] Production.INFO: 36.25 MB #Memory Used# [2025-03-24 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 19:34:05 [end_date_ymd] => 2025-03-24 22:34:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 19:34:05' and `end` < '2025-03-24 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-03-24 22:34:17] Production.INFO: count ==1042 [2025-03-24 22:34:18] Production.ERROR: pbx CDR StartTime 2025-03-24 19:34:05 - End Time 2025-03-24 22:34:05 [2025-03-24 22:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755237', 'tblTempUsageDetail_20' ) start [2025-03-24 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755237', 'tblTempUsageDetail_20' ) end [2025-03-24 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755237', 'tblTempVendorCDR_20' ) start [2025-03-24 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755237', 'tblTempVendorCDR_20' ) end [2025-03-24 22:34:18] Production.INFO: ProcessCDR(1,14755237,1,1,2) [2025-03-24 22:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755237', 'tblTempUsageDetail_20' ) start [2025-03-24 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755237', 'tblTempUsageDetail_20' ) end [2025-03-24 22:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 22:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 22:34:21] Production.INFO: ==25366== Releasing lock... [2025-03-24 22:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 22:34:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-24 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 19:35:05 [end_date_ymd] => 2025-03-24 22:35:05 [RateCDR] => 1 ) [2025-03-24 22:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 19:35:05' and `end` < '2025-03-24 22:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 22:35:18] Production.INFO: count ==1035 [2025-03-24 22:35:18] Production.ERROR: pbx CDR StartTime 2025-03-24 19:35:05 - End Time 2025-03-24 22:35:05 [2025-03-24 22:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755242', 'tblTempUsageDetail_20' ) start [2025-03-24 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755242', 'tblTempUsageDetail_20' ) end [2025-03-24 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755242', 'tblTempVendorCDR_20' ) start [2025-03-24 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755242', 'tblTempVendorCDR_20' ) end [2025-03-24 22:35:18] Production.INFO: ProcessCDR(1,14755242,1,1,2) [2025-03-24 22:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755242', 'tblTempUsageDetail_20' ) start [2025-03-24 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755242', 'tblTempUsageDetail_20' ) end [2025-03-24 22:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 22:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 22:35:21] Production.INFO: ==25455== Releasing lock... [2025-03-24 22:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 22:35:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-24 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 19:36:05 [end_date_ymd] => 2025-03-24 22:36:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 19:36:05' and `end` < '2025-03-24 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-03-24 22:36:17] Production.INFO: count ==1033 [2025-03-24 22:36:18] Production.ERROR: pbx CDR StartTime 2025-03-24 19:36:05 - End Time 2025-03-24 22:36:05 [2025-03-24 22:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755247', 'tblTempUsageDetail_20' ) start [2025-03-24 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755247', 'tblTempUsageDetail_20' ) end [2025-03-24 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755247', 'tblTempVendorCDR_20' ) start [2025-03-24 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755247', 'tblTempVendorCDR_20' ) end [2025-03-24 22:36:18] Production.INFO: ProcessCDR(1,14755247,1,1,2) [2025-03-24 22:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755247', 'tblTempUsageDetail_20' ) start [2025-03-24 22:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755247', 'tblTempUsageDetail_20' ) end [2025-03-24 22:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 22:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 22:36:23] Production.INFO: ==25541== Releasing lock... [2025-03-24 22:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 22:36:23] Production.INFO: 36 MB #Memory Used# [2025-03-24 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 19:37:05 [end_date_ymd] => 2025-03-24 22:37:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 19:37:05' and `end` < '2025-03-24 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-03-24 22:37:18] Production.INFO: count ==1032 [2025-03-24 22:37:18] Production.ERROR: pbx CDR StartTime 2025-03-24 19:37:05 - End Time 2025-03-24 22:37:05 [2025-03-24 22:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755252', 'tblTempUsageDetail_20' ) start [2025-03-24 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755252', 'tblTempUsageDetail_20' ) end [2025-03-24 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755252', 'tblTempVendorCDR_20' ) start [2025-03-24 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755252', 'tblTempVendorCDR_20' ) end [2025-03-24 22:37:18] Production.INFO: ProcessCDR(1,14755252,1,1,2) [2025-03-24 22:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755252', 'tblTempUsageDetail_20' ) start [2025-03-24 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755252', 'tblTempUsageDetail_20' ) end [2025-03-24 22:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 22:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 22:37:22] Production.INFO: ==25627== Releasing lock... [2025-03-24 22:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 22:37:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-24 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 19:38:05 [end_date_ymd] => 2025-03-24 22:38:05 [RateCDR] => 1 ) [2025-03-24 22:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 19:38:05' and `end` < '2025-03-24 22:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 22:38:18] Production.INFO: count ==1030 [2025-03-24 22:38:18] Production.ERROR: pbx CDR StartTime 2025-03-24 19:38:05 - End Time 2025-03-24 22:38:05 [2025-03-24 22:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755257', 'tblTempUsageDetail_20' ) start [2025-03-24 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755257', 'tblTempUsageDetail_20' ) end [2025-03-24 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755257', 'tblTempVendorCDR_20' ) start [2025-03-24 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755257', 'tblTempVendorCDR_20' ) end [2025-03-24 22:38:18] Production.INFO: ProcessCDR(1,14755257,1,1,2) [2025-03-24 22:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755257', 'tblTempUsageDetail_20' ) start [2025-03-24 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755257', 'tblTempUsageDetail_20' ) end [2025-03-24 22:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 22:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 22:38:21] Production.INFO: ==25715== Releasing lock... [2025-03-24 22:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 22:38:21] Production.INFO: 36 MB #Memory Used# [2025-03-24 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 19:39:05 [end_date_ymd] => 2025-03-24 22:39:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 19:39:05' and `end` < '2025-03-24 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-03-24 22:39:18] Production.INFO: count ==1036 [2025-03-24 22:39:18] Production.ERROR: pbx CDR StartTime 2025-03-24 19:39:05 - End Time 2025-03-24 22:39:05 [2025-03-24 22:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755262', 'tblTempUsageDetail_20' ) start [2025-03-24 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755262', 'tblTempUsageDetail_20' ) end [2025-03-24 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755262', 'tblTempVendorCDR_20' ) start [2025-03-24 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755262', 'tblTempVendorCDR_20' ) end [2025-03-24 22:39:18] Production.INFO: ProcessCDR(1,14755262,1,1,2) [2025-03-24 22:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755262', 'tblTempUsageDetail_20' ) start [2025-03-24 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755262', 'tblTempUsageDetail_20' ) end [2025-03-24 22:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 22:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 22:39:21] Production.INFO: ==25801== Releasing lock... [2025-03-24 22:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 22:39:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-24 22:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 19:40:05 [end_date_ymd] => 2025-03-24 22:40:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 19:40:05' and `end` < '2025-03-24 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-03-24 22:40:18] Production.INFO: count ==1034 [2025-03-24 22:40:18] Production.ERROR: pbx CDR StartTime 2025-03-24 19:40:05 - End Time 2025-03-24 22:40:05 [2025-03-24 22:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755267', 'tblTempUsageDetail_20' ) start [2025-03-24 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755267', 'tblTempUsageDetail_20' ) end [2025-03-24 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755267', 'tblTempVendorCDR_20' ) start [2025-03-24 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755267', 'tblTempVendorCDR_20' ) end [2025-03-24 22:40:18] Production.INFO: ProcessCDR(1,14755267,1,1,2) [2025-03-24 22:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755267', 'tblTempUsageDetail_20' ) start [2025-03-24 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755267', 'tblTempUsageDetail_20' ) end [2025-03-24 22:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 22:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 22:40:22] Production.INFO: ==25892== Releasing lock... [2025-03-24 22:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 22:40:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-24 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 19:41:05 [end_date_ymd] => 2025-03-24 22:41:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 19:41:05' and `end` < '2025-03-24 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-03-24 22:41:18] Production.INFO: count ==987 [2025-03-24 22:41:18] Production.ERROR: pbx CDR StartTime 2025-03-24 19:41:05 - End Time 2025-03-24 22:41:05 [2025-03-24 22:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755273', 'tblTempUsageDetail_20' ) start [2025-03-24 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755273', 'tblTempUsageDetail_20' ) end [2025-03-24 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755273', 'tblTempVendorCDR_20' ) start [2025-03-24 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755273', 'tblTempVendorCDR_20' ) end [2025-03-24 22:41:18] Production.INFO: ProcessCDR(1,14755273,1,1,2) [2025-03-24 22:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755273', 'tblTempUsageDetail_20' ) start [2025-03-24 22:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755273', 'tblTempUsageDetail_20' ) end [2025-03-24 22:41:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 22:41:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 22:41:23] Production.INFO: ==25987== Releasing lock... [2025-03-24 22:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 22:41:23] Production.INFO: 36 MB #Memory Used# [2025-03-24 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 19:42:05 [end_date_ymd] => 2025-03-24 22:42:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 19:42:05' and `end` < '2025-03-24 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-03-24 22:42:17] Production.INFO: count ==984 [2025-03-24 22:42:18] Production.ERROR: pbx CDR StartTime 2025-03-24 19:42:05 - End Time 2025-03-24 22:42:05 [2025-03-24 22:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755278', 'tblTempUsageDetail_20' ) start [2025-03-24 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755278', 'tblTempUsageDetail_20' ) end [2025-03-24 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755278', 'tblTempVendorCDR_20' ) start [2025-03-24 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755278', 'tblTempVendorCDR_20' ) end [2025-03-24 22:42:18] Production.INFO: ProcessCDR(1,14755278,1,1,2) [2025-03-24 22:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755278', 'tblTempUsageDetail_20' ) start [2025-03-24 22:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755278', 'tblTempUsageDetail_20' ) end [2025-03-24 22:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 22:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 22:42:23] Production.INFO: ==26076== Releasing lock... [2025-03-24 22:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 22:42:23] Production.INFO: 35.75 MB #Memory Used# [2025-03-24 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 19:43:05 [end_date_ymd] => 2025-03-24 22:43:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 19:43:05' and `end` < '2025-03-24 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-03-24 22:43:17] Production.INFO: count ==979 [2025-03-24 22:43:17] Production.ERROR: pbx CDR StartTime 2025-03-24 19:43:05 - End Time 2025-03-24 22:43:05 [2025-03-24 22:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755283', 'tblTempUsageDetail_20' ) start [2025-03-24 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755283', 'tblTempUsageDetail_20' ) end [2025-03-24 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755283', 'tblTempVendorCDR_20' ) start [2025-03-24 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755283', 'tblTempVendorCDR_20' ) end [2025-03-24 22:43:18] Production.INFO: ProcessCDR(1,14755283,1,1,2) [2025-03-24 22:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755283', 'tblTempUsageDetail_20' ) start [2025-03-24 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755283', 'tblTempUsageDetail_20' ) end [2025-03-24 22:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 22:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 22:43:21] Production.INFO: ==26207== Releasing lock... [2025-03-24 22:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 22:43:21] Production.INFO: 35.75 MB #Memory Used# [2025-03-24 22:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 19:44:06 [end_date_ymd] => 2025-03-24 22:44:06 [RateCDR] => 1 ) [2025-03-24 22: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-03-24 19:44:06' and `end` < '2025-03-24 22: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-03-24 22:44:18] Production.INFO: count ==978 [2025-03-24 22:44:19] Production.ERROR: pbx CDR StartTime 2025-03-24 19:44:06 - End Time 2025-03-24 22:44:06 [2025-03-24 22:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755288', 'tblTempUsageDetail_20' ) start [2025-03-24 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755288', 'tblTempUsageDetail_20' ) end [2025-03-24 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755288', 'tblTempVendorCDR_20' ) start [2025-03-24 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755288', 'tblTempVendorCDR_20' ) end [2025-03-24 22:44:19] Production.INFO: ProcessCDR(1,14755288,1,1,2) [2025-03-24 22:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755288', 'tblTempUsageDetail_20' ) start [2025-03-24 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755288', 'tblTempUsageDetail_20' ) end [2025-03-24 22:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 22:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 22:44:22] Production.INFO: ==26295== Releasing lock... [2025-03-24 22:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 22:44:22] Production.INFO: 36 MB #Memory Used# [2025-03-24 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 19:45:05 [end_date_ymd] => 2025-03-24 22:45:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 19:45:05' and `end` < '2025-03-24 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-03-24 22:45:18] Production.INFO: count ==973 [2025-03-24 22:45:18] Production.ERROR: pbx CDR StartTime 2025-03-24 19:45:05 - End Time 2025-03-24 22:45:05 [2025-03-24 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755293', 'tblTempUsageDetail_20' ) start [2025-03-24 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755293', 'tblTempUsageDetail_20' ) end [2025-03-24 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755293', 'tblTempVendorCDR_20' ) start [2025-03-24 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755293', 'tblTempVendorCDR_20' ) end [2025-03-24 22:45:18] Production.INFO: ProcessCDR(1,14755293,1,1,2) [2025-03-24 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755293', 'tblTempUsageDetail_20' ) start [2025-03-24 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755293', 'tblTempUsageDetail_20' ) end [2025-03-24 22:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 22:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 22:45:21] Production.INFO: ==26397== Releasing lock... [2025-03-24 22:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 22:45:21] Production.INFO: 35.75 MB #Memory Used# [2025-03-24 22:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 19:46:06 [end_date_ymd] => 2025-03-24 22:46:06 [RateCDR] => 1 ) [2025-03-24 22: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-03-24 19:46:06' and `end` < '2025-03-24 22: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-03-24 22:46:19] Production.INFO: count ==975 [2025-03-24 22:46:19] Production.ERROR: pbx CDR StartTime 2025-03-24 19:46:06 - End Time 2025-03-24 22:46:06 [2025-03-24 22:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755298', 'tblTempUsageDetail_20' ) start [2025-03-24 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755298', 'tblTempUsageDetail_20' ) end [2025-03-24 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755298', 'tblTempVendorCDR_20' ) start [2025-03-24 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755298', 'tblTempVendorCDR_20' ) end [2025-03-24 22:46:19] Production.INFO: ProcessCDR(1,14755298,1,1,2) [2025-03-24 22:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755298', 'tblTempUsageDetail_20' ) start [2025-03-24 22:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755298', 'tblTempUsageDetail_20' ) end [2025-03-24 22:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 22:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 22:46:23] Production.INFO: ==26486== Releasing lock... [2025-03-24 22:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 22:46:23] Production.INFO: 35.75 MB #Memory Used# [2025-03-24 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 19:47:05 [end_date_ymd] => 2025-03-24 22:47:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 19:47:05' and `end` < '2025-03-24 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-03-24 22:47:18] Production.INFO: count ==975 [2025-03-24 22:47:18] Production.ERROR: pbx CDR StartTime 2025-03-24 19:47:05 - End Time 2025-03-24 22:47:05 [2025-03-24 22:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755303', 'tblTempUsageDetail_20' ) start [2025-03-24 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755303', 'tblTempUsageDetail_20' ) end [2025-03-24 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755303', 'tblTempVendorCDR_20' ) start [2025-03-24 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755303', 'tblTempVendorCDR_20' ) end [2025-03-24 22:47:18] Production.INFO: ProcessCDR(1,14755303,1,1,2) [2025-03-24 22:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755303', 'tblTempUsageDetail_20' ) start [2025-03-24 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755303', 'tblTempUsageDetail_20' ) end [2025-03-24 22:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 22:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 22:47:22] Production.INFO: ==26572== Releasing lock... [2025-03-24 22:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 22:47:22] Production.INFO: 35.75 MB #Memory Used# [2025-03-24 22:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 19:48:06 [end_date_ymd] => 2025-03-24 22:48:06 [RateCDR] => 1 ) [2025-03-24 22: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-03-24 19:48:06' and `end` < '2025-03-24 22: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-03-24 22:48:18] Production.INFO: count ==974 [2025-03-24 22:48:19] Production.ERROR: pbx CDR StartTime 2025-03-24 19:48:06 - End Time 2025-03-24 22:48:06 [2025-03-24 22:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755308', 'tblTempUsageDetail_20' ) start [2025-03-24 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755308', 'tblTempUsageDetail_20' ) end [2025-03-24 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755308', 'tblTempVendorCDR_20' ) start [2025-03-24 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755308', 'tblTempVendorCDR_20' ) end [2025-03-24 22:48:19] Production.INFO: ProcessCDR(1,14755308,1,1,2) [2025-03-24 22:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755308', 'tblTempUsageDetail_20' ) start [2025-03-24 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755308', 'tblTempUsageDetail_20' ) end [2025-03-24 22:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 22:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 22:48:22] Production.INFO: ==26662== Releasing lock... [2025-03-24 22:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 22:48:22] Production.INFO: 35.75 MB #Memory Used# [2025-03-24 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 19:49:05 [end_date_ymd] => 2025-03-24 22:49:05 [RateCDR] => 1 ) [2025-03-24 22:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 19:49:05' and `end` < '2025-03-24 22:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 22:49:18] Production.INFO: count ==973 [2025-03-24 22:49:18] Production.ERROR: pbx CDR StartTime 2025-03-24 19:49:05 - End Time 2025-03-24 22:49:05 [2025-03-24 22:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755313', 'tblTempUsageDetail_20' ) start [2025-03-24 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755313', 'tblTempUsageDetail_20' ) end [2025-03-24 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755313', 'tblTempVendorCDR_20' ) start [2025-03-24 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755313', 'tblTempVendorCDR_20' ) end [2025-03-24 22:49:18] Production.INFO: ProcessCDR(1,14755313,1,1,2) [2025-03-24 22:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755313', 'tblTempUsageDetail_20' ) start [2025-03-24 22:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755313', 'tblTempUsageDetail_20' ) end [2025-03-24 22:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 22:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 22:49:22] Production.INFO: ==26754== Releasing lock... [2025-03-24 22:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 22:49:22] Production.INFO: 35.75 MB #Memory Used# [2025-03-24 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 19:50:06 [end_date_ymd] => 2025-03-24 22:50:06 [RateCDR] => 1 ) [2025-03-24 22:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 19:50:06' and `end` < '2025-03-24 22:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 22:50:19] Production.INFO: count ==973 [2025-03-24 22:50:19] Production.ERROR: pbx CDR StartTime 2025-03-24 19:50:06 - End Time 2025-03-24 22:50:06 [2025-03-24 22:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755318', 'tblTempUsageDetail_20' ) start [2025-03-24 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755318', 'tblTempUsageDetail_20' ) end [2025-03-24 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755318', 'tblTempVendorCDR_20' ) start [2025-03-24 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755318', 'tblTempVendorCDR_20' ) end [2025-03-24 22:50:19] Production.INFO: ProcessCDR(1,14755318,1,1,2) [2025-03-24 22:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755318', 'tblTempUsageDetail_20' ) start [2025-03-24 22:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755318', 'tblTempUsageDetail_20' ) end [2025-03-24 22:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 22:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 22:50:24] Production.INFO: ==26851== Releasing lock... [2025-03-24 22:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 22:50:24] Production.INFO: 35.75 MB #Memory Used# [2025-03-24 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 19:51:05 [end_date_ymd] => 2025-03-24 22:51:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 19:51:05' and `end` < '2025-03-24 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-03-24 22:51:18] Production.INFO: count ==946 [2025-03-24 22:51:18] Production.ERROR: pbx CDR StartTime 2025-03-24 19:51:05 - End Time 2025-03-24 22:51:05 [2025-03-24 22:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755324', 'tblTempUsageDetail_20' ) start [2025-03-24 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755324', 'tblTempUsageDetail_20' ) end [2025-03-24 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755324', 'tblTempVendorCDR_20' ) start [2025-03-24 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755324', 'tblTempVendorCDR_20' ) end [2025-03-24 22:51:18] Production.INFO: ProcessCDR(1,14755324,1,1,2) [2025-03-24 22:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755324', 'tblTempUsageDetail_20' ) start [2025-03-24 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755324', 'tblTempUsageDetail_20' ) end [2025-03-24 22:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 22:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 22:51:22] Production.INFO: ==26942== Releasing lock... [2025-03-24 22:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 22:51:22] Production.INFO: 35.5 MB #Memory Used# [2025-03-24 22:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 19:52:06 [end_date_ymd] => 2025-03-24 22:52:06 [RateCDR] => 1 ) [2025-03-24 22: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-03-24 19:52:06' and `end` < '2025-03-24 22: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-03-24 22:52:18] Production.INFO: count ==938 [2025-03-24 22:52:18] Production.ERROR: pbx CDR StartTime 2025-03-24 19:52:06 - End Time 2025-03-24 22:52:06 [2025-03-24 22:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755329', 'tblTempUsageDetail_20' ) start [2025-03-24 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755329', 'tblTempUsageDetail_20' ) end [2025-03-24 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755329', 'tblTempVendorCDR_20' ) start [2025-03-24 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755329', 'tblTempVendorCDR_20' ) end [2025-03-24 22:52:18] Production.INFO: ProcessCDR(1,14755329,1,1,2) [2025-03-24 22:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755329', 'tblTempUsageDetail_20' ) start [2025-03-24 22:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755329', 'tblTempUsageDetail_20' ) end [2025-03-24 22:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 22:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 22:52:23] Production.INFO: ==27032== Releasing lock... [2025-03-24 22:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 22:52:23] Production.INFO: 35.5 MB #Memory Used# [2025-03-24 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 19:53:05 [end_date_ymd] => 2025-03-24 22:53:05 [RateCDR] => 1 ) [2025-03-24 22:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 19:53:05' and `end` < '2025-03-24 22:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 22:53:17] Production.INFO: count ==922 [2025-03-24 22:53:18] Production.ERROR: pbx CDR StartTime 2025-03-24 19:53:05 - End Time 2025-03-24 22:53:05 [2025-03-24 22:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755334', 'tblTempUsageDetail_20' ) start [2025-03-24 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755334', 'tblTempUsageDetail_20' ) end [2025-03-24 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755334', 'tblTempVendorCDR_20' ) start [2025-03-24 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755334', 'tblTempVendorCDR_20' ) end [2025-03-24 22:53:18] Production.INFO: ProcessCDR(1,14755334,1,1,2) [2025-03-24 22:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755334', 'tblTempUsageDetail_20' ) start [2025-03-24 22:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755334', 'tblTempUsageDetail_20' ) end [2025-03-24 22:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 22:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 22:53:21] Production.INFO: ==27133== Releasing lock... [2025-03-24 22:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 22:53:21] Production.INFO: 35 MB #Memory Used# [2025-03-24 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 19:54:05 [end_date_ymd] => 2025-03-24 22:54:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 19:54:05' and `end` < '2025-03-24 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-03-24 22:54:18] Production.INFO: count ==913 [2025-03-24 22:54:18] Production.ERROR: pbx CDR StartTime 2025-03-24 19:54:05 - End Time 2025-03-24 22:54:05 [2025-03-24 22:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755339', 'tblTempUsageDetail_20' ) start [2025-03-24 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755339', 'tblTempUsageDetail_20' ) end [2025-03-24 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755339', 'tblTempVendorCDR_20' ) start [2025-03-24 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755339', 'tblTempVendorCDR_20' ) end [2025-03-24 22:54:18] Production.INFO: ProcessCDR(1,14755339,1,1,2) [2025-03-24 22:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755339', 'tblTempUsageDetail_20' ) start [2025-03-24 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755339', 'tblTempUsageDetail_20' ) end [2025-03-24 22:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 22:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 22:54:21] Production.INFO: ==27223== Releasing lock... [2025-03-24 22:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 22:54:21] Production.INFO: 35 MB #Memory Used# [2025-03-24 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 19:55:05 [end_date_ymd] => 2025-03-24 22:55:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 19:55:05' and `end` < '2025-03-24 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-03-24 22:55:18] Production.INFO: count ==910 [2025-03-24 22:55:18] Production.ERROR: pbx CDR StartTime 2025-03-24 19:55:05 - End Time 2025-03-24 22:55:05 [2025-03-24 22:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755340', 'tblTempUsageDetail_20' ) start [2025-03-24 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755340', 'tblTempUsageDetail_20' ) end [2025-03-24 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755340', 'tblTempVendorCDR_20' ) start [2025-03-24 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755340', 'tblTempVendorCDR_20' ) end [2025-03-24 22:55:18] Production.INFO: ProcessCDR(1,14755340,1,1,2) [2025-03-24 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755340', 'tblTempUsageDetail_20' ) start [2025-03-24 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755340', 'tblTempUsageDetail_20' ) end [2025-03-24 22:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 22:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 22:55:22] Production.INFO: ==27313== Releasing lock... [2025-03-24 22:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 22:55:22] Production.INFO: 35.5 MB #Memory Used# [2025-03-24 22:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 19:56:06 [end_date_ymd] => 2025-03-24 22:56:06 [RateCDR] => 1 ) [2025-03-24 22: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-03-24 19:56:06' and `end` < '2025-03-24 22: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-03-24 22:56:18] Production.INFO: count ==908 [2025-03-24 22:56:18] Production.ERROR: pbx CDR StartTime 2025-03-24 19:56:06 - End Time 2025-03-24 22:56:06 [2025-03-24 22:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755349', 'tblTempUsageDetail_20' ) start [2025-03-24 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755349', 'tblTempUsageDetail_20' ) end [2025-03-24 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755349', 'tblTempVendorCDR_20' ) start [2025-03-24 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755349', 'tblTempVendorCDR_20' ) end [2025-03-24 22:56:18] Production.INFO: ProcessCDR(1,14755349,1,1,2) [2025-03-24 22:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755349', 'tblTempUsageDetail_20' ) start [2025-03-24 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755349', 'tblTempUsageDetail_20' ) end [2025-03-24 22:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 22:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 22:56:22] Production.INFO: ==27402== Releasing lock... [2025-03-24 22:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 22:56:22] Production.INFO: 35.5 MB #Memory Used# [2025-03-24 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 19:57:05 [end_date_ymd] => 2025-03-24 22:57:05 [RateCDR] => 1 ) [2025-03-24 22:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 19:57:05' and `end` < '2025-03-24 22:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 22:57:17] Production.INFO: count ==905 [2025-03-24 22:57:18] Production.ERROR: pbx CDR StartTime 2025-03-24 19:57:05 - End Time 2025-03-24 22:57:05 [2025-03-24 22:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755354', 'tblTempUsageDetail_20' ) start [2025-03-24 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755354', 'tblTempUsageDetail_20' ) end [2025-03-24 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755354', 'tblTempVendorCDR_20' ) start [2025-03-24 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755354', 'tblTempVendorCDR_20' ) end [2025-03-24 22:57:18] Production.INFO: ProcessCDR(1,14755354,1,1,2) [2025-03-24 22:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755354', 'tblTempUsageDetail_20' ) start [2025-03-24 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755354', 'tblTempUsageDetail_20' ) end [2025-03-24 22:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 22:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 22:57:21] Production.INFO: ==27493== Releasing lock... [2025-03-24 22:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 22:57:21] Production.INFO: 35.5 MB #Memory Used# [2025-03-24 22:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 19:58:06 [end_date_ymd] => 2025-03-24 22:58:06 [RateCDR] => 1 ) [2025-03-24 22:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 19:58:06' and `end` < '2025-03-24 22:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 22:58:18] Production.INFO: count ==908 [2025-03-24 22:58:18] Production.ERROR: pbx CDR StartTime 2025-03-24 19:58:06 - End Time 2025-03-24 22:58:06 [2025-03-24 22:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755359', 'tblTempUsageDetail_20' ) start [2025-03-24 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755359', 'tblTempUsageDetail_20' ) end [2025-03-24 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755359', 'tblTempVendorCDR_20' ) start [2025-03-24 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755359', 'tblTempVendorCDR_20' ) end [2025-03-24 22:58:18] Production.INFO: ProcessCDR(1,14755359,1,1,2) [2025-03-24 22:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755359', 'tblTempUsageDetail_20' ) start [2025-03-24 22:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755359', 'tblTempUsageDetail_20' ) end [2025-03-24 22:58:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 22:58:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 22:58:24] Production.INFO: ==27585== Releasing lock... [2025-03-24 22:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 22:58:24] Production.INFO: 35 MB #Memory Used# [2025-03-24 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 19:59:05 [end_date_ymd] => 2025-03-24 22:59:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 19:59:05' and `end` < '2025-03-24 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-03-24 22:59:18] Production.INFO: count ==905 [2025-03-24 22:59:18] Production.ERROR: pbx CDR StartTime 2025-03-24 19:59:05 - End Time 2025-03-24 22:59:05 [2025-03-24 22:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755364', 'tblTempUsageDetail_20' ) start [2025-03-24 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755364', 'tblTempUsageDetail_20' ) end [2025-03-24 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755364', 'tblTempVendorCDR_20' ) start [2025-03-24 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755364', 'tblTempVendorCDR_20' ) end [2025-03-24 22:59:18] Production.INFO: ProcessCDR(1,14755364,1,1,2) [2025-03-24 22:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 22:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755364', 'tblTempUsageDetail_20' ) start [2025-03-24 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755364', 'tblTempUsageDetail_20' ) end [2025-03-24 22:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 22:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 22:59:21] Production.INFO: ==27715== Releasing lock... [2025-03-24 22:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 22:59:21] Production.INFO: 35.25 MB #Memory Used# [2025-03-24 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 20:00:06 [end_date_ymd] => 2025-03-24 23:00:06 [RateCDR] => 1 ) [2025-03-24 23:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 20:00:06' and `end` < '2025-03-24 23:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 23:00:19] Production.INFO: count ==906 [2025-03-24 23:00:19] Production.ERROR: pbx CDR StartTime 2025-03-24 20:00:06 - End Time 2025-03-24 23:00:06 [2025-03-24 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755370', 'tblTempUsageDetail_20' ) start [2025-03-24 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755370', 'tblTempUsageDetail_20' ) end [2025-03-24 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755370', 'tblTempVendorCDR_20' ) start [2025-03-24 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755370', 'tblTempVendorCDR_20' ) end [2025-03-24 23:00:19] Production.INFO: ProcessCDR(1,14755370,1,1,2) [2025-03-24 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755370', 'tblTempUsageDetail_20' ) start [2025-03-24 23:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755370', 'tblTempUsageDetail_20' ) end [2025-03-24 23:00:25] Production.ERROR: pbx prc_insertCDR start [2025-03-24 23:00:25] Production.ERROR: pbx prc_insertCDR end [2025-03-24 23:00:25] Production.INFO: ==27809== Releasing lock... [2025-03-24 23:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 23:00:25] Production.INFO: 35.5 MB #Memory Used# [2025-03-24 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 20:01:05 [end_date_ymd] => 2025-03-24 23:01:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 20:01:05' and `end` < '2025-03-24 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-03-24 23:01:18] Production.INFO: count ==906 [2025-03-24 23:01:18] Production.ERROR: pbx CDR StartTime 2025-03-24 20:01:05 - End Time 2025-03-24 23:01:05 [2025-03-24 23:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755375', 'tblTempUsageDetail_20' ) start [2025-03-24 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755375', 'tblTempUsageDetail_20' ) end [2025-03-24 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755375', 'tblTempVendorCDR_20' ) start [2025-03-24 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755375', 'tblTempVendorCDR_20' ) end [2025-03-24 23:01:18] Production.INFO: ProcessCDR(1,14755375,1,1,2) [2025-03-24 23:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755375', 'tblTempUsageDetail_20' ) start [2025-03-24 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755375', 'tblTempUsageDetail_20' ) end [2025-03-24 23:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 23:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 23:01:21] Production.INFO: ==27997== Releasing lock... [2025-03-24 23:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 23:01:21] Production.INFO: 35.25 MB #Memory Used# [2025-03-24 23:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 20:02:06 [end_date_ymd] => 2025-03-24 23:02:06 [RateCDR] => 1 ) [2025-03-24 23: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-03-24 20:02:06' and `end` < '2025-03-24 23: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-03-24 23:02:18] Production.INFO: count ==905 [2025-03-24 23:02:19] Production.ERROR: pbx CDR StartTime 2025-03-24 20:02:06 - End Time 2025-03-24 23:02:06 [2025-03-24 23:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755380', 'tblTempUsageDetail_20' ) start [2025-03-24 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755380', 'tblTempUsageDetail_20' ) end [2025-03-24 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755380', 'tblTempVendorCDR_20' ) start [2025-03-24 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755380', 'tblTempVendorCDR_20' ) end [2025-03-24 23:02:19] Production.INFO: ProcessCDR(1,14755380,1,1,2) [2025-03-24 23:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755380', 'tblTempUsageDetail_20' ) start [2025-03-24 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755380', 'tblTempUsageDetail_20' ) end [2025-03-24 23:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 23:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 23:02:22] Production.INFO: ==28084== Releasing lock... [2025-03-24 23:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 23:02:22] Production.INFO: 35.25 MB #Memory Used# [2025-03-24 23:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 20:03:06 [end_date_ymd] => 2025-03-24 23:03:06 [RateCDR] => 1 ) [2025-03-24 23:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 20:03:06' and `end` < '2025-03-24 23:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 23:03:19] Production.INFO: count ==906 [2025-03-24 23:03:19] Production.ERROR: pbx CDR StartTime 2025-03-24 20:03:06 - End Time 2025-03-24 23:03:06 [2025-03-24 23:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755385', 'tblTempUsageDetail_20' ) start [2025-03-24 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755385', 'tblTempUsageDetail_20' ) end [2025-03-24 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755385', 'tblTempVendorCDR_20' ) start [2025-03-24 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755385', 'tblTempVendorCDR_20' ) end [2025-03-24 23:03:19] Production.INFO: ProcessCDR(1,14755385,1,1,2) [2025-03-24 23:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755385', 'tblTempUsageDetail_20' ) start [2025-03-24 23:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755385', 'tblTempUsageDetail_20' ) end [2025-03-24 23:03:24] Production.ERROR: pbx prc_insertCDR start [2025-03-24 23:03:24] Production.ERROR: pbx prc_insertCDR end [2025-03-24 23:03:24] Production.INFO: ==28176== Releasing lock... [2025-03-24 23:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 23:03:24] Production.INFO: 35.25 MB #Memory Used# [2025-03-24 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 20:04:05 [end_date_ymd] => 2025-03-24 23:04:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 20:04:05' and `end` < '2025-03-24 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-03-24 23:04:18] Production.INFO: count ==903 [2025-03-24 23:04:18] Production.ERROR: pbx CDR StartTime 2025-03-24 20:04:05 - End Time 2025-03-24 23:04:05 [2025-03-24 23:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755390', 'tblTempUsageDetail_20' ) start [2025-03-24 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755390', 'tblTempUsageDetail_20' ) end [2025-03-24 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755390', 'tblTempVendorCDR_20' ) start [2025-03-24 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755390', 'tblTempVendorCDR_20' ) end [2025-03-24 23:04:18] Production.INFO: ProcessCDR(1,14755390,1,1,2) [2025-03-24 23:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755390', 'tblTempUsageDetail_20' ) start [2025-03-24 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755390', 'tblTempUsageDetail_20' ) end [2025-03-24 23:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 23:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 23:04:22] Production.INFO: ==28263== Releasing lock... [2025-03-24 23:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 23:04:22] Production.INFO: 35.25 MB #Memory Used# [2025-03-24 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 20:05:05 [end_date_ymd] => 2025-03-24 23:05:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 20:05:05' and `end` < '2025-03-24 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-03-24 23:05:17] Production.INFO: count ==901 [2025-03-24 23:05:18] Production.ERROR: pbx CDR StartTime 2025-03-24 20:05:05 - End Time 2025-03-24 23:05:05 [2025-03-24 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755395', 'tblTempUsageDetail_20' ) start [2025-03-24 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755395', 'tblTempUsageDetail_20' ) end [2025-03-24 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755395', 'tblTempVendorCDR_20' ) start [2025-03-24 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755395', 'tblTempVendorCDR_20' ) end [2025-03-24 23:05:18] Production.INFO: ProcessCDR(1,14755395,1,1,2) [2025-03-24 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755395', 'tblTempUsageDetail_20' ) start [2025-03-24 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755395', 'tblTempUsageDetail_20' ) end [2025-03-24 23:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 23:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 23:05:21] Production.INFO: ==28432== Releasing lock... [2025-03-24 23:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 23:05:21] Production.INFO: 35.25 MB #Memory Used# [2025-03-24 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 20:06:05 [end_date_ymd] => 2025-03-24 23:06:05 [RateCDR] => 1 ) [2025-03-24 23:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 20:06:05' and `end` < '2025-03-24 23:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 23:06:18] Production.INFO: count ==902 [2025-03-24 23:06:18] Production.ERROR: pbx CDR StartTime 2025-03-24 20:06:05 - End Time 2025-03-24 23:06:05 [2025-03-24 23:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755400', 'tblTempUsageDetail_20' ) start [2025-03-24 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755400', 'tblTempUsageDetail_20' ) end [2025-03-24 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755400', 'tblTempVendorCDR_20' ) start [2025-03-24 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755400', 'tblTempVendorCDR_20' ) end [2025-03-24 23:06:18] Production.INFO: ProcessCDR(1,14755400,1,1,2) [2025-03-24 23:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755400', 'tblTempUsageDetail_20' ) start [2025-03-24 23:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755400', 'tblTempUsageDetail_20' ) end [2025-03-24 23:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 23:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 23:06:23] Production.INFO: ==28532== Releasing lock... [2025-03-24 23:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 23:06:23] Production.INFO: 35.25 MB #Memory Used# [2025-03-24 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 20:07:05 [end_date_ymd] => 2025-03-24 23:07:05 [RateCDR] => 1 ) [2025-03-24 23:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 20:07:05' and `end` < '2025-03-24 23:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 23:07:17] Production.INFO: count ==901 [2025-03-24 23:07:17] Production.ERROR: pbx CDR StartTime 2025-03-24 20:07:05 - End Time 2025-03-24 23:07:05 [2025-03-24 23:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755405', 'tblTempUsageDetail_20' ) start [2025-03-24 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755405', 'tblTempUsageDetail_20' ) end [2025-03-24 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755405', 'tblTempVendorCDR_20' ) start [2025-03-24 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755405', 'tblTempVendorCDR_20' ) end [2025-03-24 23:07:17] Production.INFO: ProcessCDR(1,14755405,1,1,2) [2025-03-24 23:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755405', 'tblTempUsageDetail_20' ) start [2025-03-24 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755405', 'tblTempUsageDetail_20' ) end [2025-03-24 23:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 23:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 23:07:21] Production.INFO: ==28625== Releasing lock... [2025-03-24 23:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 23:07:21] Production.INFO: 35 MB #Memory Used# [2025-03-24 23:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 20:08:06 [end_date_ymd] => 2025-03-24 23:08:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 20:08:06' and `end` < '2025-03-24 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-03-24 23:08:18] Production.INFO: count ==902 [2025-03-24 23:08:19] Production.ERROR: pbx CDR StartTime 2025-03-24 20:08:06 - End Time 2025-03-24 23:08:06 [2025-03-24 23:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755410', 'tblTempUsageDetail_20' ) start [2025-03-24 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755410', 'tblTempUsageDetail_20' ) end [2025-03-24 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755410', 'tblTempVendorCDR_20' ) start [2025-03-24 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755410', 'tblTempVendorCDR_20' ) end [2025-03-24 23:08:19] Production.INFO: ProcessCDR(1,14755410,1,1,2) [2025-03-24 23:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755410', 'tblTempUsageDetail_20' ) start [2025-03-24 23:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755410', 'tblTempUsageDetail_20' ) end [2025-03-24 23:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 23:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 23:08:23] Production.INFO: ==28793== Releasing lock... [2025-03-24 23:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 23:08:23] Production.INFO: 35.5 MB #Memory Used# [2025-03-24 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 20:09:05 [end_date_ymd] => 2025-03-24 23:09:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 20:09:05' and `end` < '2025-03-24 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-03-24 23:09:17] Production.INFO: count ==896 [2025-03-24 23:09:18] Production.ERROR: pbx CDR StartTime 2025-03-24 20:09:05 - End Time 2025-03-24 23:09:05 [2025-03-24 23:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755415', 'tblTempUsageDetail_20' ) start [2025-03-24 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755415', 'tblTempUsageDetail_20' ) end [2025-03-24 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755415', 'tblTempVendorCDR_20' ) start [2025-03-24 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755415', 'tblTempVendorCDR_20' ) end [2025-03-24 23:09:18] Production.INFO: ProcessCDR(1,14755415,1,1,2) [2025-03-24 23:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755415', 'tblTempUsageDetail_20' ) start [2025-03-24 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755415', 'tblTempUsageDetail_20' ) end [2025-03-24 23:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 23:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 23:09:21] Production.INFO: ==28885== Releasing lock... [2025-03-24 23:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 23:09:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-24 23:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 20:10:06 [end_date_ymd] => 2025-03-24 23:10:06 [RateCDR] => 1 ) [2025-03-24 23: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-03-24 20:10:06' and `end` < '2025-03-24 23: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-03-24 23:10:18] Production.INFO: count ==894 [2025-03-24 23:10:19] Production.ERROR: pbx CDR StartTime 2025-03-24 20:10:06 - End Time 2025-03-24 23:10:06 [2025-03-24 23:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755420', 'tblTempUsageDetail_20' ) start [2025-03-24 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755420', 'tblTempUsageDetail_20' ) end [2025-03-24 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755420', 'tblTempVendorCDR_20' ) start [2025-03-24 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755420', 'tblTempVendorCDR_20' ) end [2025-03-24 23:10:19] Production.INFO: ProcessCDR(1,14755420,1,1,2) [2025-03-24 23:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755420', 'tblTempUsageDetail_20' ) start [2025-03-24 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755420', 'tblTempUsageDetail_20' ) end [2025-03-24 23:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 23:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 23:10:22] Production.INFO: ==28981== Releasing lock... [2025-03-24 23:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 23:10:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-24 23:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 20:11:06 [end_date_ymd] => 2025-03-24 23:11:06 [RateCDR] => 1 ) [2025-03-24 23: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-03-24 20:11:06' and `end` < '2025-03-24 23: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-03-24 23:11:18] Production.INFO: count ==861 [2025-03-24 23:11:19] Production.ERROR: pbx CDR StartTime 2025-03-24 20:11:06 - End Time 2025-03-24 23:11:06 [2025-03-24 23:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755426', 'tblTempUsageDetail_20' ) start [2025-03-24 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755426', 'tblTempUsageDetail_20' ) end [2025-03-24 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755426', 'tblTempVendorCDR_20' ) start [2025-03-24 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755426', 'tblTempVendorCDR_20' ) end [2025-03-24 23:11:19] Production.INFO: ProcessCDR(1,14755426,1,1,2) [2025-03-24 23:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755426', 'tblTempUsageDetail_20' ) start [2025-03-24 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755426', 'tblTempUsageDetail_20' ) end [2025-03-24 23:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 23:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 23:11:22] Production.INFO: ==29081== Releasing lock... [2025-03-24 23:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 23:11:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-24 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 20:12:05 [end_date_ymd] => 2025-03-24 23:12:05 [RateCDR] => 1 ) [2025-03-24 23:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 20:12:05' and `end` < '2025-03-24 23:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 23:12:18] Production.INFO: count ==847 [2025-03-24 23:12:18] Production.ERROR: pbx CDR StartTime 2025-03-24 20:12:05 - End Time 2025-03-24 23:12:05 [2025-03-24 23:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755431', 'tblTempUsageDetail_20' ) start [2025-03-24 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755431', 'tblTempUsageDetail_20' ) end [2025-03-24 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755431', 'tblTempVendorCDR_20' ) start [2025-03-24 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755431', 'tblTempVendorCDR_20' ) end [2025-03-24 23:12:18] Production.INFO: ProcessCDR(1,14755431,1,1,2) [2025-03-24 23:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755431', 'tblTempUsageDetail_20' ) start [2025-03-24 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755431', 'tblTempUsageDetail_20' ) end [2025-03-24 23:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 23:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 23:12:21] Production.INFO: ==29260== Releasing lock... [2025-03-24 23:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 23:12:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-24 23:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 20:13:06 [end_date_ymd] => 2025-03-24 23:13:06 [RateCDR] => 1 ) [2025-03-24 23: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-03-24 20:13:06' and `end` < '2025-03-24 23: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-03-24 23:13:18] Production.INFO: count ==839 [2025-03-24 23:13:19] Production.ERROR: pbx CDR StartTime 2025-03-24 20:13:06 - End Time 2025-03-24 23:13:06 [2025-03-24 23:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755436', 'tblTempUsageDetail_20' ) start [2025-03-24 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755436', 'tblTempUsageDetail_20' ) end [2025-03-24 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755436', 'tblTempVendorCDR_20' ) start [2025-03-24 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755436', 'tblTempVendorCDR_20' ) end [2025-03-24 23:13:19] Production.INFO: ProcessCDR(1,14755436,1,1,2) [2025-03-24 23:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755436', 'tblTempUsageDetail_20' ) start [2025-03-24 23:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755436', 'tblTempUsageDetail_20' ) end [2025-03-24 23:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 23:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 23:13:22] Production.INFO: ==29356== Releasing lock... [2025-03-24 23:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 23:13:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-24 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 20:14:05 [end_date_ymd] => 2025-03-24 23:14:05 [RateCDR] => 1 ) [2025-03-24 23:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 20:14:05' and `end` < '2025-03-24 23:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 23:14:18] Production.INFO: count ==837 [2025-03-24 23:14:18] Production.ERROR: pbx CDR StartTime 2025-03-24 20:14:05 - End Time 2025-03-24 23:14:05 [2025-03-24 23:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755441', 'tblTempUsageDetail_20' ) start [2025-03-24 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755441', 'tblTempUsageDetail_20' ) end [2025-03-24 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755441', 'tblTempVendorCDR_20' ) start [2025-03-24 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755441', 'tblTempVendorCDR_20' ) end [2025-03-24 23:14:18] Production.INFO: ProcessCDR(1,14755441,1,1,2) [2025-03-24 23:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755441', 'tblTempUsageDetail_20' ) start [2025-03-24 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755441', 'tblTempUsageDetail_20' ) end [2025-03-24 23:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 23:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 23:14:21] Production.INFO: ==29486== Releasing lock... [2025-03-24 23:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 23:14:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-24 23:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 20:15:06 [end_date_ymd] => 2025-03-24 23:15:06 [RateCDR] => 1 ) [2025-03-24 23: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-03-24 20:15:06' and `end` < '2025-03-24 23: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-03-24 23:15:18] Production.INFO: count ==837 [2025-03-24 23:15:18] Production.ERROR: pbx CDR StartTime 2025-03-24 20:15:06 - End Time 2025-03-24 23:15:06 [2025-03-24 23:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755446', 'tblTempUsageDetail_20' ) start [2025-03-24 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755446', 'tblTempUsageDetail_20' ) end [2025-03-24 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755446', 'tblTempVendorCDR_20' ) start [2025-03-24 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755446', 'tblTempVendorCDR_20' ) end [2025-03-24 23:15:18] Production.INFO: ProcessCDR(1,14755446,1,1,2) [2025-03-24 23:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755446', 'tblTempUsageDetail_20' ) start [2025-03-24 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755446', 'tblTempUsageDetail_20' ) end [2025-03-24 23:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 23:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 23:15:22] Production.INFO: ==29662== Releasing lock... [2025-03-24 23:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 23:15:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-24 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 20:16:05 [end_date_ymd] => 2025-03-24 23:16:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 20:16:05' and `end` < '2025-03-24 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-03-24 23:16:18] Production.INFO: count ==835 [2025-03-24 23:16:18] Production.ERROR: pbx CDR StartTime 2025-03-24 20:16:05 - End Time 2025-03-24 23:16:05 [2025-03-24 23:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755451', 'tblTempUsageDetail_20' ) start [2025-03-24 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755451', 'tblTempUsageDetail_20' ) end [2025-03-24 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755451', 'tblTempVendorCDR_20' ) start [2025-03-24 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755451', 'tblTempVendorCDR_20' ) end [2025-03-24 23:16:18] Production.INFO: ProcessCDR(1,14755451,1,1,2) [2025-03-24 23:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755451', 'tblTempUsageDetail_20' ) start [2025-03-24 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755451', 'tblTempUsageDetail_20' ) end [2025-03-24 23:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 23:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 23:16:21] Production.INFO: ==29752== Releasing lock... [2025-03-24 23:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 23:16:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-24 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 20:17:05 [end_date_ymd] => 2025-03-24 23:17:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 20:17:05' and `end` < '2025-03-24 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-03-24 23:17:18] Production.INFO: count ==834 [2025-03-24 23:17:18] Production.ERROR: pbx CDR StartTime 2025-03-24 20:17:05 - End Time 2025-03-24 23:17:05 [2025-03-24 23:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755456', 'tblTempUsageDetail_20' ) start [2025-03-24 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755456', 'tblTempUsageDetail_20' ) end [2025-03-24 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755456', 'tblTempVendorCDR_20' ) start [2025-03-24 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755456', 'tblTempVendorCDR_20' ) end [2025-03-24 23:17:18] Production.INFO: ProcessCDR(1,14755456,1,1,2) [2025-03-24 23:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755456', 'tblTempUsageDetail_20' ) start [2025-03-24 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755456', 'tblTempUsageDetail_20' ) end [2025-03-24 23:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 23:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 23:17:22] Production.INFO: ==29848== Releasing lock... [2025-03-24 23:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 23:17:22] Production.INFO: 35 MB #Memory Used# [2025-03-24 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 20:18:05 [end_date_ymd] => 2025-03-24 23:18:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 20:18:05' and `end` < '2025-03-24 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-03-24 23:18:18] Production.INFO: count ==841 [2025-03-24 23:18:18] Production.ERROR: pbx CDR StartTime 2025-03-24 20:18:05 - End Time 2025-03-24 23:18:05 [2025-03-24 23:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755461', 'tblTempUsageDetail_20' ) start [2025-03-24 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755461', 'tblTempUsageDetail_20' ) end [2025-03-24 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755461', 'tblTempVendorCDR_20' ) start [2025-03-24 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755461', 'tblTempVendorCDR_20' ) end [2025-03-24 23:18:18] Production.INFO: ProcessCDR(1,14755461,1,1,2) [2025-03-24 23:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755461', 'tblTempUsageDetail_20' ) start [2025-03-24 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755461', 'tblTempUsageDetail_20' ) end [2025-03-24 23:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 23:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 23:18:21] Production.INFO: ==29937== Releasing lock... [2025-03-24 23:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 23:18:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-24 23:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 20:19:06 [end_date_ymd] => 2025-03-24 23:19:06 [RateCDR] => 1 ) [2025-03-24 23: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-03-24 20:19:06' and `end` < '2025-03-24 23: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-03-24 23:19:18] Production.INFO: count ==828 [2025-03-24 23:19:19] Production.ERROR: pbx CDR StartTime 2025-03-24 20:19:06 - End Time 2025-03-24 23:19:06 [2025-03-24 23:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755466', 'tblTempUsageDetail_20' ) start [2025-03-24 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755466', 'tblTempUsageDetail_20' ) end [2025-03-24 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755466', 'tblTempVendorCDR_20' ) start [2025-03-24 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755466', 'tblTempVendorCDR_20' ) end [2025-03-24 23:19:19] Production.INFO: ProcessCDR(1,14755466,1,1,2) [2025-03-24 23:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755466', 'tblTempUsageDetail_20' ) start [2025-03-24 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755466', 'tblTempUsageDetail_20' ) end [2025-03-24 23:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 23:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 23:19:22] Production.INFO: ==30031== Releasing lock... [2025-03-24 23:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 23:19:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-24 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 20:20:06 [end_date_ymd] => 2025-03-24 23:20:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 20:20:06' and `end` < '2025-03-24 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-03-24 23:20:18] Production.INFO: count ==816 [2025-03-24 23:20:18] Production.ERROR: pbx CDR StartTime 2025-03-24 20:20:06 - End Time 2025-03-24 23:20:06 [2025-03-24 23:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755472', 'tblTempUsageDetail_20' ) start [2025-03-24 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755472', 'tblTempUsageDetail_20' ) end [2025-03-24 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755472', 'tblTempVendorCDR_20' ) start [2025-03-24 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755472', 'tblTempVendorCDR_20' ) end [2025-03-24 23:20:18] Production.INFO: ProcessCDR(1,14755472,1,1,2) [2025-03-24 23:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755472', 'tblTempUsageDetail_20' ) start [2025-03-24 23:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755472', 'tblTempUsageDetail_20' ) end [2025-03-24 23:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 23:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 23:20:23] Production.INFO: ==30133== Releasing lock... [2025-03-24 23:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 23:20:23] Production.INFO: 34.5 MB #Memory Used# [2025-03-24 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 20:21:05 [end_date_ymd] => 2025-03-24 23:21:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 20:21:05' and `end` < '2025-03-24 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-03-24 23:21:18] Production.INFO: count ==807 [2025-03-24 23:21:18] Production.ERROR: pbx CDR StartTime 2025-03-24 20:21:05 - End Time 2025-03-24 23:21:05 [2025-03-24 23:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755477', 'tblTempUsageDetail_20' ) start [2025-03-24 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755477', 'tblTempUsageDetail_20' ) end [2025-03-24 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755477', 'tblTempVendorCDR_20' ) start [2025-03-24 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755477', 'tblTempVendorCDR_20' ) end [2025-03-24 23:21:18] Production.INFO: ProcessCDR(1,14755477,1,1,2) [2025-03-24 23:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755477', 'tblTempUsageDetail_20' ) start [2025-03-24 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755477', 'tblTempUsageDetail_20' ) end [2025-03-24 23:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 23:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 23:21:22] Production.INFO: ==30225== Releasing lock... [2025-03-24 23:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 23:21:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-24 23:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 20:22:04 [end_date_ymd] => 2025-03-24 23:22:04 [RateCDR] => 1 ) [2025-03-24 23:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 20:22:04' and `end` < '2025-03-24 23:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 23:22:17] Production.INFO: count ==807 [2025-03-24 23:22:17] Production.ERROR: pbx CDR StartTime 2025-03-24 20:22:04 - End Time 2025-03-24 23:22:04 [2025-03-24 23:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755482', 'tblTempUsageDetail_20' ) start [2025-03-24 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755482', 'tblTempUsageDetail_20' ) end [2025-03-24 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755482', 'tblTempVendorCDR_20' ) start [2025-03-24 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755482', 'tblTempVendorCDR_20' ) end [2025-03-24 23:22:17] Production.INFO: ProcessCDR(1,14755482,1,1,2) [2025-03-24 23:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755482', 'tblTempUsageDetail_20' ) start [2025-03-24 23:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755482', 'tblTempUsageDetail_20' ) end [2025-03-24 23:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 23:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 23:22:23] Production.INFO: ==30317== Releasing lock... [2025-03-24 23:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 23:22:23] Production.INFO: 34.5 MB #Memory Used# [2025-03-24 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 20:23:05 [end_date_ymd] => 2025-03-24 23:23:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 20:23:05' and `end` < '2025-03-24 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-03-24 23:23:18] Production.INFO: count ==804 [2025-03-24 23:23:18] Production.ERROR: pbx CDR StartTime 2025-03-24 20:23:05 - End Time 2025-03-24 23:23:05 [2025-03-24 23:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755487', 'tblTempUsageDetail_20' ) start [2025-03-24 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755487', 'tblTempUsageDetail_20' ) end [2025-03-24 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755487', 'tblTempVendorCDR_20' ) start [2025-03-24 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755487', 'tblTempVendorCDR_20' ) end [2025-03-24 23:23:18] Production.INFO: ProcessCDR(1,14755487,1,1,2) [2025-03-24 23:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755487', 'tblTempUsageDetail_20' ) start [2025-03-24 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755487', 'tblTempUsageDetail_20' ) end [2025-03-24 23:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 23:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 23:23:21] Production.INFO: ==30408== Releasing lock... [2025-03-24 23:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 23:23:21] Production.INFO: 34 MB #Memory Used# [2025-03-24 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 20:24:05 [end_date_ymd] => 2025-03-24 23:24:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 20:24:05' and `end` < '2025-03-24 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-03-24 23:24:18] Production.INFO: count ==807 [2025-03-24 23:24:18] Production.ERROR: pbx CDR StartTime 2025-03-24 20:24:05 - End Time 2025-03-24 23:24:05 [2025-03-24 23:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755492', 'tblTempUsageDetail_20' ) start [2025-03-24 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755492', 'tblTempUsageDetail_20' ) end [2025-03-24 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755492', 'tblTempVendorCDR_20' ) start [2025-03-24 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755492', 'tblTempVendorCDR_20' ) end [2025-03-24 23:24:18] Production.INFO: ProcessCDR(1,14755492,1,1,2) [2025-03-24 23:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755492', 'tblTempUsageDetail_20' ) start [2025-03-24 23:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755492', 'tblTempUsageDetail_20' ) end [2025-03-24 23:24:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 23:24:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 23:24:23] Production.INFO: ==30500== Releasing lock... [2025-03-24 23:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 23:24:23] Production.INFO: 34 MB #Memory Used# [2025-03-24 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 20:25:05 [end_date_ymd] => 2025-03-24 23:25:05 [RateCDR] => 1 ) [2025-03-24 23:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 20:25:05' and `end` < '2025-03-24 23:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 23:25:18] Production.INFO: count ==805 [2025-03-24 23:25:18] Production.ERROR: pbx CDR StartTime 2025-03-24 20:25:05 - End Time 2025-03-24 23:25:05 [2025-03-24 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755497', 'tblTempUsageDetail_20' ) start [2025-03-24 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755497', 'tblTempUsageDetail_20' ) end [2025-03-24 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755497', 'tblTempVendorCDR_20' ) start [2025-03-24 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755497', 'tblTempVendorCDR_20' ) end [2025-03-24 23:25:18] Production.INFO: ProcessCDR(1,14755497,1,1,2) [2025-03-24 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755497', 'tblTempUsageDetail_20' ) start [2025-03-24 23:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755497', 'tblTempUsageDetail_20' ) end [2025-03-24 23:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 23:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 23:25:23] Production.INFO: ==30597== Releasing lock... [2025-03-24 23:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 23:25:23] Production.INFO: 34.25 MB #Memory Used# [2025-03-24 23:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 20:26:04 [end_date_ymd] => 2025-03-24 23:26:04 [RateCDR] => 1 ) [2025-03-24 23:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 20:26:04' and `end` < '2025-03-24 23:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 23:26:17] Production.INFO: count ==807 [2025-03-24 23:26:17] Production.ERROR: pbx CDR StartTime 2025-03-24 20:26:04 - End Time 2025-03-24 23:26:04 [2025-03-24 23:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755502', 'tblTempUsageDetail_20' ) start [2025-03-24 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755502', 'tblTempUsageDetail_20' ) end [2025-03-24 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755502', 'tblTempVendorCDR_20' ) start [2025-03-24 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755502', 'tblTempVendorCDR_20' ) end [2025-03-24 23:26:17] Production.INFO: ProcessCDR(1,14755502,1,1,2) [2025-03-24 23:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755502', 'tblTempUsageDetail_20' ) start [2025-03-24 23:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755502', 'tblTempUsageDetail_20' ) end [2025-03-24 23:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-24 23:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-24 23:26:20] Production.INFO: ==30684== Releasing lock... [2025-03-24 23:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 23:26:20] Production.INFO: 34.5 MB #Memory Used# [2025-03-24 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 20:27:05 [end_date_ymd] => 2025-03-24 23:27:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 20:27:05' and `end` < '2025-03-24 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-03-24 23:27:18] Production.INFO: count ==800 [2025-03-24 23:27:18] Production.ERROR: pbx CDR StartTime 2025-03-24 20:27:05 - End Time 2025-03-24 23:27:05 [2025-03-24 23:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755507', 'tblTempUsageDetail_20' ) start [2025-03-24 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755507', 'tblTempUsageDetail_20' ) end [2025-03-24 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755507', 'tblTempVendorCDR_20' ) start [2025-03-24 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755507', 'tblTempVendorCDR_20' ) end [2025-03-24 23:27:18] Production.INFO: ProcessCDR(1,14755507,1,1,2) [2025-03-24 23:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755507', 'tblTempUsageDetail_20' ) start [2025-03-24 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755507', 'tblTempUsageDetail_20' ) end [2025-03-24 23:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 23:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 23:27:22] Production.INFO: ==30776== Releasing lock... [2025-03-24 23:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 23:27:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-24 23:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 20:28:06 [end_date_ymd] => 2025-03-24 23:28:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 20:28:06' and `end` < '2025-03-24 23: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-03-24 23:28:18] Production.INFO: count ==799 [2025-03-24 23:28:19] Production.ERROR: pbx CDR StartTime 2025-03-24 20:28:06 - End Time 2025-03-24 23:28:06 [2025-03-24 23:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755512', 'tblTempUsageDetail_20' ) start [2025-03-24 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755512', 'tblTempUsageDetail_20' ) end [2025-03-24 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755512', 'tblTempVendorCDR_20' ) start [2025-03-24 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755512', 'tblTempVendorCDR_20' ) end [2025-03-24 23:28:19] Production.INFO: ProcessCDR(1,14755512,1,1,2) [2025-03-24 23:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755512', 'tblTempUsageDetail_20' ) start [2025-03-24 23:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755512', 'tblTempUsageDetail_20' ) end [2025-03-24 23:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 23:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 23:28:22] Production.INFO: ==30872== Releasing lock... [2025-03-24 23:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 23:28:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-24 23:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 20:29:06 [end_date_ymd] => 2025-03-24 23:29:06 [RateCDR] => 1 ) [2025-03-24 23: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-03-24 20:29:06' and `end` < '2025-03-24 23: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-03-24 23:29:18] Production.INFO: count ==799 [2025-03-24 23:29:18] Production.ERROR: pbx CDR StartTime 2025-03-24 20:29:06 - End Time 2025-03-24 23:29:06 [2025-03-24 23:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755517', 'tblTempUsageDetail_20' ) start [2025-03-24 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755517', 'tblTempUsageDetail_20' ) end [2025-03-24 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755517', 'tblTempVendorCDR_20' ) start [2025-03-24 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755517', 'tblTempVendorCDR_20' ) end [2025-03-24 23:29:18] Production.INFO: ProcessCDR(1,14755517,1,1,2) [2025-03-24 23:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755517', 'tblTempUsageDetail_20' ) start [2025-03-24 23:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755517', 'tblTempUsageDetail_20' ) end [2025-03-24 23:29:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 23:29:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 23:29:23] Production.INFO: ==30999== Releasing lock... [2025-03-24 23:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 23:29:23] Production.INFO: 34.5 MB #Memory Used# [2025-03-24 23:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 20:30:07 [end_date_ymd] => 2025-03-24 23:30:07 [RateCDR] => 1 ) [2025-03-24 23: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-03-24 20:30:07' and `end` < '2025-03-24 23: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-03-24 23:30:19] Production.INFO: count ==795 [2025-03-24 23:30:19] Production.ERROR: pbx CDR StartTime 2025-03-24 20:30:07 - End Time 2025-03-24 23:30:07 [2025-03-24 23:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755523', 'tblTempUsageDetail_20' ) start [2025-03-24 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755523', 'tblTempUsageDetail_20' ) end [2025-03-24 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755523', 'tblTempVendorCDR_20' ) start [2025-03-24 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755523', 'tblTempVendorCDR_20' ) end [2025-03-24 23:30:19] Production.INFO: ProcessCDR(1,14755523,1,1,2) [2025-03-24 23:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755523', 'tblTempUsageDetail_20' ) start [2025-03-24 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755523', 'tblTempUsageDetail_20' ) end [2025-03-24 23:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 23:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 23:30:23] Production.INFO: ==31097== Releasing lock... [2025-03-24 23:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 23:30:23] Production.INFO: 34 MB #Memory Used# [2025-03-24 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 20:31:05 [end_date_ymd] => 2025-03-24 23:31:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 20:31:05' and `end` < '2025-03-24 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-03-24 23:31:18] Production.INFO: count ==773 [2025-03-24 23:31:18] Production.ERROR: pbx CDR StartTime 2025-03-24 20:31:05 - End Time 2025-03-24 23:31:05 [2025-03-24 23:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755528', 'tblTempUsageDetail_20' ) start [2025-03-24 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755528', 'tblTempUsageDetail_20' ) end [2025-03-24 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755528', 'tblTempVendorCDR_20' ) start [2025-03-24 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755528', 'tblTempVendorCDR_20' ) end [2025-03-24 23:31:18] Production.INFO: ProcessCDR(1,14755528,1,1,2) [2025-03-24 23:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755528', 'tblTempUsageDetail_20' ) start [2025-03-24 23:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755528', 'tblTempUsageDetail_20' ) end [2025-03-24 23:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 23:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 23:31:22] Production.INFO: ==31188== Releasing lock... [2025-03-24 23:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 23:31:22] Production.INFO: 34 MB #Memory Used# [2025-03-24 23:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 20:32:06 [end_date_ymd] => 2025-03-24 23:32:06 [RateCDR] => 1 ) [2025-03-24 23: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-03-24 20:32:06' and `end` < '2025-03-24 23: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-03-24 23:32:18] Production.INFO: count ==770 [2025-03-24 23:32:19] Production.ERROR: pbx CDR StartTime 2025-03-24 20:32:06 - End Time 2025-03-24 23:32:06 [2025-03-24 23:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755533', 'tblTempUsageDetail_20' ) start [2025-03-24 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755533', 'tblTempUsageDetail_20' ) end [2025-03-24 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755533', 'tblTempVendorCDR_20' ) start [2025-03-24 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755533', 'tblTempVendorCDR_20' ) end [2025-03-24 23:32:19] Production.INFO: ProcessCDR(1,14755533,1,1,2) [2025-03-24 23:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755533', 'tblTempUsageDetail_20' ) start [2025-03-24 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755533', 'tblTempUsageDetail_20' ) end [2025-03-24 23:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 23:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 23:32:22] Production.INFO: ==31287== Releasing lock... [2025-03-24 23:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 23:32:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-24 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 20:33:05 [end_date_ymd] => 2025-03-24 23:33:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 20:33:05' and `end` < '2025-03-24 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-03-24 23:33:18] Production.INFO: count ==764 [2025-03-24 23:33:18] Production.ERROR: pbx CDR StartTime 2025-03-24 20:33:05 - End Time 2025-03-24 23:33:05 [2025-03-24 23:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755538', 'tblTempUsageDetail_20' ) start [2025-03-24 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755538', 'tblTempUsageDetail_20' ) end [2025-03-24 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755538', 'tblTempVendorCDR_20' ) start [2025-03-24 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755538', 'tblTempVendorCDR_20' ) end [2025-03-24 23:33:18] Production.INFO: ProcessCDR(1,14755538,1,1,2) [2025-03-24 23:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755538', 'tblTempUsageDetail_20' ) start [2025-03-24 23:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755538', 'tblTempUsageDetail_20' ) end [2025-03-24 23:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 23:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 23:33:21] Production.INFO: ==31376== Releasing lock... [2025-03-24 23:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 23:33:21] Production.INFO: 34 MB #Memory Used# [2025-03-24 23:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 20:34:06 [end_date_ymd] => 2025-03-24 23:34:06 [RateCDR] => 1 ) [2025-03-24 23: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-03-24 20:34:06' and `end` < '2025-03-24 23: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-03-24 23:34:18] Production.INFO: count ==760 [2025-03-24 23:34:19] Production.ERROR: pbx CDR StartTime 2025-03-24 20:34:06 - End Time 2025-03-24 23:34:06 [2025-03-24 23:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755543', 'tblTempUsageDetail_20' ) start [2025-03-24 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755543', 'tblTempUsageDetail_20' ) end [2025-03-24 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755543', 'tblTempVendorCDR_20' ) start [2025-03-24 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755543', 'tblTempVendorCDR_20' ) end [2025-03-24 23:34:19] Production.INFO: ProcessCDR(1,14755543,1,1,2) [2025-03-24 23:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755543', 'tblTempUsageDetail_20' ) start [2025-03-24 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755543', 'tblTempUsageDetail_20' ) end [2025-03-24 23:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 23:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 23:34:22] Production.INFO: ==31465== Releasing lock... [2025-03-24 23:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 23:34:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-24 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 20:35:05 [end_date_ymd] => 2025-03-24 23:35:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 20:35:05' and `end` < '2025-03-24 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-03-24 23:35:18] Production.INFO: count ==758 [2025-03-24 23:35:18] Production.ERROR: pbx CDR StartTime 2025-03-24 20:35:05 - End Time 2025-03-24 23:35:05 [2025-03-24 23:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755548', 'tblTempUsageDetail_20' ) start [2025-03-24 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755548', 'tblTempUsageDetail_20' ) end [2025-03-24 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755548', 'tblTempVendorCDR_20' ) start [2025-03-24 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755548', 'tblTempVendorCDR_20' ) end [2025-03-24 23:35:18] Production.INFO: ProcessCDR(1,14755548,1,1,2) [2025-03-24 23:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755548', 'tblTempUsageDetail_20' ) start [2025-03-24 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755548', 'tblTempUsageDetail_20' ) end [2025-03-24 23:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 23:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 23:35:21] Production.INFO: ==31556== Releasing lock... [2025-03-24 23:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 23:35:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-24 23:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 20:36:06 [end_date_ymd] => 2025-03-24 23:36:06 [RateCDR] => 1 ) [2025-03-24 23: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-03-24 20:36:06' and `end` < '2025-03-24 23: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-03-24 23:36:18] Production.INFO: count ==757 [2025-03-24 23:36:18] Production.ERROR: pbx CDR StartTime 2025-03-24 20:36:06 - End Time 2025-03-24 23:36:06 [2025-03-24 23:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755553', 'tblTempUsageDetail_20' ) start [2025-03-24 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755553', 'tblTempUsageDetail_20' ) end [2025-03-24 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755553', 'tblTempVendorCDR_20' ) start [2025-03-24 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755553', 'tblTempVendorCDR_20' ) end [2025-03-24 23:36:18] Production.INFO: ProcessCDR(1,14755553,1,1,2) [2025-03-24 23:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755553', 'tblTempUsageDetail_20' ) start [2025-03-24 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755553', 'tblTempUsageDetail_20' ) end [2025-03-24 23:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 23:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 23:36:22] Production.INFO: ==31646== Releasing lock... [2025-03-24 23:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 23:36:22] Production.INFO: 34 MB #Memory Used# [2025-03-24 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 20:37:05 [end_date_ymd] => 2025-03-24 23:37:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 20:37:05' and `end` < '2025-03-24 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-03-24 23:37:18] Production.INFO: count ==757 [2025-03-24 23:37:18] Production.ERROR: pbx CDR StartTime 2025-03-24 20:37:05 - End Time 2025-03-24 23:37:05 [2025-03-24 23:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755558', 'tblTempUsageDetail_20' ) start [2025-03-24 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755558', 'tblTempUsageDetail_20' ) end [2025-03-24 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755558', 'tblTempVendorCDR_20' ) start [2025-03-24 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755558', 'tblTempVendorCDR_20' ) end [2025-03-24 23:37:18] Production.INFO: ProcessCDR(1,14755558,1,1,2) [2025-03-24 23:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755558', 'tblTempUsageDetail_20' ) start [2025-03-24 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755558', 'tblTempUsageDetail_20' ) end [2025-03-24 23:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 23:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 23:37:21] Production.INFO: ==31737== Releasing lock... [2025-03-24 23:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 23:37:21] Production.INFO: 34 MB #Memory Used# [2025-03-24 23:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 20:38:06 [end_date_ymd] => 2025-03-24 23:38:06 [RateCDR] => 1 ) [2025-03-24 23: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-03-24 20:38:06' and `end` < '2025-03-24 23: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-03-24 23:38:18] Production.INFO: count ==765 [2025-03-24 23:38:18] Production.ERROR: pbx CDR StartTime 2025-03-24 20:38:06 - End Time 2025-03-24 23:38:06 [2025-03-24 23:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755563', 'tblTempUsageDetail_20' ) start [2025-03-24 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755563', 'tblTempUsageDetail_20' ) end [2025-03-24 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755563', 'tblTempVendorCDR_20' ) start [2025-03-24 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755563', 'tblTempVendorCDR_20' ) end [2025-03-24 23:38:18] Production.INFO: ProcessCDR(1,14755563,1,1,2) [2025-03-24 23:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755563', 'tblTempUsageDetail_20' ) start [2025-03-24 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755563', 'tblTempUsageDetail_20' ) end [2025-03-24 23:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 23:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 23:38:22] Production.INFO: ==31830== Releasing lock... [2025-03-24 23:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 23:38:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-24 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 20:39:05 [end_date_ymd] => 2025-03-24 23:39:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 20:39:05' and `end` < '2025-03-24 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-03-24 23:39:18] Production.INFO: count ==765 [2025-03-24 23:39:18] Production.ERROR: pbx CDR StartTime 2025-03-24 20:39:05 - End Time 2025-03-24 23:39:05 [2025-03-24 23:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755568', 'tblTempUsageDetail_20' ) start [2025-03-24 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755568', 'tblTempUsageDetail_20' ) end [2025-03-24 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755568', 'tblTempVendorCDR_20' ) start [2025-03-24 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755568', 'tblTempVendorCDR_20' ) end [2025-03-24 23:39:18] Production.INFO: ProcessCDR(1,14755568,1,1,2) [2025-03-24 23:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755568', 'tblTempUsageDetail_20' ) start [2025-03-24 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755568', 'tblTempUsageDetail_20' ) end [2025-03-24 23:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 23:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 23:39:21] Production.INFO: ==31921== Releasing lock... [2025-03-24 23:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 23:39:21] Production.INFO: 34 MB #Memory Used# [2025-03-24 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 20:40:06 [end_date_ymd] => 2025-03-24 23:40:06 [RateCDR] => 1 ) [2025-03-24 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-03-24 20:40:06' and `end` < '2025-03-24 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-03-24 23:40:19] Production.INFO: count ==760 [2025-03-24 23:40:19] Production.ERROR: pbx CDR StartTime 2025-03-24 20:40:06 - End Time 2025-03-24 23:40:06 [2025-03-24 23:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755574', 'tblTempUsageDetail_20' ) start [2025-03-24 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755574', 'tblTempUsageDetail_20' ) end [2025-03-24 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755574', 'tblTempVendorCDR_20' ) start [2025-03-24 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755574', 'tblTempVendorCDR_20' ) end [2025-03-24 23:40:19] Production.INFO: ProcessCDR(1,14755574,1,1,2) [2025-03-24 23:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755574', 'tblTempUsageDetail_20' ) start [2025-03-24 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755574', 'tblTempUsageDetail_20' ) end [2025-03-24 23:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 23:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 23:40:22] Production.INFO: ==32017== Releasing lock... [2025-03-24 23:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 23:40:22] Production.INFO: 34 MB #Memory Used# [2025-03-24 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 20:41:05 [end_date_ymd] => 2025-03-24 23:41:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 20:41:05' and `end` < '2025-03-24 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-03-24 23:41:18] Production.INFO: count ==714 [2025-03-24 23:41:18] Production.ERROR: pbx CDR StartTime 2025-03-24 20:41:05 - End Time 2025-03-24 23:41:05 [2025-03-24 23:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755579', 'tblTempUsageDetail_20' ) start [2025-03-24 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755579', 'tblTempUsageDetail_20' ) end [2025-03-24 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755579', 'tblTempVendorCDR_20' ) start [2025-03-24 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755579', 'tblTempVendorCDR_20' ) end [2025-03-24 23:41:18] Production.INFO: ProcessCDR(1,14755579,1,1,2) [2025-03-24 23:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755579', 'tblTempUsageDetail_20' ) start [2025-03-24 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755579', 'tblTempUsageDetail_20' ) end [2025-03-24 23:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 23:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 23:41:21] Production.INFO: ==32118== Releasing lock... [2025-03-24 23:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 23:41:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-24 23:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 20:42:06 [end_date_ymd] => 2025-03-24 23:42:06 [RateCDR] => 1 ) [2025-03-24 23:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 20:42:06' and `end` < '2025-03-24 23:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 23:42:18] Production.INFO: count ==714 [2025-03-24 23:42:19] Production.ERROR: pbx CDR StartTime 2025-03-24 20:42:06 - End Time 2025-03-24 23:42:06 [2025-03-24 23:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755584', 'tblTempUsageDetail_20' ) start [2025-03-24 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755584', 'tblTempUsageDetail_20' ) end [2025-03-24 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755584', 'tblTempVendorCDR_20' ) start [2025-03-24 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755584', 'tblTempVendorCDR_20' ) end [2025-03-24 23:42:19] Production.INFO: ProcessCDR(1,14755584,1,1,2) [2025-03-24 23:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755584', 'tblTempUsageDetail_20' ) start [2025-03-24 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755584', 'tblTempUsageDetail_20' ) end [2025-03-24 23:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 23:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 23:42:22] Production.INFO: ==32208== Releasing lock... [2025-03-24 23:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 23:42:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-24 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 20:43:05 [end_date_ymd] => 2025-03-24 23:43:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 20:43:05' and `end` < '2025-03-24 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-03-24 23:43:18] Production.INFO: count ==714 [2025-03-24 23:43:18] Production.ERROR: pbx CDR StartTime 2025-03-24 20:43:05 - End Time 2025-03-24 23:43:05 [2025-03-24 23:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755589', 'tblTempUsageDetail_20' ) start [2025-03-24 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755589', 'tblTempUsageDetail_20' ) end [2025-03-24 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755589', 'tblTempVendorCDR_20' ) start [2025-03-24 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755589', 'tblTempVendorCDR_20' ) end [2025-03-24 23:43:18] Production.INFO: ProcessCDR(1,14755589,1,1,2) [2025-03-24 23:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755589', 'tblTempUsageDetail_20' ) start [2025-03-24 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755589', 'tblTempUsageDetail_20' ) end [2025-03-24 23:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 23:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 23:43:21] Production.INFO: ==32297== Releasing lock... [2025-03-24 23:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 23:43:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-24 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 20:44:05 [end_date_ymd] => 2025-03-24 23:44:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 20:44:05' and `end` < '2025-03-24 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-03-24 23:44:18] Production.INFO: count ==710 [2025-03-24 23:44:18] Production.ERROR: pbx CDR StartTime 2025-03-24 20:44:05 - End Time 2025-03-24 23:44:05 [2025-03-24 23:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755594', 'tblTempUsageDetail_20' ) start [2025-03-24 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755594', 'tblTempUsageDetail_20' ) end [2025-03-24 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755594', 'tblTempVendorCDR_20' ) start [2025-03-24 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755594', 'tblTempVendorCDR_20' ) end [2025-03-24 23:44:18] Production.INFO: ProcessCDR(1,14755594,1,1,2) [2025-03-24 23:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755594', 'tblTempUsageDetail_20' ) start [2025-03-24 23:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755594', 'tblTempUsageDetail_20' ) end [2025-03-24 23:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-24 23:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-24 23:44:23] Production.INFO: ==32390== Releasing lock... [2025-03-24 23:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 23:44:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-24 23:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 20:45:04 [end_date_ymd] => 2025-03-24 23:45:04 [RateCDR] => 1 ) [2025-03-24 23:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 20:45:04' and `end` < '2025-03-24 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-03-24 23:45:17] Production.INFO: count ==707 [2025-03-24 23:45:17] Production.ERROR: pbx CDR StartTime 2025-03-24 20:45:04 - End Time 2025-03-24 23:45:04 [2025-03-24 23:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755599', 'tblTempUsageDetail_20' ) start [2025-03-24 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755599', 'tblTempUsageDetail_20' ) end [2025-03-24 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755599', 'tblTempVendorCDR_20' ) start [2025-03-24 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755599', 'tblTempVendorCDR_20' ) end [2025-03-24 23:45:17] Production.INFO: ProcessCDR(1,14755599,1,1,2) [2025-03-24 23:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755599', 'tblTempUsageDetail_20' ) start [2025-03-24 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755599', 'tblTempUsageDetail_20' ) end [2025-03-24 23:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 23:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 23:45:22] Production.INFO: ==32516== Releasing lock... [2025-03-24 23:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 23:45:22] Production.INFO: 34 MB #Memory Used# [2025-03-24 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 20:46:05 [end_date_ymd] => 2025-03-24 23:46:05 [RateCDR] => 1 ) [2025-03-24 23:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 20:46:05' and `end` < '2025-03-24 23:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 23:46:18] Production.INFO: count ==704 [2025-03-24 23:46:18] Production.ERROR: pbx CDR StartTime 2025-03-24 20:46:05 - End Time 2025-03-24 23:46:05 [2025-03-24 23:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755604', 'tblTempUsageDetail_20' ) start [2025-03-24 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755604', 'tblTempUsageDetail_20' ) end [2025-03-24 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755604', 'tblTempVendorCDR_20' ) start [2025-03-24 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755604', 'tblTempVendorCDR_20' ) end [2025-03-24 23:46:18] Production.INFO: ProcessCDR(1,14755604,1,1,2) [2025-03-24 23:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755604', 'tblTempUsageDetail_20' ) start [2025-03-24 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755604', 'tblTempUsageDetail_20' ) end [2025-03-24 23:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 23:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 23:46:21] Production.INFO: ==32610== Releasing lock... [2025-03-24 23:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 23:46:21] Production.INFO: 34 MB #Memory Used# [2025-03-24 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 20:47:05 [end_date_ymd] => 2025-03-24 23:47:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 20:47:05' and `end` < '2025-03-24 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-03-24 23:47:18] Production.INFO: count ==701 [2025-03-24 23:47:18] Production.ERROR: pbx CDR StartTime 2025-03-24 20:47:05 - End Time 2025-03-24 23:47:05 [2025-03-24 23:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755609', 'tblTempUsageDetail_20' ) start [2025-03-24 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755609', 'tblTempUsageDetail_20' ) end [2025-03-24 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755609', 'tblTempVendorCDR_20' ) start [2025-03-24 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755609', 'tblTempVendorCDR_20' ) end [2025-03-24 23:47:18] Production.INFO: ProcessCDR(1,14755609,1,1,2) [2025-03-24 23:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755609', 'tblTempUsageDetail_20' ) start [2025-03-24 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755609', 'tblTempUsageDetail_20' ) end [2025-03-24 23:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 23:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 23:47:22] Production.INFO: ==32707== Releasing lock... [2025-03-24 23:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 23:47:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-24 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 20:48:05 [end_date_ymd] => 2025-03-24 23:48:05 [RateCDR] => 1 ) [2025-03-24 23:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 20:48:05' and `end` < '2025-03-24 23:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 23:48:18] Production.INFO: count ==700 [2025-03-24 23:48:18] Production.ERROR: pbx CDR StartTime 2025-03-24 20:48:05 - End Time 2025-03-24 23:48:05 [2025-03-24 23:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755614', 'tblTempUsageDetail_20' ) start [2025-03-24 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755614', 'tblTempUsageDetail_20' ) end [2025-03-24 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755614', 'tblTempVendorCDR_20' ) start [2025-03-24 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755614', 'tblTempVendorCDR_20' ) end [2025-03-24 23:48:18] Production.INFO: ProcessCDR(1,14755614,1,1,2) [2025-03-24 23:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755614', 'tblTempUsageDetail_20' ) start [2025-03-24 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755614', 'tblTempUsageDetail_20' ) end [2025-03-24 23:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 23:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 23:48:22] Production.INFO: ==332== Releasing lock... [2025-03-24 23:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 23:48:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-24 23:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 20:49:06 [end_date_ymd] => 2025-03-24 23:49:06 [RateCDR] => 1 ) [2025-03-24 23: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-03-24 20:49:06' and `end` < '2025-03-24 23: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-03-24 23:49:19] Production.INFO: count ==700 [2025-03-24 23:49:19] Production.ERROR: pbx CDR StartTime 2025-03-24 20:49:06 - End Time 2025-03-24 23:49:06 [2025-03-24 23:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755619', 'tblTempUsageDetail_20' ) start [2025-03-24 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755619', 'tblTempUsageDetail_20' ) end [2025-03-24 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755619', 'tblTempVendorCDR_20' ) start [2025-03-24 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755619', 'tblTempVendorCDR_20' ) end [2025-03-24 23:49:19] Production.INFO: ProcessCDR(1,14755619,1,1,2) [2025-03-24 23:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755619', 'tblTempUsageDetail_20' ) start [2025-03-24 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755619', 'tblTempUsageDetail_20' ) end [2025-03-24 23:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 23:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 23:49:22] Production.INFO: ==448== Releasing lock... [2025-03-24 23:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 23:49:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-24 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 20:50:06 [end_date_ymd] => 2025-03-24 23:50:06 [RateCDR] => 1 ) [2025-03-24 23: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-03-24 20:50:06' and `end` < '2025-03-24 23: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-03-24 23:50:19] Production.INFO: count ==700 [2025-03-24 23:50:19] Production.ERROR: pbx CDR StartTime 2025-03-24 20:50:06 - End Time 2025-03-24 23:50:06 [2025-03-24 23:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755625', 'tblTempUsageDetail_20' ) start [2025-03-24 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755625', 'tblTempUsageDetail_20' ) end [2025-03-24 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755625', 'tblTempVendorCDR_20' ) start [2025-03-24 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755625', 'tblTempVendorCDR_20' ) end [2025-03-24 23:50:19] Production.INFO: ProcessCDR(1,14755625,1,1,2) [2025-03-24 23:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755625', 'tblTempUsageDetail_20' ) start [2025-03-24 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755625', 'tblTempUsageDetail_20' ) end [2025-03-24 23:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 23:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 23:50:22] Production.INFO: ==573== Releasing lock... [2025-03-24 23:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 23:50:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-24 23:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 20:51:06 [end_date_ymd] => 2025-03-24 23:51:06 [RateCDR] => 1 ) [2025-03-24 23: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-03-24 20:51:06' and `end` < '2025-03-24 23: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-03-24 23:51:19] Production.INFO: count ==700 [2025-03-24 23:51:19] Production.ERROR: pbx CDR StartTime 2025-03-24 20:51:06 - End Time 2025-03-24 23:51:06 [2025-03-24 23:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755630', 'tblTempUsageDetail_20' ) start [2025-03-24 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755630', 'tblTempUsageDetail_20' ) end [2025-03-24 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755630', 'tblTempVendorCDR_20' ) start [2025-03-24 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755630', 'tblTempVendorCDR_20' ) end [2025-03-24 23:51:19] Production.INFO: ProcessCDR(1,14755630,1,1,2) [2025-03-24 23:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755630', 'tblTempUsageDetail_20' ) start [2025-03-24 23:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755630', 'tblTempUsageDetail_20' ) end [2025-03-24 23:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 23:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 23:51:22] Production.INFO: ==717== Releasing lock... [2025-03-24 23:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 23:51:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-24 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 20:52:05 [end_date_ymd] => 2025-03-24 23:52:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 20:52:05' and `end` < '2025-03-24 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-03-24 23:52:18] Production.INFO: count ==703 [2025-03-24 23:52:18] Production.ERROR: pbx CDR StartTime 2025-03-24 20:52:05 - End Time 2025-03-24 23:52:05 [2025-03-24 23:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755635', 'tblTempUsageDetail_20' ) start [2025-03-24 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755635', 'tblTempUsageDetail_20' ) end [2025-03-24 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755635', 'tblTempVendorCDR_20' ) start [2025-03-24 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755635', 'tblTempVendorCDR_20' ) end [2025-03-24 23:52:18] Production.INFO: ProcessCDR(1,14755635,1,1,2) [2025-03-24 23:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755635', 'tblTempUsageDetail_20' ) start [2025-03-24 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755635', 'tblTempUsageDetail_20' ) end [2025-03-24 23:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 23:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 23:52:22] Production.INFO: ==826== Releasing lock... [2025-03-24 23:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 23:52:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-24 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 20:53:05 [end_date_ymd] => 2025-03-24 23:53:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 20:53:05' and `end` < '2025-03-24 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-03-24 23:53:18] Production.INFO: count ==701 [2025-03-24 23:53:18] Production.ERROR: pbx CDR StartTime 2025-03-24 20:53:05 - End Time 2025-03-24 23:53:05 [2025-03-24 23:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755640', 'tblTempUsageDetail_20' ) start [2025-03-24 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755640', 'tblTempUsageDetail_20' ) end [2025-03-24 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755640', 'tblTempVendorCDR_20' ) start [2025-03-24 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755640', 'tblTempVendorCDR_20' ) end [2025-03-24 23:53:18] Production.INFO: ProcessCDR(1,14755640,1,1,2) [2025-03-24 23:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755640', 'tblTempUsageDetail_20' ) start [2025-03-24 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755640', 'tblTempUsageDetail_20' ) end [2025-03-24 23:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-24 23:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-24 23:53:22] Production.INFO: ==935== Releasing lock... [2025-03-24 23:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 23:53:22] Production.INFO: 34 MB #Memory Used# [2025-03-24 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 20:54:05 [end_date_ymd] => 2025-03-24 23:54:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 20:54:05' and `end` < '2025-03-24 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-03-24 23:54:17] Production.INFO: count ==700 [2025-03-24 23:54:17] Production.ERROR: pbx CDR StartTime 2025-03-24 20:54:05 - End Time 2025-03-24 23:54:05 [2025-03-24 23:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755645', 'tblTempUsageDetail_20' ) start [2025-03-24 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755645', 'tblTempUsageDetail_20' ) end [2025-03-24 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755645', 'tblTempVendorCDR_20' ) start [2025-03-24 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755645', 'tblTempVendorCDR_20' ) end [2025-03-24 23:54:17] Production.INFO: ProcessCDR(1,14755645,1,1,2) [2025-03-24 23:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755645', 'tblTempUsageDetail_20' ) start [2025-03-24 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755645', 'tblTempUsageDetail_20' ) end [2025-03-24 23:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 23:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 23:54:21] Production.INFO: ==1043== Releasing lock... [2025-03-24 23:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 23:54:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-24 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 20:55:05 [end_date_ymd] => 2025-03-24 23:55:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 20:55:05' and `end` < '2025-03-24 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-03-24 23:55:18] Production.INFO: count ==700 [2025-03-24 23:55:18] Production.ERROR: pbx CDR StartTime 2025-03-24 20:55:05 - End Time 2025-03-24 23:55:05 [2025-03-24 23:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755650', 'tblTempUsageDetail_20' ) start [2025-03-24 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755650', 'tblTempUsageDetail_20' ) end [2025-03-24 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755650', 'tblTempVendorCDR_20' ) start [2025-03-24 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755650', 'tblTempVendorCDR_20' ) end [2025-03-24 23:55:18] Production.INFO: ProcessCDR(1,14755650,1,1,2) [2025-03-24 23:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755650', 'tblTempUsageDetail_20' ) start [2025-03-24 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755650', 'tblTempUsageDetail_20' ) end [2025-03-24 23:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 23:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 23:55:21] Production.INFO: ==1152== Releasing lock... [2025-03-24 23:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 23:55:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-24 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 20:56:05 [end_date_ymd] => 2025-03-24 23:56:05 [RateCDR] => 1 ) [2025-03-24 23:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 20:56:05' and `end` < '2025-03-24 23:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-24 23:56:18] Production.INFO: count ==699 [2025-03-24 23:56:18] Production.ERROR: pbx CDR StartTime 2025-03-24 20:56:05 - End Time 2025-03-24 23:56:05 [2025-03-24 23:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755655', 'tblTempUsageDetail_20' ) start [2025-03-24 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755655', 'tblTempUsageDetail_20' ) end [2025-03-24 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755655', 'tblTempVendorCDR_20' ) start [2025-03-24 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755655', 'tblTempVendorCDR_20' ) end [2025-03-24 23:56:18] Production.INFO: ProcessCDR(1,14755655,1,1,2) [2025-03-24 23:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755655', 'tblTempUsageDetail_20' ) start [2025-03-24 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755655', 'tblTempUsageDetail_20' ) end [2025-03-24 23:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 23:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 23:56:21] Production.INFO: ==1277== Releasing lock... [2025-03-24 23:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 23:56:21] Production.INFO: 34 MB #Memory Used# [2025-03-24 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 20:57:05 [end_date_ymd] => 2025-03-24 23:57:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 20:57:05' and `end` < '2025-03-24 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-03-24 23:57:18] Production.INFO: count ==701 [2025-03-24 23:57:18] Production.ERROR: pbx CDR StartTime 2025-03-24 20:57:05 - End Time 2025-03-24 23:57:05 [2025-03-24 23:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755660', 'tblTempUsageDetail_20' ) start [2025-03-24 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755660', 'tblTempUsageDetail_20' ) end [2025-03-24 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755660', 'tblTempVendorCDR_20' ) start [2025-03-24 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755660', 'tblTempVendorCDR_20' ) end [2025-03-24 23:57:18] Production.INFO: ProcessCDR(1,14755660,1,1,2) [2025-03-24 23:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755660', 'tblTempUsageDetail_20' ) start [2025-03-24 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755660', 'tblTempUsageDetail_20' ) end [2025-03-24 23:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 23:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 23:57:21] Production.INFO: ==1385== Releasing lock... [2025-03-24 23:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 23:57:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-24 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 20:58:05 [end_date_ymd] => 2025-03-24 23:58:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 20:58:05' and `end` < '2025-03-24 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-03-24 23:58:18] Production.INFO: count ==700 [2025-03-24 23:58:18] Production.ERROR: pbx CDR StartTime 2025-03-24 20:58:05 - End Time 2025-03-24 23:58:05 [2025-03-24 23:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755665', 'tblTempUsageDetail_20' ) start [2025-03-24 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755665', 'tblTempUsageDetail_20' ) end [2025-03-24 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755665', 'tblTempVendorCDR_20' ) start [2025-03-24 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755665', 'tblTempVendorCDR_20' ) end [2025-03-24 23:58:18] Production.INFO: ProcessCDR(1,14755665,1,1,2) [2025-03-24 23:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755665', 'tblTempUsageDetail_20' ) start [2025-03-24 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755665', 'tblTempUsageDetail_20' ) end [2025-03-24 23:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 23:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 23:58:21] Production.INFO: ==1492== Releasing lock... [2025-03-24 23:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 23:58:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-24 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 20:59:05 [end_date_ymd] => 2025-03-24 23:59:05 [RateCDR] => 1 ) [2025-03-24 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-03-24 20:59:05' and `end` < '2025-03-24 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-03-24 23:59:18] Production.INFO: count ==696 [2025-03-24 23:59:18] Production.ERROR: pbx CDR StartTime 2025-03-24 20:59:05 - End Time 2025-03-24 23:59:05 [2025-03-24 23:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-24 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755670', 'tblTempUsageDetail_20' ) start [2025-03-24 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755670', 'tblTempUsageDetail_20' ) end [2025-03-24 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755670', 'tblTempVendorCDR_20' ) start [2025-03-24 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755670', 'tblTempVendorCDR_20' ) end [2025-03-24 23:59:18] Production.INFO: ProcessCDR(1,14755670,1,1,2) [2025-03-24 23:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-24 23:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-24 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755670', 'tblTempUsageDetail_20' ) start [2025-03-24 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755670', 'tblTempUsageDetail_20' ) end [2025-03-24 23:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-24 23:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-24 23:59:21] Production.INFO: ==1634== Releasing lock... [2025-03-24 23:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-24 23:59:21] Production.INFO: 33.5 MB #Memory Used#